Saturday, December 4, 2010

Mounting ISO images on Solaris

mount /root/solaris.iso file under /mnt directory

# lofiadm -a /root/solaris.iso /dev/lofi/1

# mount -F hsfs -o ro /dev/lofi/1 /mnt

to unmount

# umount /mnt

# lofiadm -d /dev/lofi/1

lofi = loopback file driver

Friday, May 28, 2010

lucreate bug (copying the whole filesystems to NewBE) - How to fix

So, I'm here again ... Bored as usual, lol ... Decided to write this to unbore me a little bit, rofl ....

I'm not sure if you ever faced this issue, but I can say I've had many frustrating times and had to redo a lot of lucreates because of this.

I don't know why, but some versions of Solaris LiveUpgrade appear to be buggy (when you start a lucreate command, it simply copy the whole filesystem structure under / to your little slice0).

EG:You have /apps, /u001, etc. lucreate copies everything sitting on the / FS to your NewBE partition (and of course that I don't have to say how this will end and which message you will receive during the process - NO SPACE LEFT ON DEVICE).

So, to avoid this thing to happen and have a 100% safe copy of your CurrentBE, run lucreate as follows:

# lucreate -n NewBE -m /:/dev/dsk/<C#T#D#>s0:ufs -m -:/dev/dsk/<C#T#D#>s1:swap -m /var:/dev/dsk/<C#T#D#>s5:ufs -f /tmp/LU_exclude_list

You can see that I've added a file path name on the -f parameter (this is to avoid lucreate to copy the FS specified on the file LU_exclude_list).

The file content is a pretty simple text file with a list of your filesystems mount points:

# cat /tmp/LU_exclude_list
/appPOC
/apps
/u001
/u002
/u003

Hope this helps ... Cya!!!!