Video Screencast Help

vxvm mirror layout

Created: 11 Aug 2012 • Updated: 12 Aug 2012 | 7 comments
This issue has been solved. See solution.

HI ,

New to vcs and vxvm

How to find out a volume layout ? I have to extend a file system of a volume.When i tried to check the type of layout .It looks to be mirror but it shows concat log concat /log is mirror ?.Little confused here.And i need to increase the volume voldt01 Wht steps i need to follow ?

 

I could see we have 6 vmdisk in this dg.see 4 plxes for the volume i am not getting the logic howz this getting created ?

vxprint -htp
*************

Disk group: dgdata01

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

pl volarc01-01  volarc01     ENABLED  ACTIVE   335544320 CONCAT   -        RW
sd dgdata0101-01 volarc01-01 dgdata0101 0      125829120 0        eva4k6k0_3 ENA
sd dgdata0101-03 volarc01-01 dgdata0101 211812352 134017024 125829120 eva4k6k0_3 ENA
sd dgdata0102-01 volarc01-01 dgdata0102 0      75698176 259846144 eva4k6k0_4 ENA

pl volarc01-02  volarc01     ENABLED  ACTIVE   335544320 CONCAT   -        RW
sd dgdata0101_m-01 volarc01-02 dgdata0101_m 0  335544320 0        eva44000_3 ENA

pl volarc01-03  volarc01     ENABLED  ACTIVE   LOGONLY  CONCAT    -        RW
sd dgdata0101_log_1-01 volarc01-03 dgdata0101_log_1 0 4160 LOG    eva4k6k0_8 ENA
pl volarc01-04  volarc01     ENABLED  ACTIVE   LOGONLY  CONCAT    -        RW
sd dgdata0101_log_2-01 volarc01-04 dgdata0101_log_2 0 4160 LOG    eva44000_8 ENA

********************************************************************************************************************************************************

pl voldt01-01   voldt01      ENABLED  ACTIVE   188743680 CONCAT   -        RW
sd dgdata0101-02 voldt01-01  dgdata0101 125829120 85983232 0      eva4k6k0_3 ENA
sd dgdata0102-02 voldt01-01  dgdata0102 75698176 102760448 85983232 eva4k6k0_4 ENA

pl voldt01-02   voldt01      ENABLED  ACTIVE   LOGONLY  CONCAT    -        RW
sd dgdata0101_log_1-02 voldt01-02 dgdata0101_log_1 4160 3120 LOG  eva4k6k0_8 ENA
pl voldt01-03   voldt01      ENABLED  ACTIVE   LOGONLY  CONCAT    -        RW
sd dgdata0101_log_2-02 voldt01-03 dgdata0101_log_2 4160 3120 LOG  eva44000_8 ENA

pl voldt01-04   voldt01      ENABLED  ACTIVE   188743680 CONCAT   -        RW
sd dgdata0102_m-01 voldt01-04 dgdata0102_m 0   188743680 0        eva44000_4 ENA

 

 

vxprint -ht
*************

dg dgdata01     default      default  26000    1292947574.21.

dm dgdata0101   eva4k6k0_3   auto     65536    345829712 -
dm dgdata0101_log_1 eva4k6k0_8 auto   65536    2027264  -
dm dgdata0101_log_2 eva44000_8 auto   65536    2027264  -
dm dgdata0101_m eva44000_3   auto     65536    345829712 -
dm dgdata0102   eva4k6k0_4   auto     65536    419230704 -
dm dgdata0102_m eva44000_4   auto     65536    419230704 -

v  volarc01     -            ENABLED  ACTIVE   335544320 SELECT   -        fsgen
pl volarc01-01  volarc01     ENABLED  ACTIVE   335544320 CONCAT   -        RW
sd dgdata0101-01 volarc01-01 dgdata0101 0      125829120 0        eva4k6k0_3 ENA
sd dgdata0101-03 volarc01-01 dgdata0101 211812352 134017024 125829120 eva4k6k0_3 ENA
sd dgdata0102-01 volarc01-01 dgdata0102 0      75698176 259846144 eva4k6k0_4 ENA
pl volarc01-02  volarc01     ENABLED  ACTIVE   335544320 CONCAT   -        RW
sd dgdata0101_m-01 volarc01-02 dgdata0101_m 0  335544320 0        eva44000_3 ENA
pl volarc01-03  volarc01     ENABLED  ACTIVE   LOGONLY  CONCAT    -        RW
sd dgdata0101_log_1-01 volarc01-03 dgdata0101_log_1 0 4160 LOG    eva4k6k0_8 ENA
pl volarc01-04  volarc01     ENABLED  ACTIVE   LOGONLY  CONCAT    -        RW
sd dgdata0101_log_2-01 volarc01-04 dgdata0101_log_2 0 4160 LOG    eva44000_8 ENA

v  voldt01      -            ENABLED  ACTIVE   188743680 SELECT   -        fsgen
pl voldt01-01   voldt01      ENABLED  ACTIVE   188743680 CONCAT   -        RW
sd dgdata0101-02 voldt01-01  dgdata0101 125829120 85983232 0      eva4k6k0_3 ENA
sd dgdata0102-02 voldt01-01  dgdata0102 75698176 102760448 85983232 eva4k6k0_4 ENA
pl voldt01-02   voldt01      ENABLED  ACTIVE   LOGONLY  CONCAT    -        RW
sd dgdata0101_log_1-02 voldt01-02 dgdata0101_log_1 4160 3120 LOG  eva4k6k0_8 ENA
pl voldt01-03   voldt01      ENABLED  ACTIVE   LOGONLY  CONCAT    -        RW
sd dgdata0101_log_2-02 voldt01-03 dgdata0101_log_2 4160 3120 LOG  eva44000_8 ENA
pl voldt01-04   voldt01      ENABLED  ACTIVE   188743680 CONCAT   -        RW
sd dgdata0102_m-01 voldt01-04 dgdata0102_m 0   188743680 0        eva44000_4 ENA

 

vxprint -htp
*************

Disk group: dgdata01

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

pl volarc01-01  volarc01     ENABLED  ACTIVE   335544320 CONCAT   -        RW
sd dgdata0101-01 volarc01-01 dgdata0101 0      125829120 0        eva4k6k0_3 ENA
sd dgdata0101-03 volarc01-01 dgdata0101 211812352 134017024 125829120 eva4k6k0_3 ENA
sd dgdata0102-01 volarc01-01 dgdata0102 0      75698176 259846144 eva4k6k0_4 ENA

pl volarc01-02  volarc01     ENABLED  ACTIVE   335544320 CONCAT   -        RW
sd dgdata0101_m-01 volarc01-02 dgdata0101_m 0  335544320 0        eva44000_3 ENA

pl volarc01-03  volarc01     ENABLED  ACTIVE   LOGONLY  CONCAT    -        RW
sd dgdata0101_log_1-01 volarc01-03 dgdata0101_log_1 0 4160 LOG    eva4k6k0_8 ENA
 

pl volarc01-04  volarc01     ENABLED  ACTIVE   LOGONLY  CONCAT    -        RW
sd dgdata0101_log_2-01 volarc01-04 dgdata0101_log_2 0 4160 LOG    eva44000_8 ENA

********************************************************************************************************************************************************

pl voldt01-01   voldt01      ENABLED  ACTIVE   188743680 CONCAT   -        RW
sd dgdata0101-02 voldt01-01  dgdata0101 125829120 85983232 0      eva4k6k0_3 ENA
sd dgdata0102-02 voldt01-01  dgdata0102 75698176 102760448 85983232 eva4k6k0_4 ENA

pl voldt01-02   voldt01      ENABLED  ACTIVE   LOGONLY  CONCAT    -        RW
sd dgdata0101_log_1-02 voldt01-02 dgdata0101_log_1 4160 3120 LOG  eva4k6k0_8 ENA
 

pl voldt01-03   voldt01      ENABLED  ACTIVE   LOGONLY  CONCAT    -        RW
sd dgdata0101_log_2-02 voldt01-03 dgdata0101_log_2 4160 3120 LOG  eva44000_8 ENA

pl voldt01-04   voldt01      ENABLED  ACTIVE   188743680 CONCAT   -        RW
sd dgdata0102_m-01 voldt01-04 dgdata0102_m 0   188743680 0        eva44000_4 ENA

 

Discussion Filed Under:

Comments 7 CommentsJump to latest comment

mikebounds's picture

These volumes are mirrored with 2 DRLs (Dirty Region Logs) - let's look at an example:

v  volarc01     -            ENABLED  ACTIVE   335544320 SELECT   -        fsgen

First copy of mirror concatenated on disk dgdata0101 (2 portions of disks on here subdisks dgdata0101-01 and dgdata0101-03) - and disk dgdata0102

  pl volarc01-01  volarc01     ENABLED  ACTIVE   335544320 CONCAT   -        RW

    sd dgdata0101-01 volarc01-01 dgdata0101 0               125829120  0               eva4k6k0_3 ENA
    sd dgdata0101-03 volarc01-01 dgdata0101 211812352 134017024  125829120 eva4k6k0_3 ENA
    sd dgdata0102-01 volarc01-01 dgdata0102 0                75698176   259846144 eva4k6k0_4 ENA

2nd copy of mirror on disk dgdata0101_m

  pl volarc01-02  volarc01     ENABLED  ACTIVE   335544320 CONCAT   -        RW
    sd dgdata0101_m-01 volarc01-02 dgdata0101_m 0  335544320 0        eva44000_3 ENA

The next 2 plexes are DRLs as they say LOGONLY and notice the size is only 4160 blocks.

  pl volarc01-03  volarc01     ENABLED  ACTIVE   LOGONLY  CONCAT    -        RW
    sd dgdata0101_log_1-01 volarc01-03 dgdata0101_log_1 0 4160 LOG    eva4k6k0_8 ENA
  pl volarc01-04  volarc01     ENABLED  ACTIVE   LOGONLY  CONCAT    -        RW
    sd dgdata0101_log_2-01 volarc01-04 dgdata0101_log_2 0 4160 LOG    eva44000_8 ENA

 

Suppose you want to extend by 5G.  Then if you have 5G free on disks ending in _m and another 5G free on disks without _m (assuming consistent naming convention is used), then you can extend on to existing disks OR you need new disks (in each of the 2 arrays assuming disks ending _m are in a different array to those without _m on the end).

Its best to use vxresize comand to resize as this resizes both the volume and filesystem.

Mike

 

UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows

If this post has answered your question then please click on "Mark as solution" link below

shiv124's picture

HI Mike ,

 

Thanks for the reply.

so all i would be doing is get the 2 disks(each from diffrent storage array) assigned from storage .

2.add them to the diskgroup with respected vmnames

3.check the dg size

4. and do vxresize /.etc/vx/bin/vxresize -g <dg> <volume> +5g

 

This is correct ?

 

Regards,

siva

 

 

 

 

 

shiv124's picture

HI Mike ,

 

One more question how did you figured out that this is a mirror volume ? seeing the dirty region logs ?

 

 

mikebounds's picture

Yes this is right.  Volume is mirrored as it has more than one data (non-log) plex - so if it only had one data plex, then irrespective if it had DRL plexes, it would be non-mirrored.

Mike

UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows

If this post has answered your question then please click on "Mark as solution" link below

shiv124's picture

HI Mike ,

In my scenario

vxdg -g dgdata01 free
DISK         DEVICE       TAG          OFFSET    LENGTH    FLAGS
dgdata0101   eva4k6k0_3   eva4k6k0_3   345829376 336       -
dgdata0101_log_1 eva4k6k0_8   eva4k6k0_8   7280      2019984   -
dgdata0101_log_2 eva44000_8   eva44000_8   7280      2019984   -
dgdata0101_m eva44000_3   eva44000_3   335544320 10285392  -
 

So i the above command the length would be my free space rt ?

Whaz offset ?-
 

[vxassist -g dgdata01 maxsize
Maximum volume size: 485582848 (237101Mb)-------------> I guess it showing free  irespective of layout .So if i need how much free for specefic layout
 

vxassist -g <dg> maxsize layout=mirror ?

dgdata0102 eva4k6k0_4 eva4k6k0_4 178458624 240772080 -    I see these disks having the space
dgdata0102_m eva44000_4 eva44000_4 188743680 230487024 i see these disks having the space

So all i need to is increase 10gb each  for 2 volumes so i see no problem and go ahead and execute

the vxresize .?

 

Regards,

siva

mikebounds's picture

Yes length is free space and offset is where on disk this free space is.  Correct assumptions on vxassist maxsize and you can also use vxassist maxgrow on the volume you want to resize.  If you specifically want particular disks to be used then you can specify these so:

vxresize -g dgdata01 <volume> +5g dgdata0102 dgdata0102_m

Mike

UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows

If this post has answered your question then please click on "Mark as solution" link below

SOLUTION
shiv124's picture

Hi Mike ,

 

Everything worked well.Thanks for all the patience and knowledge share.

 

rEGARDS,

sIVA