Adding File system to solaris zone

Hi Experts,

Im just learning abt solaris zones. i have successfully configured a solaris zone and im also able to login to the zone. I have created my zone as /export/home/zones/zone-apache. WHen i login to zone-apache and do a df -h, this is what i get...

################################################################################
# df -h
Filesystem             size   used  avail capacity  Mounted on
/                      3.9G    75M   3.8G     2%    /
/dev                   3.9G    75M   3.8G     2%    /dev
/lib                   5.8G   3.1G   2.6G    55%    /lib
/platform              5.8G   3.1G   2.6G    55%    /platform
/sbin                  5.8G   3.1G   2.6G    55%    /sbin
/usr                   5.8G   3.1G   2.6G    55%    /usr
proc                     0K     0K     0K     0%    /proc
ctfs                     0K     0K     0K     0%    /system/contract
mnttab                   0K     0K     0K     0%    /etc/mnttab
objfs                    0K     0K     0K     0%    /system/object
swap                   588M   300K   588M     1%    /etc/svc/volatile
/usr/lib/libc/libc_hwcap1.so.1
                       5.8G   3.1G   2.6G    55%    /lib/libc.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   588M    36K   588M     1%    /tmp
swap                   588M    16K   588M     1%    /var/run
##########################################################################
Now i have created a soft partition d11 with 1g and want to add it to zone-apache which is a non-global zone.  for that i did the following:

metainit d11 -p d20 1g
newfs /dev/md/rdsk/d11
zonecfg -z zone-apache
zonecfg:my-zone> add fs
zonecfg:my-zone:fs> set dir=/export/work
zonecfg:my-zone:fs> set special=/dev/md/dsk/d11
zonecfg:my-zone:fs> set raw=/dev/md/rdsk/d11
zonecfg:my-zone:fs> set type=ufs
zonecfg:my-zone:fs> end
zonecfg:my-zone>commit
zonecfg:my-zone>exit

Now when i login and see in my non-global zone, i cannot see the file system mounted. Could someone please tell me where im going wrong? this has been annoying me whole afternoon

Regards,
Vamsi
LVL 4
vamsi_ukAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
tfewsterConnect With a Mentor Commented:
Did you create the mount point in the global zone?
mkdir -p /export/work

http://www.sun.com/bigadmin/content/submitted/zone_config_steps.jsp
0
 
Hanno P.S.IT Consultant and Infrastructure ArchitectCommented:
a) try to mount it manually (mount /dev/md/dsk/d11 /mnt) to verify you have access to this device.
b) If that's OK, check the mount point (as tfewster suggested)
0
 
vamsi_ukAuthor Commented:
Gosh, after trying for almost a day, i think the problem is that i did not do a reboot the zone for the mount to appear. That could be the problem !!!

Anyway, thanks for the help guys
0
All Courses

From novice to tech pro — start learning today.