Search This Blog

Sunday, April 6, 2014

Creating a Volume

Creating a Volume

Before creating a volume, initialize disks and assign them to disk groups.
·         Striped: Minimum two disks
·         Mirrored: Minimum one disk for each plex
·         RAID-5: Minimum three disks plus one disk to contain the log

# vxmake –g <diskgroup> vol  <volname> plex=<plexname>

Instead of creating sub-disks, plexes, volumes step-by-step we can create volume at a time by vxassist command.

# vxassist –g <diskgroup> make volname size layout

Syntax:
#vxassist –g <dg_name> make <vol_name> <size> <disk_media_name>

rd17ux4dev# vxassist -g testdg make testvol 200M disk01

rd17ux4dev# vxprint -th testvol
Disk group: testdg

V  NAME         RVG/VSET/CO  KSTATE   STATE    LENGTH   READPOL   PREFPLEX UTYPE
PL NAME         VOLUME       KSTATE   STATE    LENGTH   LAYOUT    NCOL/WID MODE
SD NAME         PLEX         DISK     DISKOFFS LENGTH   [COL/]OFF DEVICE   MODE
SV NAME         PLEX         VOLNAME  NVOLLAYR LENGTH   [COL/]OFF AM/NM    MODE
SC NAME         PLEX         CACHE    DISKOFFS LENGTH   [COL/]OFF DEVICE   MODE
DC NAME         PARENTVOL    LOGVOL
SP NAME         SNAPVOL      DCO
EX NAME         ASSOC        VC                       PERMS    MODE     STATE
SR NAME         KSTATE

v  testvol      -            ENABLED  ACTIVE   409600   SELECT    -        fsgen
pl testvol-01   testvol      ENABLED  ACTIVE   409600   CONCAT    -        RW
sd disk01-01    testvol-01   disk01   0        409600   0         TagmaStore-USP0_1 ENA

Block and character (raw) device files are set up that you can use to access the volume:
  • Block device file for the volume:
/dev/vx/dsk/diskgroup/volume_name

  • Character device file for the volume:
/dev/vx/rdsk/diskgroup/volume_name

To display volume attributes, use:



# vxassist –g diskgroup help showattrs

No comments:

Post a Comment