svsdatastore - Datastore configuration command for VirtualStore.
svsdatastore add [ -i virtual_ip -e device -n netmask] [ -m mount_point] [ -s size] disk1 disk2 disk3 ...svsdatastore resize -m mount_point -s newsize
svsdatastore delete -m mount_point
svsdatastore addvip -i virtual_ip -e device -n netmask
svsdatastore deletevip -i virtual_ip
svsdatastore display
VRTSsvs
The svsdatastore command does the following:
o It takes multiple disks and creates a NFS datastore that can be added to ESX.
o It takes a mount point and resizes (grow and shrink) the NFS datastore associated with it.
o It takes a mount point and deletes the NFS datastore associated with it.
o It takes an IP address, netmask, device and set it up as a Virtual IP (VIP).
o It displays the complete CNFS configuration (mount points and Virtual IP addresses).The Cluster manager software must be up and the cfscluster config command should have been run before you run the cfsshare command. Only a privileged user can run this command.
The disks ( disk1 disk2 disk3 ...) that can be consumed by the svsdatastore command on which to create the datastore.
add The add option takes the disks provided and creates a new datastore using all the available space if no size is specified. If the size is specified the datastore creates that size. If a mount point is specified the datastore mounts there, otherwise it auto generates a mount point. It also adds the VIP address to the configuration, if provided. resize The resize option will resize the datastore associated with the mount point specified to the size specified. delete The delete option deletes the datastore associated with the mount point specified. display The display option lists all the datastores and VIP addresses configured. addvip The addvip option adds a VIP address specified. deletevip The deletevip deletes the VIP address specified.
-i The -i option is used to specify the VIP. -e The -e option is used to specify the device to use for the VIP. -n The -n option is used to specify the netmask to use for the VIP. -m The -m option is used to specify the mount point for the datastore. -s The -s option is used to specify the size for the datastore during create and the new size of the datastore during resize. disk1 disk2 disk3 ... The disks that can be consumed by the svsdatastore command on which to create the datastore.
svsdatastore returns an exit value of 0 if the command completes successfully, and a value greater than 0 if the command fails.
To add a new datastore with the disk disk_0 and disk_1, enter:# svsdatastore add disk_0 disk_1
To add a new datastore with disk disk_0 and disk_1 of size 10 G, enter:
# svsdatastore add -s 10g disk_0 disk_1
To add a new datastore with disk disk_0 and disk_1 of size 10 G on the mount point, enter:
# svsdatastore add -s 10g -m /mount_point disk_0 disk_1
To delete the datastore associated with the mount point, enter:
# svsdatastore delete -m /mount_point
To resize the datastore associated with the mount point to size of 15 G, enter:
# svsdatastore resize -m /mount_point -s 15g
To add a Virtual IP "10.192.111.222" with the netmask "255.255.240.0" on network interface "eth0", enter:
# svsdatastore addvip -i 10.192.111.222 -n 255.255.240.0 -e eth0
To remove Virtual IP "10.192.111.222" from the configuration, enter:
# svsdatastore deletevip -i 10.192.111.222
To display the datastore configuration, enter:
# svsdatastore display
cfsshare (1M), cfscluster (1M), cfsdgadm (1M), cfsmntadm (1M), cfsmount (1M)
VirtualStore 6.0.1 | svsdatastore (1M) |