Veritas Storage Foundation™ and High Availability Solutions ...
Veritas Storage Foundation™ and High Availability Solutions ... Veritas Storage Foundation™ and High Availability Solutions ...
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
- Page 1 and 2: Veritas Storage Foundationand High
- Page 4 and 5: Technical SupportContacting Technic
- Page 6 and 7: Support agreement resourcesIf you w
- Page 8 and 9: 8ContentsModifying the service grou
- Page 10 and 11: 10ContentsInstalling and configurin
- Page 12 and 13: 12ContentsSupported deployment mode
- Page 14 and 15: 14Overview of Veritas Storage Found
- Page 18 and 19: 18Storage Foundation and High Avail
- Page 20 and 21: 20Storage Foundation and High Avail
- Page 22 and 23: 22Storage Foundation and High Avail
- Page 24 and 25: 24Storage Foundation and High Avail
- Page 26 and 27: 26Storage Foundation and High Avail
- Page 28 and 29: 28Storage Foundation and High Avail
- Page 30 and 31: 30Storage Foundation and High Avail
- Page 32 and 33: 32Storage Foundation and High Avail
- Page 34 and 35: 34Storage Foundation and High Avail
- Page 36 and 37: 36Storage Foundation and High Avail
- Page 38 and 39: 38Storage Foundation and High Avail
- Page 42 and 43: 42Storage Foundation and High Avail
- Page 44 and 45: 44Storage Foundation and High Avail
- Page 46 and 47: 46Storage Foundation and High Avail
- Page 48 and 49: 48Storage Foundation and High Avail
- Page 50 and 51: 50Storage Foundation and High Avail
- Page 52 and 53: 52Storage Foundation and High Avail
- Page 54 and 55: 54Storage Foundation and High Avail
- Page 56 and 57: 56Storage Foundation and High Avail
- Page 58 and 59: 58Storage Foundation and High Avail
- Page 60 and 61: 60Storage Foundation and High Avail
- Page 62 and 63: 62Storage Foundation and High Avail
- Page 64 and 65: 64Storage Foundation and High Avail
- Page 66 and 67: 66Storage Foundation and High Avail
- Page 68 and 69: 68Storage Foundation and High Avail
- Page 70 and 71: 70Storage Foundation and High Avail
- Page 72 and 73: 72Storage Foundation and High Avail
- Page 74 and 75: 74Storage Foundation and High Avail
- Page 76 and 77: 76Storage Foundation and High Avail
- Page 78 and 79: 78Storage Foundation and High Avail
- Page 80 and 81: 80Storage Foundation and High Avail
- Page 82 and 83: 82Storage Foundation and High Avail
- Page 84 and 85: 84Storage Foundation and High Avail
- Page 86 and 87: 86Storage Foundation and High Avail
- Page 88 and 89: 88Storage Foundation and High Avail
<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