6.0

Table Of Contents
Getting Started with vSphere Command-Line Interfaces
30 VMware, Inc.
Youcanmountadatastorewithvicfg-volume(see“Tomountadatastorewithvicfgvolumeonpage 30)or
withESXCLI(see“TomountadatastorewithESXCLI”onpage 30).
Mounting and Unmounting with ESXCLI
Theesxcli storage filesystemcommandssupportmountingandunmountingvolumes.Youcanalso
specifywhethertopersistthemountedvolumesacrossrebootsbyusingthe--no-persistoption.
Usetheesxcli storage filesystemcommandtolistmountedvolumes,mountnewvolumes,and
unmountavolume.Specifyoneoftheconnectionoptionslistedin“ConnectionOptionsfor
vCLIHost
ManagementCommandsonpage 18inplaceof<conn_options>.
To mount a datastore with ESXCLI
1Listallvolumesthathavebeendetectedassnapshots.
esxcli <conn_options> storage filesystem list
2Runesxcli storage filesystem mountwiththevolumelabelorvolumeUUID.
Bydefault,thevolumeismountedpersistently;use--no-persisttomountnonpersistently.
esxcli <conn_options> storage filesystem volume mount
--volume-label=<label>|--volume-uuid=<VMFS-UUID>
Thiscommandfailsiftheoriginalcopyisonline.
Youcanlaterrunesxcli storage filesystem volume unmounttounmountthesnapshotvolume.
esxcli <conn_options> storage filesystem volume unmount
--volume-label=<label>|--volume-uuid=<VMFS-UUID>
Mounting and Unmounting with vicfg-volume
Usethevicfg-volumecommandtolistmountedvolumes,mountnewvolumes,andunmountavolume.
Specifyoneoftheconnectionoptionslistedin“ConnectionOptionsforvCLIHostManagementCommands”
onpage 18inplaceof<conn_options>.
To mount a datastore with vicfg-volume
1Listallvolumesthathavebeendetectedassnapshotsorreplicas.
vicfg-volume <conn_options> --list
2Runvicfg-volume --persistent-mount withtheVMFSUUIDorlabelasanargumenttomounta
volume.
vicfg-volume <conn_options> --persistent-mount <VMFS-UUID|label>
Thiscommandfailsiftheoriginalcopyisonline.
Youcanlaterrunvicfg-volume --unmounttounmountthesnapshotorreplicavolume.
vicfg-volume <conn_options> --unmount <VMFS-UUID|label>
Thevicfg-volumecommandsupportsresignaturingasnapshotvolumeandmountingandunmountingthe
volume.Youcanalsomakethemountedvolumepersistentacrossrebootsandqueryalistofsnapshot
volumesandoriginalvolumes.
Resignaturing VMFS Copies
UsedatastoreresignaturingtoretainthedatastoredontheVMFSdatastorecopy.WhenresignaturingaVMFS
copy,theESXihostassignsanewUUIDandanewlabeltothecopy,andmountsthecopyasadatastore
distinctfromtheoriginal.BecauseESXipreventsyoufromresignaturingthemounted
datastore,unmountthe
datastorebeforeresignaturing.
Thedefaultformatofthenewlabelassignedtothedatastoreissnap-<snapID>-<oldLabel>,where
<snapID>isanintegerand<oldLabel>isthelabeloftheoriginaldatastore.