You are here

VXVM. Create Mirror or Stripe Volumes Examples

dustbin:/:> vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t10d0s2 sliced - - error
c1t11d0s2 sliced - - error
c3t0d0s2 sliced disk01 rootdg online
c3t6d0s2 sliced - - error
c3t24d0s2 sliced - - error

Añadimos 2 discos para poder realizar el stripe:

dustbin:/:> vxdiskadd c3t6d0

Add or initialize disks
Menu: VolumeManager/Disk/AddDisks

Here is the disk selected. Output format: [Device_Name]

c3t6d0

Continue operation? [y,n,q,?] (default: y) y

You can choose to add this disk to an existing disk group, a
new disk group, or leave the disk available for use by future
add or replacement operations. To create a new disk group,
select a disk group name that does not yet exist. To leave
the disk available for future use, specify a disk group name
of "none".

Which disk group [,none,list,q,?] (default: rootdg) none

The disk will be initialized and left free for use as a replacement
disk.

c3t6d0

Continue with operation? [y,n,q,?] (default: y) y

The following disk device has a valid VTOC, but does not appear to have
been initialized for the Volume Manager. If there is data on the disk
that should NOT be destroyed you should encapsulate the existing disk
partitions as volumes instead of adding the disk as a new disk.
Output format: [Device_Name]

c3t6d0

Encapsulate this device? [y,n,q,?] (default: y) n

c3t6d0

Instead of encapsulating, initialize? [y,n,q,?] (default: n) y

Initializing device c3t6d0.

Goodbye.
dustbin:/:>
dustbin:/:> vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t10d0s2 sliced - - error
c1t11d0s2 sliced - - error
c3t0d0s2 sliced disk01 rootdg online
c3t6d0s2 sliced - - online
c3t24d0s2 sliced - - error
dustbin:/:> vxdiskadd c3t24d0

Add or initialize disks
Menu: VolumeManager/Disk/AddDisks

Here is the disk selected. Output format: [Device_Name]

c3t24d0

Continue operation? [y,n,q,?] (default: y) y

You can choose to add this disk to an existing disk group, a
new disk group, or leave the disk available for use by future
add or replacement operations. To create a new disk group,
select a disk group name that does not yet exist. To leave
the disk available for future use, specify a disk group name
of "none".

Which disk group [,none,list,q,?] (default: rootdg) none

The disk will be initialized and left free for use as a replacement
disk.

c3t24d0

Continue with operation? [y,n,q,?] (default: y)

Initializing device c3t24d0.

Goodbye.
dustbin:/:> vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t10d0s2 sliced - - error
c1t11d0s2 sliced - - error
c3t0d0s2 sliced disk01 rootdg online
c3t6d0s2 sliced - - online
c3t24d0s2 sliced - - online
dustbin:/:>

Creamos el DG con 2 discos
dustbin:/:> vxdg init datadg datadg01=c3t6d0s2 datadg02=c3t24d0s2
dustbin:/:>
dustbin:/:> vxdg list
NAME STATE ID
rootdg enabled 1150893414.1025.dustbin
datadg enabled 1289575460.4770.dustbin
dustbin:/:> vxprint -ht -g 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.dustbin

dm datadg01 c3t6d0s2 sliced 3590 17678493 -
dm datadg02 c3t24d0s2 sliced 3590 17678493 -

Creamos el vol con el layout the stripe con los 2 discos de 1 giga
dustbin:/:> vxassist make datvol01 1g layout=stripe datadg01 datadg02
dustbin:/:> 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.dustbin

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

dm datadg01 c3t6d0s2 sliced 3590 17678493 -
dm datadg02 c3t24d0s2 sliced 3590 17678493 -

v datvol01 fsgen ENABLED ACTIVE 2097152 SELECT datvol01-01
pl datvol01-01 datvol01 ENABLED ACTIVE 2104451 STRIPE 2/128 RW
sd datadg01-01 datvol01-01 datadg01 0 1052163 0/0 c3t6d0 ENA
sd datadg02-01 datvol01-01 datadg02 0 1052163 1/0 c3t24d0 ENA
dustbin:/:> echo "1052163 * 512 /1024 /1024 " | bc
513

Creamos un nuevo volumen con 2 subdisks en mirror:

dustbin:/:> vxassist -g datadg make datvol02 500M layout=mirror
dustbin:/:> 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.dustbin

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

dm datadg01 c3t6d0s2 sliced 3590 17678493 -
dm datadg02 c3t24d0s2 sliced 3590 17678493 -

v datvol01 fsgen ENABLED ACTIVE 2097152 SELECT datvol01-01
pl datvol01-01 datvol01 ENABLED ACTIVE 2104451 STRIPE 2/128 RW
sd datadg01-01 datvol01-01 datadg01 0 1052163 0/0 c3t6d0 ENA
sd datadg02-01 datvol01-01 datadg02 0 1052163 1/0 c3t24d0 ENA

v datvol02 fsgen ENABLED ACTIVE 1024000 SELECT -
pl datvol02-01 datvol02 ENABLED ACTIVE 1027026 CONCAT - RW
sd datadg01-02 datvol02-01 datadg01 1052163 1027026 0 c3t6d0 ENA
pl datvol02-02 datvol02 ENABLED ACTIVE 1027026 CONCAT - RW
sd datadg02-02 datvol02-02 datadg02 1052163 1027026 0 c3t24d0 ENA

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