SVC v7000 vdisk Operations: Difference between revisions
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
#:: <tt>'''ex: svcinfo lsvdisk -filtervalue vdisk_UID=6005076801CF003F2800000000000000'''</tt> | #:: <tt>'''ex: svcinfo lsvdisk -filtervalue vdisk_UID=6005076801CF003F2800000000000000'''</tt> | ||
# List a vdisk by name | # List a vdisk by name | ||
#: <tt>'''svcinfo lsvdisk < | #: <tt>'''svcinfo lsvdisk <vdisk_name>'''</tt> | ||
#:: <tt>'''ex: svcinfo lsvdisk VDISKNAME_DB_01'''</tt> | #:: <tt>'''ex: svcinfo lsvdisk VDISKNAME_DB_01'''</tt> | ||
# List host that vdisk is mapped to | # List host that vdisk is mapped to |
Revision as of 19:25, 1 March 2017
vdisk Listing Operations
- List all vdisks
- svcinfo lsvdisk
- List a vdisk by UID
- svcinfo lsvdisk -filtervalue vdisk_UID=<vdisk UID>
- ex: svcinfo lsvdisk -filtervalue vdisk_UID=6005076801CF003F2800000000000000
- svcinfo lsvdisk -filtervalue vdisk_UID=<vdisk UID>
- List a vdisk by name
- svcinfo lsvdisk <vdisk_name>
- ex: svcinfo lsvdisk VDISKNAME_DB_01
- svcinfo lsvdisk <vdisk_name>
- List host that vdisk is mapped to
- svcinfo lsvdiskhostmap <vdisk_name>
- ex: svcinfo lsvdiskhostmap VDISKNAME_DB_01
- svcinfo lsvdiskhostmap <vdisk_name>
vdisk Creation
Standard Volume
- Create a standard volume
- svctask mkvdisk -mdiskgrp <lsmdiskgrp> -iogrp <lsiogrp> -size <size> -unit [b | kb | mb | gb | tb | pb] -name <vdisk_name>
- ex: svctask mkvdisk -mdiskgrp MDISK_GROUP_01 -iogrp io_grp0 -size 10 -unit gb -name VDISKNAME_DB_01
- svctask mkvdisk -mdiskgrp <lsmdiskgrp> -iogrp <lsiogrp> -size <size> -unit [b | kb | mb | gb | tb | pb] -name <vdisk_name>
Compressed Volumes
- Create a compressed volume
- svctask mkvdisk -mdiskgrp <lsmdiskgrp> -iogrp <lsiogrp> -size <size> -unit [b | kb | mb | gb | tb | pb] -compressed -name <vdisk_name> -rsize 5% -autoexpand
- ex: svctask mkvdisk -mdiskgrp MDISK_GROUP_01 -iogrp io_grp0 -size 10 -unit gb -compressed -name VDISKNAME_DB_01 -rsize 5% -autoexpand
- svctask mkvdisk -mdiskgrp <lsmdiskgrp> -iogrp <lsiogrp> -size <size> -unit [b | kb | mb | gb | tb | pb] -compressed -name <vdisk_name> -rsize 5% -autoexpand
Thin-provisioned Volumes
vdisk Expansion Operations
- Expand vdisk by name
- svctask expandvdisksize -size <size> -unit [b | kb | mb | gb | tb | pb] <vdisk_name>
- ex: svctask expandvdisksize -size 10 -unit gb VDISKNAME_DB_01
- svctask expandvdisksize -size <size> -unit [b | kb | mb | gb | tb | pb] <vdisk_name>
vdisk Mapping Operations
- Map a vdisk to a host
- svctask mkvdiskhostmap -force -host <host_name> <vdisk_name>
- ex: svctask mkvdiskhostmap -force -host HOSTNAME VDISKNAME_DB_01
- svctask mkvdiskhostmap -force -host <host_name> <vdisk_name>