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.
Error | HP-UX Tips & Tricks Site

Error

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /homepages/37/d228974590/htdocs/includes/common.inc:2567) in drupal_send_headers() (line 1207 of /homepages/37/d228974590/htdocs/includes/bootstrap.inc).
  • PDOException: SQLSTATE[42000]: Syntax error or access violation: 1142 INSERT command denied to user 'dbo229817041'@'217.160.155.192' for table 'watchdog': INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9); Array ( [:db_insert_placeholder_0] => 0 [:db_insert_placeholder_1] => cron [:db_insert_placeholder_2] => Attempting to re-run cron while it is already running. [:db_insert_placeholder_3] => a:0:{} [:db_insert_placeholder_4] => 4 [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => http://www.hpuxtips.es/?q=content/vxvm-migrate-disk-striped-volume-using-mirror-example [:db_insert_placeholder_7] => [:db_insert_placeholder_8] => 54.90.207.75 [:db_insert_placeholder_9] => 1512951264 ) in dblog_watchdog() (line 157 of /homepages/37/d228974590/htdocs/modules/dblog/dblog.module).
The website encountered an unexpected error. Please try again later.