SVC v7000 vdisk Operations

From UNIX Systems Administration
Jump to: navigation, search

vdisk Listing Operations

  1. List all vdisks
    svcinfo lsvdisk
  2. List a vdisk by UID
    svcinfo lsvdisk -filtervalue vdisk_UID=<vdisk UID>
    ex: svcinfo lsvdisk -filtervalue vdisk_UID=6005076801CF003F2800000000000000
  3. List a vdisk by name
    svcinfo lsvdisk <vdisk_name>
    ex: svcinfo lsvdisk VDISKNAME_DB_01
  4. List host that vdisk is mapped to
    svcinfo lsvdiskhostmap <vdisk_name>
    ex: svcinfo lsvdiskhostmap VDISKNAME_DB_01

vdisk Creation

Standard Volume

  1. 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

Compressed Volumes

  1. Create a compressed volume
    svctask mkvdisk -mdiskgrp <lsmdiskgrp> -iogrp <lsiogrp> -size <size> -unit [b | kb | mb | gb | tb | pb] -name <vdisk_name> -compressed -rsize 5% -autoexpand
    ex: svctask mkvdisk -mdiskgrp MDISK_GROUP_01 -iogrp io_grp0 -size 10 -unit gb -name VDISKNAME_DB_01 -compressed -rsize 5% -autoexpand

Thin-provisioned Volumes

  1. Create a thin-provisioned volume
    svctask mkvdisk -mdiskgrp <lsmdiskgrp> -iogrp <lsiogrp> -size <size> -unit [b | kb | mb | gb | tb | pb] -name <vdisk_name> -rsize 5% -autoexpand -grainsize 32
    ex: svctask mkvdisk -mdiskgrp MDISK_GROUP_01 -iogrp io_grp0 -size 10 -unit gb -name VDISKNAME_DB_01 -rsize 5% -autoexpand -grainsize 32

vdisk Expansion Operations

Standard Volume

  1. Expand a standard volume
    svctask expandvdisksize -size <size> -unit [b | kb | mb | gb | tb | pb] <vdisk_name>
    ex: svctask expandvdisksize -size 10 -unit gb VDISKNAME_DB_01

vdisk Mapping Operations

  1. Map a vdisk to a host
    svctask mkvdiskhostmap -force -host <host_name> <vdisk_name>
    ex: svctask mkvdiskhostmap -force -host HOSTNAME VDISKNAME_DB_01

Further Reading

  1. IBM Knowledge Center - SAN Volume Controller (2145 and 2147)
  2. IBM Knowledge Center - IBM Storwize v7000