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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

tfewsterCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.