ehowton: (Default)
for x in `cat hostnames`;
do echo $(nslookup $x | grep -e Address | sed -n 2p | sed -r 's/.{9}//') $x ;
done >> hostfile

Or, add SHORTNAME and ALIAS:

for x in `cat hostnames`;
do echo $(nslookup $x | grep -e Address | sed -n 2p | sed -r 's/.{9}//') $x $(echo $x | sed "s/\..*//") $(echo $x | sed "s/\..*//").alt.fqdn;
done >> hostfile
◾ Tags:
ehowton: (Default)

Script which is meant to run from a directory containing compressed/encapsulated EMCgrabs either from ESX or linux hosts.
#
Removes hostnames (retains domain).
Removes up to three (3) IPs.
Handles those god-awful filenames which contain spaces.
Re-compresses new tarball(s) sans hostname for transmission.
#
sanitize_emcgrab_runme.sh
sanitize_emcgrab_data.sh
◾ Tags:
ehowton: (BSD)

Script which is meant to run from a directory containing compressed/encapsulated EMCgrabs either from ESX or linux hosts.
#
Removes hostnames (retains domain).
Removes up to three (3) IPs.
Handles those god-awful filenames which contain spaces.
Re-compresses new tarball(s) sans hostname for transmission.
#
sanitize_emcgrab_runme.sh
sanitize_emcgrab_data.sh
◾ Tags:
ehowton: (Default)
for x in {0..16} ; do cp -R file file$x ; done
◾ Tags:
ehowton: (BSD)
for x in {0..16} ; do cp -R file file$x ; done
◾ Tags:
ehowton: (Default)
scripts]$ cat vxcreate1
x=0
while [ $x = 0 ]
do

clear
echo "Initialize all Veritas disks press 1"
echo "Create a vg and extend disks into it press 2"
echo "Create specific sized LV on specific disks and format press 3"
echo "Press 6 to exit"
read input1

case "$input1" in

1)
> vxcreate.out
vxdisk list
vxdisk list | grep -i emc-vplex1_ |awk '{print $1}' > vxcreate.out
for i in `cat vxcreate.out`
do
/etc/vx/bin/vxdisksetup -i $I
# if adding single-disk, just /etc/vx/bin/vxdisksetup -I sde (no /dev, for example)
done
;;

2)
./stuff.pl
echo "Enter VG name"
read VGname
echo "Enter disk"
read disk0
echo "Enter Disk Name"
read disk1
vxdg init $VGname $disk1=$disk0
# if adding single-disk, just vxdg init vgDISK4 sde=sde (for example)
# vxprint -htg vgDISK4 (helpful command to identify size): bold, italics below
#
# dm sde sde auto 65536 978688 -

w=0
while [ $w = 0 ]
do
echo "Would you like to add another disk to the VG?"
read stuff1
case "$stuff1" in
y)
#echo "Enter VG name"
#read VGname
echo "The VG name is $VGname"
echo "Enter disk"
read disk0
echo "Enter Disk Name"
read disk1
vxdg -g $VGname adddisk $disk1=$disk0
;;
n)
w=1
;;
*)
echo "Invalid Choice"
sleep 1
;;
esac
done
;;

3)
vxdisk list
echo "Enter VG name"
read VGname
echo "Enter LV name"
read LVname
vxdg -g $VGname free
echo "Enter LV size as 10G or in blocks"
read LVsize
echo "Enter the disk"
read Disk
vxassist -g $VGname make $LVname $LVsize $Disk (use size from above)
/usr/lib/fs/vxfs/mkfs -t vxfs -o largefiles,bsize=8192 /dev/vx/rdsk/$VGname/$LVname
echo "Enter the Mount Point"
read mountp
echo "/dev/vx/dsk/$VGname/$LVname $mountp vxfs defaults,_netdev 0 0" >> /etc/fstab
mkdir $mountp
mount $mountp
;;

6)
echo exit
x=1
;;
*)
clear
echo "not a valid option"
sleep 2
;;
esac
done
◾ Tags:
ehowton: (TRON)
scripts]$ cat vxcreate1
x=0
while [ $x = 0 ]
do

clear
echo "Initialize all Veritas disks press 1"
echo "Create a vg and extend disks into it press 2"
echo "Create specific sized LV on specific disks and format press 3"
echo "Press 6 to exit"
read input1

case "$input1" in

1)
> vxcreate.out
vxdisk list
vxdisk list | grep -i emc-vplex1_ |awk '{print $1}' > vxcreate.out
for i in `cat vxcreate.out`
do
/etc/vx/bin/vxdisksetup -i $i
done
;;

2)
./stuff.pl
echo "Enter VG name"
read VGname
echo "Enter disk"
read disk0
echo "Enter Disk Name"
read disk1
vxdg init $VGname $disk1=$disk0

w=0
while [ $w = 0 ]
do
echo "Would you like to add another disk to the VG?"
read stuff1
case "$stuff1" in
y)
#echo "Enter VG name"
#read VGname
echo "The VG name is $VGname"
echo "Enter disk"
read disk0
echo "Enter Disk Name"
read disk1
vxdg -g $VGname adddisk $disk1=$disk0
;;
n)
w=1
;;
*)
echo "Invalid Choice"
sleep 1
;;
esac
done
;;

3)
vxdisk list
echo "Enter VG name"
read VGname
echo "Enter LV name"
read LVname
vxdg -g $VGname free
echo "Enter LV size as 10G or in blocks"
read LVsize
echo "Enter the disk"
read Disk
vxassist -g $VGname make $LVname $LVsize $Disk
/usr/lib/fs/vxfs/mkfs -t vxfs -o largefiles,bsize=8192 /dev/vx/rdsk/$VGname/$LVname
echo "Enter the Mount Point"
read mountp
echo "/dev/vx/dsk/$VGname/$LVname $mountp vxfs defaults,_netdev 0 0" >> /etc/fstab
mkdir $mountp
mount $mountp
;;

6)
echo exit
x=1
;;
*)
clear
echo "not a valid option"
sleep 2
;;
esac
done
◾ Tags:
ehowton: (Default)
for x in `rmt-cli repos list --all | grep 15 | grep SP2 | grep -v Not | grep SAP | awk ' {print $2} '` ; do rmt-cli repos enable $x ; done

rmt-cli mirror
◾ Tags:
ehowton: (BSD)
for x in `rmt-cli repos list --all | grep 15 | grep SP2 | grep -v Not | grep SAP | awk ' {print $2} '` ; do rmt-cli repos enable $x ; done

rmt-cli mirror
◾ Tags:
ehowton: (BSD)
Only because I keep looking for it here, and haven't (apparently) posted it yet, here's how to get neofetch to display at boot on various operating systems:

openSUSE/SLES: /etc/profile.d/motd.sh:neofetch
◾ Tags:
ehowton: (BSD)
Unlike every other linux distro, Solus cannot yet full utilize VMSVGA display driver under VirtualBox (assume all VBox hosts though this one was specifically running under OSX) and will not display any 16:9 ratios under settings. However, if you deprecate the virtual driver to VBoxSVGA, the "Unknown Monitor" reverts to VBX and your full display settings will appear.
◾ Tags:
ehowton: (Default)
Unlike every other linux distro, Solus cannot yet full utilize VMSVGA display driver under VirtualBox (assume all VBox hosts though this one was specifically running under OSX) and will not display any 16:9 ratios under settings. However, if you deprecate the virtual driver to VBoxSVGA, the "Unknown Monitor" reverts to VBX and your full display settings will appear.
◾ Tags:
ehowton: (BSD)
Finally discovered the baffling Cinnamon issue on my openSUSE physical - BIOS had 256MB of video RAM allocated, which caused it to utilize 250% of the CPU. Once I upped that to 1024MB, CPU utilization dropped dramatically (~.5%).
◾ Tags:
ehowton: (Default)
Finally discovered the baffling Cinnamon issue on my openSUSE physical - BIOS had 256MB of video RAM allocated, which caused it to utilize 250% of the CPU. Once I upped that to 1024MB, CPU utilization dropped dramatically (~.5%).
◾ Tags:
ehowton: (Default)
# zypper install go git
# apt install golang-go git
# go get -u github.com/sophaskins/efs2tar
# export GOPATH=$HOME/go
# export GOBIN=$HOME/go/bin
# cd $HOME/Downloads/github.com/sophaskins/efs2tar
# go install main.go
# go run main.go -in SGI_efs.iso -out SGI_file_tarball.tar




This was actually required to utilize efs2tar, which is a utility which allows an SGI "efs" file-system CDROM to be turned into a tarball for later exploitation since you can't mount an ISO on Irix and nothing else can mount it either, except Irix, with a SCSI CDROM drive.




Also? wget -e robots=off to pull down entire tardift repositories which have a robots.txt wget bot blocker. This is a beautiful thing.

wget -e robots=off \
--recursive \
--no-clobber \
--page-requisites \
--html-extension \
--convert-links \
--restrict-file-names=windows \
--domains site.you.gonna.rip \
--no-parent \
http://site.you.gonna.rip/path/to/repositories/
◾ Tags:
ehowton: (BSD)
# zypper install go git
# apt install golang-go git
# go get -u github.com/sophaskins/efs2tar
# export GOPATH=$HOME/go
# export GOBIN=$HOME/go/bin
# cd $HOME/Downloads/github.com/sophaskins/efs2tar
# go install main.go
# go run main.go -in SGI_efs.iso -out SGI_file_tarball.tar




This was actually required to utilize efs2tar, which is a utility which allows an SGI "efs" file-system CDROM to be turned into a tarball for later exploitation since you can't mount an ISO on Irix and nothing else can mount it either, except Irix, with a SCSI CDROM drive.




Also? wget -e robots=off to pull down entire tardift repositories which have a robots.txt wget bot blocker. This is a beautiful thing.

wget -e robots=off \
--recursive \
--no-clobber \
--page-requisites \
--html-extension \
--convert-links \
--restrict-file-names=windows \
--domains site.you.gonna.rip \
--no-parent \
http://site.you.gonna.rip/path/to/repositories/
◾ Tags:
ehowton: (Self Portait)

God I hate Xf86config and xorg conf files. And we're flush with virtual servers these days. This occurred on a headless physical, but the steps should be the same to change from a forced 1024x768 to 1920x1080:

# init 3 to kill your window manager.
# X -configure to create an xorg.conf.new
# cp xorg.conf.new xorg.conf to overwrite the old with the new.
# init 5 to restart your graphical environment.

I use NoMachine (nx) which has a Display --> Change Settings --> Custom Resolution functionality I used to great success after the above steps.

Ugh.
◾ Tags:
ehowton: (TRON)

Only after paying real money to the Apple App Store for, "Cathode" a terminal emulator which mimics a number of vintage consoles did I run across cool-retro-terminal for both linux and mac (that said, the iOS Cathode app is FANTASTIC for CLI from the bedroom).

HOWEVER not all distros have cool-retro-terminal and not all distros which do display it properly, if at all. And building from source on some distros is downright disastrous.

This seems to work pretty well though:

wget https://github.com/Swordfish90/cool-retro-term/releases/download/1.1.1/Cool-Retro-Term-1.1.1-x86_64.AppImage
chmod a+x Cool-Retro-Term-1.1.1-x86_64.AppImage
./Cool-Retro-Term-1.1.1-x86_64.AppImage


You're welcome.
◾ Tags:
ehowton: (BSD)

Linux Mint is fantastic. Until its not. Cinnamon runs into all sorts of issues with its "hardware device driver" snafu, the occasional session bus error (at least when running cinnamon on openSUSE), and apt often renders itself non-functional with the nonsensical error sudo apt --fix-broken install which of course would be awesome if it worked. But it doesn't. It never has. It doesn't even appear to be valid syntax. This variation however, does work:

apt-get -f install

Why the openSUSE online repositories had to go offline today however, is just maddening.
◾ Tags:
ehowton: (Default)

God I hate Xf86config and xorg conf files. And we're flush with virtual servers these days. This occurred on a headless physical, but the steps should be the same to change from a forced 1024x768 to 1920x1080:

# init 3 to kill your window manager.
# X -configure to create an xorg.conf.new
# cp xorg.conf.new xorg.conf to overwrite the old with the new.
# init 5 to restart your graphical environment.

I use NoMachine (nx) which has a Display --> Change Settings --> Custom Resolution functionality I used to great success after the above steps.

Ugh.
◾ Tags:
ehowton: (Default)

Only after paying real money to the Apple App Store for, "Cathode" a terminal emulator which mimics a number of vintage consoles did I run across cool-retro-terminal for both linux and mac (that said, the iOS Cathode app is FANTASTIC for CLI from the bedroom).

HOWEVER not all distros have cool-retro-terminal and not all distros which do display it properly, if at all. And building from source on some distros is downright disastrous.

This seems to work pretty well though:

wget https://github.com/Swordfish90/cool-retro-term/releases/download/1.1.1/Cool-Retro-Term-1.1.1-x86_64.AppImage
chmod a+x Cool-Retro-Term-1.1.1-x86_64.AppImage
./Cool-Retro-Term-1.1.1-x86_64.AppImage


You're welcome.
◾ Tags:
ehowton: (Default)

Linux Mint is fantastic. Until its not. Cinnamon runs into all sorts of issues with its "hardware device driver" snafu, the occasional session bus error (at least when running cinnamon on openSUSE), and apt often renders itself non-functional with the nonsensical error sudo apt --fix-broken install which of course would be awesome if it worked. But it doesn't. It never has. It doesn't even appear to be valid syntax. This variation however, does work:

apt-get -f install


Why the openSUSE online repositories had to go offline today however, is just maddening.

Also, this helped: # zypper in openSUSE-release-usb-X11
◾ Tags:
ehowton: (Default)

tty1:Rescue# mount /dev/sda1 /mnt

- else -

tty1:Rescue# pvs (sometimes lvm pvscan)
tty1:Rescue# vgs (sometimes lvm vgscan)
tty1:Rescue# lvs (sometimes lvm lvscan) (sometimes lvm lvs --all)

tty1:Rescue# vgchange -a y [vg]

tty1:Rescue# mount /dev/system/rootlv /mnt
tty1:Rescue# mount /dev/system/usrlv /mnt/usr
tty1:Rescue# mount /dev/system/optlv /mnt/opt
tty1:Rescue# mount /dev/system/varlv /mnt/var (optional)

For more programs to run, keep going:

tty1:Rescue# mount /dev/sxx1 /mnt/boot

tty1:Rescue# mount --bind /dev /mnt/dev
tty1:Rescue# mount --bind /proc /mnt/proc
tty1:Rescue# mount --bind /sys /mnt/sys
tty1:Rescue# mount --bind /run /mnt/run

chroot /mnt

tty1:Rescue# ip link set dev eth0 up
tty1:Rescue# ip addr add 192.168.1.17/24 dev eth0

◾ Tags:
ehowton: (BSD)


tty1:Rescue# mount /dev/sda1 /mnt

- else -

tty1:Rescue# pvs (sometimes lvm pvscan)
tty1:Rescue# vgs (sometimes lvm vgscan)
tty1:Rescue# lvs (sometimes lvm lvscan) (sometimes lvm lvs --all)

tty1:Rescue# vgchange -a y [vg]

tty1:Rescue# mount /dev/system/rootlv /mnt
tty1:Rescue# mount /dev/system/usrlv /mnt/usr
tty1:Rescue# mount /dev/system/optlv /mnt/opt
tty1:Rescue# mount /dev/system/varlv /mnt/var (optional)

For more programs to run, keep going:

tty1:Rescue# mount /dev/sxx1 /mnt/boot

tty1:Rescue# mount --bind /dev /mnt/dev
tty1:Rescue# mount --bind /proc /mnt/proc
tty1:Rescue# mount --bind /sys /mnt/sys
tty1:Rescue# mount --bind /run /mnt/run

chroot /mnt
◾ Tags:
ehowton: (Default)

On each my computers with a desktop (2xWindows, 1xOSX, 2xLinux) resides five (5) browsers (Edge, Opera, Vivaldi, Chrome & Firefox) and on each browser resides 70+ tabs. Given memory requirements, I keep these cultivated tab-farms in browser, but only run one browser at a time. Occasionally I will need to pull up another 70+ tab-farm browser to find some information, but keeping it up longer than a few moments is a dangerous game as I never kill my current browser. When my current browser does eventually crash (they all eventually crash), then and only then do I restart a previous browser as a new current default.

This is the way.
◾ Tags:
ehowton: (Parks!)

On each my computers with a desktop (2xWindows, 1xOSX, 2xLinux) resides five (5) browsers (Edge, Opera, Vivaldi, Chrome & Firefox) and on each browser resides 70+ tabs. Given memory requirements, I keep these cultivated tab-farms in browser, but only run one browser at a time. Occasionally I will need to pull up another 70+ tab-farm browser to find some information, but keeping it up longer than a few moments is a dangerous game as I never kill my current browser. When my current browser does eventually crash (they all eventually crash), then and only then do I restart a previous browser as a new current default.

This is the way.
◾ Tags:
ehowton: (Default)

For reasons I won't go into here, I increased the capacity of an iSCSI LUN to make more room in a handful of logical volumes. Awkwardly, the parent volume group lost its goddamn mind.

I can't recall if I've ever run into this specific scenario or not before, but I doubt it because I rarely mess around with SAN. Well, until recently anyway. Suffice it to say I was stuck until I could find away to dynamically resize the volume group. Turns out you have to use pvresize as in:

pvresize /dev/sdb

I cannot remember now if I had activated or deactivated the vg prior to doing so, but at any rate it worked.
◾ Tags:
ehowton: (BSD)

For reasons I won't go into here, I increased the capacity of an iSCSI LUN to make more room in a handful of logical volumes. Awkwardly, the parent volume group lost its goddamn mind.

I can't recall if I've ever run into this specific scenario or not before, but I doubt it because I rarely mess around with SAN. Well, until recently anyway. Suffice it to say I was stuck until I could find away to dynamically resize the volume group. Turns out you have to use pvresize as in:

pvresize /dev/sdb

I cannot remember now if I had activated or deactivated the vg prior to doing so, but at any rate it worked.
◾ Tags:
ehowton: (Default)
SINGLE VIB:
[root@esxi:~] esxcli software vib install -v /tmp/ixgben-1.7.10-1OEM.670.0.0.8169922.x86_64.vib
Installation Result
Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective.
Reboot Required: true
VIBs Installed: INT_bootbank_ixgben_1.7.10-1OEM.670.0.0.8169922
VIBs Removed: VMW_bootbank_ixgben_1.7.1.16-1vmw.670.3.73.14320388
VIBs Skipped:

ENTIRE ZIP OF VIBs:
[root@esxi:~] esxcli software vib update -d "/vmfs/volumes/RAID5/PATCHES/ESXi670-202004002.zip"
Installation Result
Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective.
Reboot Required: true
VIBs Installed: [like, the entire ZIP file]
VIBs Removed: [subset]
VIBs Skipped: [subset]
◾ Tags:
ehowton: (BSD)
SINGLE VIB:
[root@esxi:~] esxcli software vib install -v /tmp/ixgben-1.7.10-1OEM.670.0.0.8169922.x86_64.vib
Installation Result
Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective.
Reboot Required: true
VIBs Installed: INT_bootbank_ixgben_1.7.10-1OEM.670.0.0.8169922
VIBs Removed: VMW_bootbank_ixgben_1.7.1.16-1vmw.670.3.73.14320388
VIBs Skipped:

ENTIRE ZIP OF VIBs:
[root@esxi:~] esxcli software vib update -d "/vmfs/volumes/RAID5/PATCHES/ESXi670-202004002.zip"
Installation Result
Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective.
Reboot Required: true
VIBs Installed: [like, the entire ZIP file]
VIBs Removed: [subset]
VIBs Skipped: [subset]
◾ Tags:
ehowton: (Self Portait)

Either I was always searching for the wrong words or combination of words on Google - OR - the information is so humiliatingly basic as to not be helpful to anyone who already understands SAN topology, I present to you this, my masterpiece of trial and error (basically clinking every goddamn thing I could, in every conceivable combination until something worked.) Also, I'm the only person on the planet not running vCenter which makes it look like it could be configured verbally, "Alexa, map my SAN LUNs to ESXi."
"No problem, Eric. Done."


SO YOU WANT TO ADD SAN DISKS TO YOUR ESXi HOST LOL

ESXi HOST - ESXi 6.7u3:
12x48 PowerEdge R610 with a single 16GB dual-port HBA

SAN HOST - FreeNAS 11.3u2:
32x16 PowerEdge R730 with a single 10GB quad-port HBA


In FreeNAS ensure:

Sharing --> Block Shares (iSCSI) --> Associated Targets

Contains the Target/Extent mapping you wish to use, else even with the above the VM will not be able to see the boot disk.

Sharing --> Block Shares (iSCSI) --> Extents

For ESXi ONLY ensure 512 block size and DISABLE physical block-size reporting!

Lastly, your iSCSI disks may appear as NORMAL,DEGRADED on your ESXi GUI. This is due to there only being a single-path to your SAN disk.

In ESX ensure:

Host --> Manage --> Hardware --> PCI Devices --> "[brand] [speed] [port number] network connection" (this is your HBA)

Ensure Passthrough is DISABLED (enabling is apparently awesome if you want ONLY EVER A SINGLE VM to see the SAN via fiber not FCoE)

Reboot the whole entire goddamn ESXi host if you had to toggle passthrough.

Storage --> Adapters --> (vmhbaXX - iSCSI software adapter - online - iscsi_vmk)

Highlight that bitch and whichever is not grayed out (Configure iSCSI or Software iSCSI) click that one.

You have to enter the SAN's copper network IP as a DYNAMIC TARGET (port should be pre-populated with 3260) and when you click {ok} or {next} or whichever verbiage indicates you've completed this task and should move on to the next...

STATIC TARGETS populate with the BLOCK SHARE TARGET NAMES from the SAN :O

We all have our philosophies surrounding system administration, and mine is learning by utilizing RTFM only as a last resort. According to the SUSE Linux Enterprise Server 15 SP1 Deployment Guide:

The boot manager GRUB 2, used to boot machines with a traditional BIOS, does not support UEFI, therefore GRUB 2 is replaced with GRUB 2 for EFI. If Secure Boot is enabled, YaST will automatically select GRUB 2 for EFI for installation.

I tried it both ways, but EFI with Secure Boot disabled seems to be the way to go.

Edit Settings --> Add Hard Disk --> New Raw Disk --> (compare hostname UUID mapping from FreeNAS)

Boot VM from attached optical media and it should jump right into Installation and know right where to install :)

WHEN YOU ADD ANOTHER PATH TO AN EXISTING ESXi:

Storage --> Adapters --> Rescan
Storage --> Devices --> Rescan
Storage --> Devices --> Refresh

Should populate with the new LUN IF THE LUN ON THE SAN SIDE has a unique LUN_ID.
◾ Tags:
ehowton: (Default)

Either I was always searching for the wrong words or combination of words on Google - OR - the information is so humiliatingly basic as to not be helpful to anyone who already understands SAN topology, I present to you this, my masterpiece of trial and error (basically clinking every goddamn thing I could, in every conceivable combination until something worked.) Also, I'm the only person on the planet not running vCenter which makes it look like it could be configured verbally, "Alexa, map my SAN LUNs to ESXi."
"No problem, Eric. Done."


SO YOU WANT TO ADD SAN DISKS TO YOUR ESXi HOST LOL

ESXi HOST - ESXi 6.7u3:
12x48 PowerEdge R610 with a single 16GB dual-port HBA

SAN HOST - FreeNAS 11.3u2:
32x16 PowerEdge R730 with a single 10GB quad-port HBA


In FreeNAS ensure:

Sharing --> Block Shares (iSCSI) --> Associated Targets

Contains the Target/Extent mapping you wish to use, else even with the above the VM will not be able to see the boot disk.

Sharing --> Block Shares (iSCSI) --> Extents

For ESXi ONLY ensure 512 block size and DISABLE physical block-size reporting!

Lastly, your iSCSI disks may appear as NORMAL,DEGRADED on your ESXi GUI. This is due to there only being a single-path to your SAN disk.

In ESX ensure:

Host --> Manage --> Hardware --> PCI Devices --> "[brand] [speed] [port number] network connection" (this is your HBA)

Ensure Passthrough is DISABLED (enabling is apparently awesome if you want ONLY EVER A SINGLE VM to see the SAN via fiber not FCoE)

Reboot the whole entire goddamn ESXi host if you had to toggle passthrough.

Storage --> Adapters --> (vmhbaXX - iSCSI software adapter - online - iscsi_vmk)

Highlight that bitch and whichever is not grayed out (Configure iSCSI or Software iSCSI) click that one.

You have to enter the SAN's copper network IP as a DYNAMIC TARGET (port should be pre-populated with 3260) and when you click {ok} or {next} or whichever verbiage indicates you've completed this task and should move on to the next...

STATIC TARGETS populate with the BLOCK SHARE TARGET NAMES from the SAN :O

We all have our philosophies surrounding system administration, and mine is learning by utilizing RTFM only as a last resort. According to the SUSE Linux Enterprise Server 15 SP1 Deployment Guide:

The boot manager GRUB 2, used to boot machines with a traditional BIOS, does not support UEFI, therefore GRUB 2 is replaced with GRUB 2 for EFI. If Secure Boot is enabled, YaST will automatically select GRUB 2 for EFI for installation.

I tried it both ways, but EFI with Secure Boot disabled seems to be the way to go.

Edit Settings --> Add Hard Disk --> New Raw Disk --> (compare hostname UUID mapping from FreeNAS)

Boot VM from attached optical media and it should jump right into Installation and know right where to install :)

WHEN YOU ADD ANOTHER PATH TO AN EXISTING ESXi:

Storage --> Adapters --> Rescan
Storage --> Devices --> Rescan
Storage --> Devices --> Refresh

Should populate with the new LUN IF THE LUN ON THE SAN SIDE has a unique LUN_ID.
◾ Tags:
ehowton: (TRON)

Wow let's see, Thursday I spent all day building, populating, and learning how to use the new Registration Management Tool (RMT) the SLES15 replacement for their Subscription Management Tool (SMT), which I had planned on building one day, but necessity as they say is indeed the mother of invention; I couldn't move forward with out it.

I'd had some weird unix-troubleshooting dream that morning, awaking with a start and suddenly knowing how to install virtual machines directly from the SAN. Alexa informed my groggy ass it was three-hours earlier than I usually get up, so I shrugged on some shorts, grabbed a cup of coffee and starting working straightaway. As it turned out, that was the easy part.

Its not like you can google, "How come an ESXi SLES15 vm can install over FC-SAN but can't boot from it?" which was my day all day Friday. Well, actually you can ask but the answers are usually far too granular, far too vague, or some 12-year old thinks you're talking about double-clicking a Windows icon. As I had to work production maintenance this evening, I played around with it on and off some more. Admittedly, I know very little about fiber channel, very little about storage attached networks, and very little about hypervisor interactions with host bus adapters (and SLES15 seems just different enough from SLES12 to complicate these matter), so its not like I was expecting to get it right the first time. Or the second, for that matter.

In the midst of all this I'm still teaching my wife unix, I've picked up another student of sorts, and have worked something like 12-days straight, 70-hours this week alone. And I haven't been able to play Dungeon Siege in two days :(
◾ Tags:
ehowton: (BSD)

# zypper install rmt-server

# systemctl stop rmt-server-sync.timer
# systemctl disable rmt-server-sync.timer




# rmt-cli sync
<-- initial SCC sync

# rmt-cli products list --all (exclude --all for only enabled)
# rmt-cli repos list --all (exclude --all for only enabled)
<-- after initial sync

play with that:

# rmt-cli products list --all | grep 15 <-- will show only SLES 15 stuff

# rmt-cli repos enable 3061
<-- enable MIRROR repository by ID

play with THAT:

# rmt-cli products list --all | grep 15 | grep SP1<-- way more powerful than SMT (BEWARE - "15" can show up in ID causing something completely unrelated to what you want to enable, e.g. | grep -v 1159)

# for x in `rmt-cli products list --all | grep SUSE | grep 15 | grep SP1 | grep -v 1159 | awk '{ print $2 }'` ; do rmt-cli products enable $x ; done
<-- awesome!

apply to repos:

# for x in `rmt-cli repos list --all | grep 15 | grep SP1 | grep -v Not | awk '{ print $2 }'` ; do rmt-cli repos enable $x ; done

Alt: rmt-cli repos enable 3338 3336 3303 3301

Once all the repos are enabled, force a manual mirror:

# rmt-cli sync
# rmt-cli mirror




# systemctl restart nginx
# systemctl restart rmt-server
◾ Tags:
ehowton: (BSD)

# cd /dir_to_copy
# rsync -aAXxv . /newdir
◾ Tags:
ehowton: (Default)

# cd /dir_to_copy
# rsync -aAXxv . /newdir
◾ Tags:
ehowton: (MMORPG)

For a rambling, disjointed list of a mix of both related, and unrelated reasons, I decided to play Dungeon Siege.

Found my DSII hardpack of discs, but not my DSI install disc. Its somewhere in the house. Went through a dozen or so boxes, couldn't find it, bought it on Steam for $7. Discovered some bright, enterprising person or persons has made available an (enormous) HIGH-DEF skin for it. I go to download that and it requires the first Expansion Pack, Legends of Aranna, which I also have somewhere in this house. I find the first install disc for the Expansion Pack in my DSII hardpack and can only assume the second install/play disc is in the DSI case - the one I cannot find. But! Knowing myself so very well, I pull out my trusty aged external with all my game ISOs on it, because I know I made backups of every physical media I own for times exactly like this. Including, of course the game I just bought on Steam for $7. Not quite as smart as I think I am as it turns out.

AT ANY RATE I have a mix of ISO and UIF on my backup drive and ye olde standby MagicISO stopped working on Windows awhile back so I look up how to convert UIF-to-ISO and apparently there's a tiny installable app named (oddly enough) UIF-to-ISO and it looks eerily familiar, so I bring up the Window search bar and sure enough it is already installed on my system, so yay, but apparently I also only have the first Expansion Pack disc as an UIF (now ISO) and not the SECOND disk. WTF is even wrong with me?

Clicked the VPN button in the address bar of Opera on my linux workstation and I'm suddenly sipping vodka in the Ukraine. I torrent (I know, I know) a cracked verison (its not like I already don't own this game twice) and pull down...three (3) disks??? All in *.mdf format. Thankfully I already have iat on a beefy box I made to convert SGI disk label *.img files (not that that worked):

root@beefy:/xfer/ds_loa/Disks# iat DISK1.mdf DISK1.iso
Iso9660 Analyzer Tool v0.1.3 by Salvatore Santagati
Licensed under GPL v2 or later

Detect Signature RAW at 2440
Detect Signature RAW at 4888
Detect Signature RAW at 7336
Detect Signature RAW at 9784
Detect Signature RAW at 12232
Detect Signature RAW at 14680
Detect Signature RAW at 17128
Detect Signature RAW at 19576
Detect Signature RAW at 22024
Detect Signature RAW at 24472
Detect Signature RAW at 26920
Detect Signature RAW at 29368
Detect Signature RAW at 31816
Detect Signature RAW at 34264
Detect Signature RAW at 36712
Detect Signature RAW at 39160
Detect Signature ISO9660 START at 39184
Detect Signature RAW at 41608
Detect Signature ISO9660 END at 41632

 Image offset start at 0
 Sector header 16 bit
 Sector ECC 384 bit
 Block 2448
 29% [:=====>               :]

Each ISO took under 60-seconds to create (beefy) and 20-seconds each to pull over to my Windows box using scp. The enormous HIGH-DEF mod-pack was behind one of those throttling sites unless you pay a fee, so I'll include that on my external with the ISOs when I decide to do this again in 10-years booting from Microsoft Windows CloudTM

At any rate, the game looks FANTASTIC at 1920x1080. I can't even imagine how much work had to go into that, but it looks fresh and nothing like the 2002 it looked like when I started.






https://www.wsgf.org/dr/dungeon-siege --> For more resolutions (ex.: 3440 x 1440. Have to HEXEDIT the .EXE file)
https://www.nexusmods.com/dungeonsiege1/mods/44?tab=files --> High resolution texture pack (5.7Gib)
https://www.pcgamingwiki.com/wiki/Glossary:Anisotropic_filtering_(AF) --> Force anisotropic filtering
https://www.moddb.com/games/dungeon-siege/addons/dungeon-siege-high-resolution-textures <-- Skip the paywall above (Thanks Leslie!)

◾ Tags:
ehowton: (Knight)


◾ Tags:
ehowton: (Dorian)

Last night was a bit of an impromptu lesson, and as it wasn't as planned, we touched on a handful of topics in a more stream-of-consciousness manner. Expounding more on the power of grep (where we left off the night before), that led us to regex and the disparate parts which encapsulate (g/re/p), which pointed us directly to a very high overview of sed all of which was followed up with a handful of practical applications and quizzes, which she either got correct, or anticipated the case-use scenarios on her own and asked if it could be used in the very way with which I was going to try and sneak in a trick question. Its humbling having such a smart wife. In fact, after each of my little mini-lessons, she went about things in such a different manner than I usually do, I was having a difficult time keeping up with HER. She seems to have taken the proverbial ball (thanks, [profile] drax0r) and began running with it.

Last night she installed CentOS in preparation for an Introduction to Red Hat course :O

Somebody else is going to have to teach her subnetting though. That's what I failed on my HP/UX 11i Certification test (the fact that subnetting was fully three-goddamn-quarters of the cert test to this day remain beyond my comprehension, like WITAF?)
ehowton: (Dorian)

Today we started with a lesson in the three remaining major linux distros and their derivatives:

  • RHEL

    • Centos

    • Fedora

  • Debian

    • Ubuntu

    • Mint

  • SLES

    • openSUSE


And how they differed in their package managers (RPM & DPKG) and their online package repositories (yum, apt, and zypper). From there we updated her packages, rebooted (because there was a kernel update, which allowed us to talk about the kernel, and more on the shell), and she installed her first program, neofetch which gave us the opportunity to discuss, architecture, uptime, uname, (kernel) and /etc/*release*.

After that we started simply with more, head, tail as a follow-on to the cat command, which led us to pipe (|) and grep then went right into absolute versus relative paths, and surprisingly enough, file ownership and permissions, which she picked up way faster than I expected. I'm just pleasantly surprised at how quickly she's figuring out and running with the little information I give her :)
ehowton: (Caprica)



2005-2020



Back in the early days of LJ I'd created a BSD avatar for those few, painful times I ran FreeBSD. Wasn't really a fan, preferring instead the burgeoning liunx. One of the few ways to keep personalized avatars from resetting to the default in LJ is to keep the same name as the one it is replacing, then simply adding a comma deliminated keyword for search purposes. But I digress. My keyword-named "BSD" avatar was replaced with my O/S of choice back then of early ubuntu, and my avatar was a play on those ridiculous naked people gracing the wallpaper screen with the ubuntu logo prominently displayed somewhere on them. I wanted to make one better than the wallpapers, so turned to one of the nude models I was familiar with back in 06, and popped the logo the only place that made sense given both the logo, and the constraints of a 100x100 pixel avatar. Some time later, I thought it might look better as a tattoo, and updated it before using the same model when I switched operating systems to suse, then deciding several years later I'd done a slipshod job on the "tattoo" and made it more realistic, which is the one I use to this day.

Having gotten back into BSD, I decided I finally needed a BSD avatar to differentiate between the two given my rash of technical posts, especially since I already have one for Sun Microsystems, HP/UX, and SGI. I run a lot more OpenBSD these days than FreeBSD (though my SAN, FreeNAS is FreeBSD based), but "Puffy" the bloated OpenBSD logo is considerably less sexy than the new Anton K. Gural logo (not the Lasseter (of Pixar fame) daemon). Which I hued pink to match the hair of the new girl I found online and who's origin I cannot ascertain to give credit.

Admittedly, its been awhile since I've played with LJ avatars, but given two of my favorite subjects, still a hell of a lot of fun :)



◾ Tags:
ehowton: (BSD)

Set up the NFS share Maproot user to "root" and the Maproot Group to "wheel"
This way when you have the NFS share mounted and you run something as root on the client you are also root on the FreeNAS box and can change the ownership of the directory.

# chmod 1777 /nfsmount <-- rwx +sticky bit

               ,        ,
              /(        )`
              \ \___   / |
              /- _  `-/  '
             (/\/ \ \   /\
             / /   | `    \
             O O   ) /    |
             `-^--'`<     '
            (_.)  _  )   /
             `.___/`    /
               `-----' /
  <----.     __ / __   \
  <----|====O)))==) \) /====
  <----'    `--' `.__,' \
               |        |
                \       /
           ______( (_  / \______
  (FL)   ,'  ,-----'   |        \
         `--{__________)        \/
◾ Tags:
ehowton: (Default)

Done! SAN-booted a diskless SLES 12 for SAP SP4 server over Fibre Channel! Handful of moving pieces here: First of all, I had to uncross the fibre cable I'd crossed - that wasn't working AT ALL. So, note to self, no matter fabric switch or direct connect, it doesn't need to be done. The two parts on FreeNAS which needed to be addressed was enabling the fibre port, and defining it as target, not an initiator, as indicated in TASKS and TUNABLES:

Type: Command
Command: ctladm port -o on -t fc
When: Post Init
Enable: checked

Variable: hint.isp.0.role
Value: 0
Type: Loader
Comment: target mode FC port 1
Enabled: checked

Many thanks to the HEC Foundation, Mr. Halsell, and the Steven J. Goodmark Memorial Library for their numerous contributions.

The video is the install-to-SAN from a thumbdrive boot pulling additional packages across the network from an SMT virtual.



https://www.ixsystems.com/community/resources/fibre-channel-on-freenas-11-1u4.93/
◾ Tags:
ehowton: (BSD)

ME (a unix admin): "We need some unix-y music,"
HER: (with the quizzical look): "What is unix-y music?"
ME (obvs): PSY GOA TRANCE.
HER: ...

psy goa trance starts playing

HER (a connoisseur): "Oh, like Hackers!"




We closed the console and I had her log into the box remotely, via secure shell. Or at least, I tried. The username on the new openSUSE box did not match her username in the Mac Mini terminal, so it was then and there I decided we'd just jump right in. Awkwardly, I didn't realize at the time how overwhelming just changing a username would be for a novice.

This necessitated discussion and practical application on the following concepts as we stepped through each field of a password file:


Where usernames are kept on a unix system
How to ascertain where user passwords are located
What is a GID?
What/Where are user groups?
What goes in a comment field?
Home directories
Brief history of the shell and where to define it


Followed up with:


SysAdmin 101 - always copy a file you're going to edit prior to editing it
Why are we changing all these goddamn files for a single username?
Fuck mv, where is the unix rename command?
What is cat and how to use it after you've just edited a file you previously backed up.


And well before I was ready to even introduce it, but by sudden necessity, an introduction to vi. On the plus side, the gamer in her was able to quickly associate the vi navigation keys h, j, k, l with the w, a, s, d character movement keys in video games, something I'd not even ever considered.

She reminded me at the hour-mark that most classes gives breaks after 60-minutes of lecture and labs. Thankfully, we'd just completed our task.
ehowton: (BSD)

It was one of those pandemic things which began approximately 30-days into the self-quarantine, when the rush of the creative stimuli began to wane. A full month of challenging (given the adverse environment) content creation in place of the endless video games and mindless television shows which plagued our pre-isolation. But even that was ebbing and growing trite given the duration. That's when I announced, "I'm thinking about teaching you unix."

My wife is awfully smart and occasionally curious at my feverish typing and code-like speech to coworkers over conference calls during break-fix activities, so it seemed the perfect distraction. What I had forgotten was how much teaching something taxes the part of your brain one would normally take for granted when the questions are never raised - like why are the filesystems named what they are named? "etcetera" and "optional" and "variable" - easy to understand when you've been doing it for 20-years, slightly more difficult to articulate it from the ground up; filesystem hierarchy and layout; interdependency and functionality.

This led us into a brief history of Berkeley, and AT&T, enumerating examples of both, culminating into today's popular linux distros. From there I had her research them and choose one for installation as our learning testbed. Using NoMachine (incomprehensibly faster and more stable than VNC), I was able to log-in remotely to view her desktop while she worked, which allowed input without being oppressively over the shoulder (and to take over the screen quickly when words failed to accurately describe the location of a minor tab or radio-box) as she worked. Painstakingly, we went through each step of a virtual machine guest creation (up to and including disk cylinders, why swap is always the first partition, why /var is never mounted in the root partition, and why she'll likely never have to worry about any of those things today)! This resulted in her installing her first distro, a headless openSUSE server!
ehowton: (Self Portait)

One of my favorite things to do is force-reinstall dbus on an alternate tty due to "could not acquire name on session bus" every time I have to reboot my linux desktop because something, somewhere, is broken and no one, anywhere, knows what or why.
◾ Tags:
ehowton: (BSD)
lvchange -a n /dev/vgHPVM/lvvmtest

lvreduce -L 0 /dev/vgHPVM/lvvmtest

in HP/UX I had to "init s" into single-user mode first

lvremove -f /dev/vgHPVM/lvvmtest
◾ Tags:
ehowton: (BSD)

Got about two solid hours of sleep before I realized I wasn't going back to bed. Too much on my mind. So I shuffled down into the server room and began tinkering with several ideas I'd had lately. First, I wanted to build a FreeNAS server. I have these double-walled totes I keep my hardware in. One is filled completely with SCSI cables, another, 80-pin hot-plug SCA hard drives in a variety of sleds, and another one yet filled with a variety of PCB boards. I dug out the only SCSI adapter I have, an ancient Symbios 22802, and untangled a high-density DB68-to-68-pin adapter cable to connect to a 20-year old Sun 711 disk pack.

The disk pack holds six drives, so I pulled a matching set of 73GB 15k drives from their HP sleds, and removed an equal number of 9GB, 18GB, and 36GB drives from their Sun sleds, and swapped them to complete a matched set of drives for the disk pack. Presumably UltraSCSI doesn't require a terminator, but I dug one of those out as well.

Cracking open the largest of the PowerEdge 2950's I discovered its expansion riser was PCIe, and I needed PCIx for the SCSI adapter card. Thankfully the other PowerEdge 2950 is slightly older, and had a PCIx expansion riser in it! Once that was swapped and the Symbios installed, I rebooted the server with the disk pack attached in several combinations but could never get the card to see the drives. Additionally, I lost half of the six drives during the subsequent power cycles as they hadn't been powered on in 15-years. It was only then I checked the FreeNAS matrix, and even if the server had seen the drives, FreeNAS doesn't support the Symbios 22802.

Once I put everything back together I decided to upgrade the RAM in my OpenBSD bastion, an even older Cisco branded DL320. Upgrade might not be the right word, as the RAM I wanted to use was slower (533MHz vs 66&MHz), but significantly more (8GB vs 2GB). I had pulled this ECC RAM from a second, non-working RX2600 HP/UX chassis but despite the two modules being interchangeable, the Cisco server wouldn't boot with it in any combination. I searched for a physical jumper on the motherboard to shunt to no avail.

In all of this, I did find a virtual SAN, specific to our production environment, which runs solely on VMware to emulate SAN connections to virtual servers, so might try that despite the fact I'm not a storage admin. Could be fun.

◾ Tags:

June 2025

S M T W T F S
1 2 3 4 5 6 7
8 9 10 11 1213 14
15 16 17 18 192021
22232425262728
2930     

Most Popular Tags

Expand Cut Tags

No cut tags