You are here

VXVM. Migrate Disk in a Striped Volume using a Mirror example

add 2 more disks:

vxdiskadd

vxdg -g datadg adddisk

y una vez tenemos los discos en el dg, realizamos el mirror del volument que esta en stripe

timpano:/:> vxassist -g datadg mirror datvol01 datadg03 datadg04 &
3672
timpano:/:>
timpano:/:>
timpano:/:> vxtask list
TASKID PTID TYPE/STATE PCT PROGRESS
178 ATCOPY/R 01.88% 0/6291456/118544 PLXATT datvol01 0.0
timpano:/:> vxprint -ht
Disk group: rootdg

DG NAME NCONFIG NLOG MINORS GROUP-ID
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
V NAME USETYPE KSTATE STATE LENGTH READPOL PREFPLEX
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

dg rootdg default default 0 1150893414.1025.timpano

dm disk01 c3t0d0s2 sliced 3590 17678493 -

Disk group: datadg

DG NAME NCONFIG NLOG MINORS GROUP-ID
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
V NAME USETYPE KSTATE STATE LENGTH READPOL PREFPLEX
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

dg datadg default default 33000 1289575460.4770.timpano

dm datadg01 c3t6d0s2 sliced 3590 17678493 -
dm datadg02 c3t24d0s2 sliced 3590 17678493 -
dm datadg03 c3t20d0s2 sliced 4711 35363560 -
dm datadg04 c3t21d0s2 sliced 3590 17678493 -

v datvol01 fsgen ENABLED ACTIVE 6291456 SELECT datvol01-01
pl datvol01-01 datvol01 ENABLED ACTIVE 6298619 STRIPE 2/128 RW
sd datadg01-01 datvol01-01 datadg01 0 3149307 0/0 c3t6d0 ENA
sd datadg02-01 datvol01-01 datadg02 0 3149307 1/0 c3t24d0 ENA
pl datvol01-02 datvol01 ENABLED TEMPRMSD 6298619 STRIPE 2/128 WO
sd datadg03-01 datvol01-02 datadg03 0 3147616 0/0 c3t20d0 ENA
sd datadg04-01 datvol01-02 datadg04 0 3149307 1/0 c3t21d0 ENA
timpano:/:>
timpano:/:>
timpano:/:>
timpano:/:> vxprint -ht
Disk group: rootdg

DG NAME NCONFIG NLOG MINORS GROUP-ID
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
V NAME USETYPE KSTATE STATE LENGTH READPOL PREFPLEX
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

dg rootdg default default 0 1150893414.1025.timpano

dm disk01 c3t0d0s2 sliced 3590 17678493 -

Disk group: datadg

DG NAME NCONFIG NLOG MINORS GROUP-ID
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
V NAME USETYPE KSTATE STATE LENGTH READPOL PREFPLEX
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

dg datadg default default 33000 1289575460.4770.timpano

dm datadg01 c3t6d0s2 sliced 3590 17678493 -
dm datadg02 c3t24d0s2 sliced 3590 17678493 -
dm datadg03 c3t20d0s2 sliced 4711 35363560 -
dm datadg04 c3t21d0s2 sliced 3590 17678493 -

v datvol01 fsgen ENABLED ACTIVE 6291456 SELECT -
pl datvol01-01 datvol01 ENABLED ACTIVE 6298619 STRIPE 2/128 RW
sd datadg01-01 datvol01-01 datadg01 0 3149307 0/0 c3t6d0 ENA
sd datadg02-01 datvol01-01 datadg02 0 3149307 1/0 c3t24d0 ENA
pl datvol01-02 datvol01 ENABLED ACTIVE 6298619 STRIPE 2/128 RW
sd datadg03-01 datvol01-02 datadg03 0 3147616 0/0 c3t20d0 ENA
sd datadg04-01 datvol01-02 datadg04 0 3149307 1/0 c3t21d0 EN

una vez que tenemos el stripe en mirror , vamos a sacar el primer plex del mirror, para poder sacar los discos del dg

timpano:/:> vxplex -g datadg -o rm dis datvol01-01
timpano:/:> vxprint -ht
Disk group: rootdg

DG NAME NCONFIG NLOG MINORS GROUP-ID
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
V NAME USETYPE KSTATE STATE LENGTH READPOL PREFPLEX
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

dg rootdg default default 0 1150893414.1025.timpano

dm disk01 c3t0d0s2 sliced 3590 17678493 -

Disk group: datadg

DG NAME NCONFIG NLOG MINORS GROUP-ID
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
V NAME USETYPE KSTATE STATE LENGTH READPOL PREFPLEX
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

dg datadg default default 33000 1289575460.4770.timpano

dm datadg01 c3t6d0s2 sliced 3590 17678493 -
dm datadg02 c3t24d0s2 sliced 3590 17678493 -
dm datadg03 c3t20d0s2 sliced 4711 35363560 -
dm datadg04 c3t21d0s2 sliced 3590 17678493 -

v datvol01 fsgen ENABLED ACTIVE 6291456 SELECT datvol01-02
pl datvol01-02 datvol01 ENABLED ACTIVE 6298619 STRIPE 2/128 RW
sd datadg03-01 datvol01-02 datadg03 0 3147616 0/0 c3t20d0 ENA
sd datadg04-01 datvol01-02 datadg04 0 3149307 1/0 c3t21d0 ENA

Ya solo nos quedan los discos 3 y 4 , ahora borramos los discos del dg y del control de vxvm, para que los puedan quitar del servidor:

timpano:/:> vxdg -g datadg rmdisk datadg02 datadg01
timpano:/:> vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t10d0s2 sliced - - error
c1t11d0s2 sliced - - online
c3t0d0s2 sliced disk01 rootdg online
c3t6d0s2 sliced - - online
c3t10d0s2 sliced - - online
c3t20d0s2 sliced datadg03 datadg online
c3t21d0s2 sliced datadg04 datadg online
c3t24d0s2 sliced - - online
timpano:/:> vxdisk rm c3t6d0s2 c3t24d0s2
timpano:/:> vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t10d0s2 sliced - - error
c1t11d0s2 sliced - - online
c3t0d0s2 sliced disk01 rootdg online
c3t10d0s2 sliced - - online
c3t20d0s2 sliced datadg03 datadg online
c3t21d0s2 sliced datadg04 datadg online

Unix Systems: 

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.

Fatal error: Class CToolsCssCache contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (DrupalCacheInterface::__construct) in /homepages/37/d228974590/htdocs/sites/all/modules/ctools/includes/css-cache.inc on line 52