Bienvenidos

Todos estos pasos descriptos fueron probados en ambientes productivos

lunes, 12 de julio de 2010

Agrandar un fs con SVM que esta dentro de un Disk Set

Para Agrandar un fs con SVM que esta dentro de un Disk Set, se debe por ejemplo en este caso queremos
agrandar el fs /u/app/oracle/admin/SKOL/arch perteneciente al d74
# df -h
Filesystem size used avail capacity Mounted on
/dev/md/SKOL/dsk/d74 10.0G 90M 9.8G 1% /u/app/oracle/admin/SKOL/arch
# metastat -s SKOL
SKOL/d74: Soft Partition
Device: SKOL/d70
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0 482345472 20971520

SKOL/d70: Concat/Stripe
Size: 628838400 blocks (299 GB)
Stripe 0: (interlace: 128 blocks)
Device Start Block Dbase State Reloc Hot Spare
/dev/dsk/c6t60060E800456EE00000056EE000000F4d0s0 0 No Okay Yes
/dev/dsk/c6t60060E800456EE00000056EE000000F5d0s0 0 No Okay Yes
/dev/dsk/c6t60060E800456EE00000056EE000000F6d0s0 0 No Okay Yes
/dev/dsk/c6t60060E800456EE00000056EE000000F7d0s0 0 No Okay Yes
/dev/dsk/c6t60060E800456EE00000056EE000000F8d0s0 0 No Okay Yes
/dev/dsk/c6t60060E800456EE00000056EE000000F9d0s0 0 No Okay Yes
/dev/dsk/c6t60060E800456EE00000056EE000000FAd0s0 0 No Okay Yes
/dev/dsk/c6t60060E800456EE00000056EE000000FBd0s0 0 No Okay Yes
/dev/dsk/c6t60060E800456EE00000056EE000000FCd0s0 0 No Okay Yes
/dev/dsk/c6t60060E800456EE00000056EE000000FDd0s0 0 No Okay Yes

SKOL/d73: Soft Partition
Device: SKOL/d70
State: Okay
Size: 157286400 blocks (75 GB)
Extent Start Block Block count
0 325058944 157286400

SKOL/d72: Soft Partition
Device: SKOL/d70
State: Okay
Size: 157286400 blocks (75 GB)
Extent Start Block Block count
0 167772416 157286400

SKOL/d71: Soft Partition
Device: SKOL/d70
State: Okay
Size: 167772160 blocks (80 GB)
Extent Start Block Block count
0 128 167772160

Con este comando Agrego 15 gb al filesystem que ya tenia 10gb, es decir lo llevare a 25 gb totales.
# metattach -s SKOL d74 15g
SKOL/d74: Soft Partition has been grown

# metastat -s SKOL d74
SKOL/d74: Soft Partition
Device: SKOL/d70
State: Okay
Size: 52428800 blocks (25 GB)
Extent Start Block Block count
0 482345472 52428800

SKOL/d70: Concat/Stripe
Size: 628838400 blocks (299 GB)
Stripe 0: (interlace: 128 blocks)
Device Start Block Dbase State Reloc Hot Spare
/dev/dsk/c6t60060E800456EE00000056EE000000F4d0s0 0 No Okay Yes
/dev/dsk/c6t60060E800456EE00000056EE000000F5d0s0 0 No Okay Yes
/dev/dsk/c6t60060E800456EE00000056EE000000F6d0s0 0 No Okay Yes
/dev/dsk/c6t60060E800456EE00000056EE000000F7d0s0 0 No Okay Yes
/dev/dsk/c6t60060E800456EE00000056EE000000F8d0s0 0 No Okay Yes
/dev/dsk/c6t60060E800456EE00000056EE000000F9d0s0 0 No Okay Yes
/dev/dsk/c6t60060E800456EE00000056EE000000FAd0s0 0 No Okay Yes
/dev/dsk/c6t60060E800456EE00000056EE000000FBd0s0 0 No Okay Yes
/dev/dsk/c6t60060E800456EE00000056EE000000FCd0s0 0 No Okay Yes
/dev/dsk/c6t60060E800456EE00000056EE000000FDd0s0 0 No Okay Yes

Device Relocation Information:
Device Reloc Device ID
/dev/dsk/c6t60060E800456EE00000056EE000000F4d0 Yes id1,ssd@n60060e800456ee00000056ee000000f4
/dev/dsk/c6t60060E800456EE00000056EE000000F5d0 Yes id1,ssd@n60060e800456ee00000056ee000000f5
/dev/dsk/c6t60060E800456EE00000056EE000000F6d0 Yes id1,ssd@n60060e800456ee00000056ee000000f6
/dev/dsk/c6t60060E800456EE00000056EE000000F7d0 Yes id1,ssd@n60060e800456ee00000056ee000000f7
/dev/dsk/c6t60060E800456EE00000056EE000000F8d0 Yes id1,ssd@n60060e800456ee00000056ee000000f8
/dev/dsk/c6t60060E800456EE00000056EE000000F9d0 Yes id1,ssd@n60060e800456ee00000056ee000000f9
/dev/dsk/c6t60060E800456EE00000056EE000000FAd0 Yes id1,ssd@n60060e800456ee00000056ee000000fa
/dev/dsk/c6t60060E800456EE00000056EE000000FBd0 Yes id1,ssd@n60060e800456ee00000056ee000000fb
/dev/dsk/c6t60060E800456EE00000056EE000000FCd0 Yes id1,ssd@n60060e800456ee00000056ee000000fc
/dev/dsk/c6t60060E800456EE00000056EE000000FDd0 Yes id1,ssd@n60060e800456ee00000056ee000000fd

# df -h |grep d74
/dev/md/SKOL/dsk/d74 10.0G 90M 9.8G 1% /u/app/oracle/admin/SKOL/arch

# growfs -M /u/app/oracle/admin/SKOL/arch /dev/md/SKOL/rdsk/d74
Warning: 4096 sector(s) in last cylinder unallocated
/dev/md/SKOL/rdsk/d74: 52428800 sectors in 8534 cylinders of 48 tracks, 128 sectors
25600.0MB in 534 cyl groups (16 c/g, 48.00MB/g, 128 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:
51512864, 51611296, 51709728, 51808160, 51906592, 52005024, 52103456,
52201888, 52300320, 52398752
# df -h |grep d74
/dev/md/SKOL/dsk/d74 25G 105M 25G 1% /u/app/oracle/admin/SKOL/arch
#

2 comentarios:

  1. Hola cómo puedo hacer el proceso inverso de reducir el fs osea 25Gb a 10Gb?

    Saludos,

    ResponderEliminar
  2. Hola aav1307, te pido disculpas por la demora en contestar, pero tengo entendido ( jamas lo hice) que no se pude hacer un shrink.Pero lo averiguo y te contesto. Salu2

    ResponderEliminar