Solaris lucreate ERROR: Unable to mount boot environment
# /usr/sbin/luupgrade -u -n NEWBE -s /mnt -k /tmp/sysidcfg 64459 blocks miniroot filesystem is Mounting miniroot at ERROR: Unable to mount boot environment . Live Upgrade uses /a as a temporary mount point and directory for some of its actions. Check /a to make sure it is empty in the current BE and the new […]
Solaris : The file just loaded does not appear to be executable.
After ufs to zfs conversion. Rebooting with command: boot Boot device: disk File and args: detached mirror Can’t mount root Evaluating: The file just loaded does not appear to be executable. To boot the system from the ok prompt this worked for me: {3} ok boot /pci@9,600000/SUNW,qlc@2/fp@0,0/disk@1,0 -Z rpool/ROOT/Solaris10ZFS Check the bootfs setting on the […]
HPUX : Lun ID
Method 1 : scsimgr # ioscan -m dsf Persistent DSF Legacy DSF(s) ======================================== /dev/pt/pt2 /dev/rscsi/c4t10d0 /dev/pt/pt3 /dev/rscsi/c6t9d0 /dev/pt/pt5 /dev/rscsi/c8t0d0 /dev/rdisk/disk10 /dev/rdsk/c5t0d0 /dev/rdsk/c7t0d0 # scsimgr get_attr -D /dev/rdisk/disk10 -a serial_number SCSI ATTRIBUTES FOR LUN : /dev/rdisk/disk10 name = serial_number current = “1111150H0000”
Unix Cron Crontab
#* * * * * command to be executed #- – – – – #| | | | | #| | | | +—– day of week (0 – 6) (Sunday=0) #| | | +———- month (1 – 12) #| | +————— day of month (1 – 31) #| +——————– hour (0 – 23) #+————————- […]
Solaris ssh in single usermode
Ever wish you could use ssh in single user mode? This may work some of the time. From the console execute: # /usr/lib/ssh/sshd Then ssh to the server. If you are running regular ssh this may work.
infinite ksh shell loop with count
So .. no thrills no frills. If you are searching for this .. you know what you are looking at and can modify this as needed. #!/usr/bin/ksh export PATH=$PATH:/sbin:/bin:/usr/bin:/usr/local/bin:/usr/sbin:/usr/local/bin DATE=`date ‘+%Y.%m.%d_%H.%M.%S’` count=1 while true do echo ${count} (( count++ )) if [[ ${count} -eq 11 ]]; then count=1 fi sleep 1 done This script will […]
Solaris Automatic Booting auto-boot
true – (Default) The host automatically attempts to boot from the devices specified in boot-device. false – The host does not automatically boot. You can boot manually. Verify current setting: # eeprom | grep auto-boot Change: # eeprom auto-boot?=false Verify updated setting: # eeprom | grep auto-boot Reset the host: # init 6 From the […]
Solaris RSC Console Management From OS
Need to reset your rsc password from the OS? Don’t know what the user name is? # /usr/platform/`uname -i`/rsc/rscadm usershow username permissions password ——– ———– ——– admin cuar Assigned To reset the password: # /usr/platform/`uname -i`/rsc/rscadm userpassword root Need help: # /usr/platform/`uname -i`/rsc/rscadm help USAGE: rscadm [options] For a list of commands, type “rscadm help” […]
Solaris Patching Logs
I always forget where the patching logs are kept. /var/sadm/install_data/ /var/sadm/install_data/s10s_rec_patchset_short_2013.10.26_02.32.30.log /var/sadm/install_data/s10s_rec_patchset_verbose_2013.10.26_02.32.30.log /var/sadm/install_data/s10s_rec_patchset_failed_2013.10.26_02.32.30.log /var/sadm/install_data/_patchadd_2013.10.26_02.32.30.log /var/sadm/install_data/_patchadd_subproc_2013.10.26_02.32.30.log The individual patch log files can also be inspected under /var/sadm/patch/PatchID/log
Solaris Ndd Parameters
Quick and dirty ndd for Solaris 5.10 Generic_148888-05 For APR parameters: # ndd -get /dev/arp ? ? (read only) arp_cleanup_interval (read and write) arp_publish_interval (read and write) arp_publish_count (read and write) arp_probe_delay (read and write) arp_probe_interval (read and write) arp_probe_count (read and write) arp_fastprobe_delay (read and write) arp_fastprobe_interval (read and write) arp_fastprobe_count (read and write) […]