Archive for the ‘solaris’ Category
Removing file or directory via inode number
While back I was doing some work with SVM. Everything went smoothly, but after I was done I experienced some bizarre issue. I am not entirely sure how it came to be. I needed to remove a temporary mountpoint called /tmpmnt: bash-3.00# ls -l lrwxrwxrwx 1 root root 9 Nov 29 2010 bin -> ./usr/bin drwxr-xr-x 8 root sys 512 Nov 29 2010 boot drwxr-xr-x 3 root nobody 512 Nov 30 2010 cdrom drwxr-xr-x 18 root sys 4096 Jun 8 10:04 dev drwxr-xr-x 2 root sys 512 Jun 8 2011 devices drwxr-xr-x 88 root sys 4608 Jun 8 10:04 etc drwxr-xr-x 3 root sys 512 Nov 30 2010 export dr-xr-xr-x 1 root root 1 Jun 8 10:04 home drwxr-xr-x 18 root sys 512 Nov 29 2010 kernel drwxr-xr-x 8 root bin 5632 Nov 29 2010 lib drwx—— 2 root root 8192 Nov 29 2010 lost+found [...]
In: centos, linux, linux tips, redhat, solaris, solaris tips
Finding out native instruction set in Solaris
This is one of those commands that I just can not seem to memorize. Among others, isainfo will tell you if you are using 32-bit or 64-bit kernel modules. Check out isainfo man page for more details… ultra$ isainfo -v 64-bit sparcv9 applications 32-bit sparc applications ultra$
In: solaris, solaris tips, solaris utilities
Identifying a failed disk using dd
A while back I had the “fortune” of having to deal with replacement of a failed disk inside a disk array of some HP-UX machine. Never mind lack of any information regarding the hardware setup (dual controllers, multipathing, etc.)… The biggest problem was identifying the failed disk. Oh, and throw some LVM into that… Of [...]
In: centos, hpux, linux, linux tips, linux utilities, redhat, solaris, solaris tips, solaris utilities
Accessing Mirrored Metadevice When Booting from CD/DVD
How do you access mirrored root disks when booting into single user mode from either network or DVD/CD? Presumably because of luck I have not been forced into this situation. When booting from DVD or network in single user mode your mirrored root disks will not be available. If you are booting single user mode [...]
In: solaris, solaris tips, solaris volume manager, storage
Deleting Solaris Container
And finally for “completeness” of my Solaris Containers notes, here is a procedure to delete a container. You can not remove a container that is active. You have to halt it first. Start by finding out what containers are configured and what state they are in: bash-3.00# zoneadm list -cv ID NAME STATUS PATH BRAND IP 0 global running / native shared - ns1 installed /export/home/zones/ns1 native shared First you [...]
In: solaris, solaris containers, solaris tips, solaris zones

