Veritas Storage Foundation™ and High Availability Solutions ...

Veritas Storage Foundation™ and High Availability Solutions ... Veritas Storage Foundation™ and High Availability Solutions ...

sfdoccentral.symantec.com
from sfdoccentral.symantec.com More from this publisher
12.07.2015 Views

40Storage Foundation and High Availability Solutions support for Solaris ZonesDirect mount of VxFS file systems from global zoneDirect mount of VxFS file systems from global zoneExclusive access of a VxFS file system can be delegated to a non-global zone bydirect mounting the file system in the non-global zone. Using direct mounts limitsthe visibility of and access to the file system to only the non-global zone that hasdirect mounted this file system.See “Mounting a VxFS file system in a non-global zone” on page 40.See “Adding a direct mount to a zone's configuration” on page 41.See “Creating VxFS file systems inside non-global zones” on page 42.Mounting a VxFS file system in a non-global zoneTo direct mount a VxFS file system in a non-global zone, the directory to mountmust be in the non-global zone and the mount must take place from the globalzone. The following procedure mounts the directory dirmnt in the non-globalzone myzone with a mount path of /zonedir/myzone/root/dirmnt.Note: VxFS entries in the global zone /etc/vfstab file for non-global zone directmounts are not supported, as the non-global zone may not yet be booted at thetime of /etc/vfstab execution.Once a file system has been delegated to a non-global zone through a direct mount,the mount point will be visible in the global zone through the mount command,but not through the df command.To direct mount a VxFS file system in a non-global zone1 Log in to the zone and make the mount point:global# zlogin myzonemyzone# mkdir dirmntmyzone# exit2 Mount the file system from the global zone:■Non-cluster file system:global# mount -F vxfs /dev/vx/dsk/dg/vol1 /zonedir/zone1\/root/dirmnt■Cluster file system:

Storage Foundation and High Availability Solutions support for Solaris ZonesDirect mount of VxFS file systems from global zone41global# mount -F vxfs -o cluster /dev/vx/dsk/dg/vol1 \/zonedir/zone1/root/dirmnt3 Log in to the non-global zone and ensure that the file system is mounted:global# zlogin myzonemyzone# df | grep dirmnt/dirmnt (/dirmnt):142911566 blocks 17863944 filesAdding a direct mount to a zone's configurationA non-global zone can also be configured to have a VxFS file system direct mountautomatically when the zone boots using zonecfg. The fsck command is run,before the file system is mounted. If the fsck command fails, the zone fails toboot.To add a direct mount to a zone's configuration1 Check the status and halt the zone:global# zoneadm list -cvID NAME STATUS PATH BRAND IP0 global running / native shared2 myzone running /zones/myzone native sharedglobal# zoneadm -z myzone halt2 Add the file system to zones configuration.global# zonecfg -z myzonezonecfg:myzone> add fszonecfg:myzone:fs> set dir=/dirmntzonecfg:myzone:fs> set special=/dev/vx/dsk/dg_name/vol_namezonecfg:myzone:fs> set raw=/dev/vx/rdsk/dg_name/vol_namezonecfg:myzone:fs> set type=vxfszonecfg:myzone:fs> endzonecfg:myzone> verifyzonecfg:myzone> commitzonecfg:myzone> exit

<strong>Storage</strong> Foundation <strong>and</strong> <strong>High</strong> <strong>Availability</strong> <strong>Solutions</strong> support for Solaris ZonesDirect mount of VxFS file systems from global zone41global# mount -F vxfs -o cluster /dev/vx/dsk/dg/vol1 \/zonedir/zone1/root/dirmnt3 Log in to the non-global zone <strong>and</strong> ensure that the file system is mounted:global# zlogin myzonemyzone# df | grep dirmnt/dirmnt (/dirmnt):142911566 blocks 17863944 filesAdding a direct mount to a zone's configurationA non-global zone can also be configured to have a VxFS file system direct mountautomatically when the zone boots using zonecfg. The fsck comm<strong>and</strong> is run,before the file system is mounted. If the fsck comm<strong>and</strong> fails, the zone fails toboot.To add a direct mount to a zone's configuration1 Check the status <strong>and</strong> halt the zone:global# zoneadm list -cvID NAME STATUS PATH BRAND IP0 global running / native shared2 myzone running /zones/myzone native sharedglobal# zoneadm -z myzone halt2 Add the file system to zones configuration.global# zonecfg -z myzonezonecfg:myzone> add fszonecfg:myzone:fs> set dir=/dirmntzonecfg:myzone:fs> set special=/dev/vx/dsk/dg_name/vol_namezonecfg:myzone:fs> set raw=/dev/vx/rdsk/dg_name/vol_namezonecfg:myzone:fs> set type=vxfszonecfg:myzone:fs> endzonecfg:myzone> verifyzonecfg:myzone> commitzonecfg:myzone> exit

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!