Adding a file system to a running zone

I needed to add a second file system to one of my Solaris 10 zones this morning, and needed to do so without rebooting the zone. Since the global zone uses loopback mounts to present file systems to zones, adding a new file system was as easy as loopback mounting the file system into the zone’s file system:

$ mount -F lofs /filesystems/zone1oracle03 /zones/zone1/root/ora03

Once the file system was mounted, I added it to the zone configuration and then verified it was mounted:

$ mount | grep ora03

/filesystems/zone1oracle03 on filesystems/zone1oracle0 read/write/setuid/devices/nonbmand/exec/xattr/atime/dev=2d9000b on Sun Apr 12 10:43:19 2009
/zones/zone1/root/ora03 on /filesystems/zone1oracle03 read/write/setuid/devices/dev=2d9000b on Sun Apr 12 10:44:07 2009



Now to update my ASM disk group to use the storage.

5 Comments

Jeff Higham  on April 13th, 2009

With ZFS filesystem (mountpoint=legacy):
mount -F zfs zpool/fs /path/to/zone/root/fs

veera  on October 27th, 2009

thanks for this command , it saved me from critical issue , thanks google which helped me to arrive here!!!

Ollie  on November 29th, 2010

i am going to say the same thing like veera. thank u for the command !

anonylmous  on July 21st, 2011

You need to add the lofs to the zonecfg to keep it after reboot!

darshan  on April 3rd, 2012

Thanks for command, this save my time & avoid unnecessary reboot of zone.:)

Leave a Comment