Bienvenidos

Todos estos pasos descriptos fueron probados en ambientes productivos

lunes, 12 de julio de 2010

Solaris Volume Manager

Crear un Filesystem CONCATENADO

Creo el d50 compuesto por 2 hd y 1 stripe, especificando los discos a usar
# metainit d50 2 1 c2t50060E800456EE10d0s0 1 c2t50060E800456EE10d1s0
d50: Concat/Stripe is setup
#
Ahora creo La soft Partition d51 sobre el d50 que cree recien, con un tamanio de 10gb
# metainit d51 -p d50 10g
d51: Soft Partition is setup
#
Por Ultimo creo el filesystem
# newfs /dev/md/rdsk/d51
newfs: construct a new file system /dev/md/rdsk/d51: (y/n)? y
Warning: 4096 sector(s) in last cylinder unallocated
/dev/md/rdsk/d51: 20971520 sectors in 3414 cylinders of 48 tracks, 128 sectors
10240.0MB in 214 cyl groups (16 c/g, 48.00MB/g, 5824 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 98464, 196896, 295328, 393760, 492192, 590624, 689056, 787488, 885920,
20055584, 20154016, 20252448, 20350880, 20449312, 20547744, 20646176,
20744608, 20843040, 20941472
#
######################################################
Para crear un fs STRIPEADO de 7 discos realizar los sig pasos :

Creo el d60 y le indico que sera 1 stripe de 7 discos con un interleace de 48k

metainit d60 1 7 c2t50060E800456EE10d2s0 c2t50060E800456EE10d3s0 c2t50060E800456EE10d4s0 c2t5060E80456EE10d5s0 c2t5060E80456EE10d6s0 c2t5060E80456EE10d7s0 c2t5060E80456EE10d8s0 -i 48kb

d60: Concat/Stripe is setup

#
# newfs /dev/md/rdsk/d60
newfs: construct a new file system /dev/md/rdsk/d60: (y/n)? y
Warning: 1536 sector(s) in last cylinder unallocated
/dev/md/rdsk/d60: 123271680 sectors in 20064 cylinders of 48 tracks, 128 sectors
60191.2MB in 1254 cyl groups (16 c/g, 48.00MB/g, 5824 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 98464, 196896, 295328, 393760, 492192, 590624, 689056, 787488, 885920,
Initializing cylinder groups:
........................
super-block backups for last 10 cylinder groups at:
122293792, 122392224, 122490656, 122589088, 122687520, 122785952, 122884384,
122982816, 123081248, 123179680
#

##################################################
Crear un fs CONCATENADO y Agregarle luego un disco y agrandarle el fs ONLINE

# metainit d70 2 1 c2t50060E800456EE10d9s0 1 c2t50060E800456EE10d10s0
d70: Concat/Stripe is setup
#

# metattach d70 /dev/dsk/c2t50060E800456EE10d11s0
d70: component is attached
#
# metastat d70
d70: Concat/Stripe
Size: 52838400 blocks (25 GB)
Stripe 0:
Device Start Block Dbase Reloc
/dev/dsk/c2t50060E800456EE10d9s0 0 No Yes
Stripe 1:
Device Start Block Dbase Reloc
/dev/dsk/c2t50060E800456EE10d10s0 7680 No Yes
Stripe 2:
Device Start Block Dbase Reloc
/dev/dsk/c2t50060E800456EE10d11s0 7680 No Yes

Device Relocation Information:
Device Reloc Device ID
/dev/dsk/c2t50060E800456EE10d9 Yes id1,ssd@n60060e800456ee00000056ee000000eb
/dev/dsk/c2t50060E800456EE10d10 Yes id1,ssd@n60060e800456ee00000056ee000000ec
/dev/dsk/c2t50060E800456EE10d11 Yes id1,ssd@n60060e800456ee00000056ee000000ed

# growfs -M /interfaz /dev/md/rdsk/d70
/dev/md/rdsk/d70: 52838400 sectors in 8600 cylinders of 48 tracks, 128 sectors
25800.0MB in 538 cyl groups (16 c/g, 48.00MB/g, 5824 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 98464, 196896, 295328, 393760, 492192, 590624, 689056, 787488, 885920,
Initializing cylinder groups:
..........
super-block backups for last 10 cylinder groups at:
51906592, 52005024, 52103456, 52201888, 52300320, 52398752, 52497184,
52595616, 52694048, 52792480
# df -h
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d70 25G 25M 25G 1% /interfaz

No hay comentarios:

Publicar un comentario