Bienvenidos

Todos estos pasos descriptos fueron probados en ambientes productivos

lunes, 12 de julio de 2010

Primero agrego el disco con vxdiskadm con las siguientes opciones:
-------------------------------------------------------------------

Here are the disks selected. Output format: [Device_Name]

c3t0d0 c3t0d1 c3t0d2 c3t0d3

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

Which disk group [,none,list,q,?] (default: rootdg) z_shark
Use default disk names for these disks? [y,n,q,?] (default: y) y
Add disks as spare disks for z_shark? [y,n,q,?] (default: n) n
The selected disks will be added to the disk group z_shark with
default disk names.

c3t0d0 c3t0d1 c3t0d2 c3t0d3

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

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

c3t0d0 c3t0d1 c3t0d2 c3t0d3

Encapsulate these devices? [Y,N,S(elect),q,?] (default: Y)N

c3t0d0 c3t0d1 c3t0d2 c3t0d3

Instead of encapsulating, initialize?
[Y,N,S(elect),q,?] (default: N) Y
Initializing device c3t0d0.
Initializing device c3t0d1.
Initializing device c3t0d2.
Initializing device c3t0d3.

Adding disk device c3t0d0 to disk group z_shark with disk
name z_shark50.
Adding disk device c3t0d1 to disk group z_shark with disk
name z_shark51.
Adding disk device c3t0d2 to disk group z_shark with disk
name z_shark52.
Adding disk device c3t0d3 to disk group z_shark with disk
name z_shark53.

Luego crear el VOLUMEN con los discos que asigne.
Por ejemplo voy a crear un volumen vol06 de 55 gb con 4 discos stripeados :

NOTA: PUEDO STRIPEAR UN VOLUMEN CON UN MAXIMO DE HASTA 7 DISCOS.

vxassist -g z_shark make vol06 55g layout=stripe z_shark50 z_shark51 z_shark52 z_shark53

CREO FS VXFS CON MKFS

mkfs -F vxfs -o bsize=8192,largefiles /dev/vx/rdsk/z_shark/vol08
version 4 layout
115343360 sectors, 7208960 blocks of size 8192, log size 128 blocks
unlimited inodes, largefiles supported
7208960 data blocks, 7208528 free data blocks
220 allocation units of 32768 blocks, 32768 data blocks

SI QUIERO CREAR UN FS CON UN MAXIMO DE 30000 INODES HACER :

mkfs -F vxfs -o ninode=30000 -o bsize=8192,largefiles /dev/vx/rdsk/z_shark/vol43
version 4 layout
106954752 sectors, 6684672 blocks of size 8192, log size 128 blocks
30000 inodes, largefiles supported
6684672 data blocks, 6684264 free data blocks
204 allocation units of 32768 blocks, 32768 data blocks

SI QUIERO CREAR UN FS UFS CON VERITAS :

# vxassist -g cone maxsize cone08 cone09 cone10
Maximum volume size: 44619776 (21787Mb)
# vxassist -g cone make vol08 21785m cone08 cone09 cone10
# newfs /dev/vx/rdsk/cone/vol08
newfs: construct a new file system /dev/vx/rdsk/cone/vol08: (y/n)? y

AGRANDO EL FS

/etc/vx/bin/vxresize -b -F vxfs -g z_shark volumen disco1 disco2 disco3

/etc/vx/bin/vxresize -b -F ufs -g cone vol06 +4100m cone08

PARA AGREGAR UN DISCO ( z_shark36 ) AL VOLUMEN vol08 ( OJO SOLO PUEDO AGREGAR UN DISCO SI EL VOLUMEN NO ESTA STRIPEADO )
vxassist -g z_shark maxgrow vol08 z_shark36
/etc/vx/bin/vxresize -b -F vxfs -g z_shark vol08 +8000m z_shark54 z_shark55 z_shark56 z_shark57 z_shark59 z_shark60 z_shark61 z_shark36

PARA BORRAR un VOLUMEN
vxassist -g z_shark remove volume vol04

No hay comentarios:

Publicar un comentario