April 16, 2010

Solaris Volume Manager: How to resize soft partition on metaset

Posted in SVM at 3:48 pm by alessiodini


I have d12 soft partition inside oraset metaset. oraset is composited as follow :

# metastat -s oraset
oraset/d12: Soft Partition
Device: oraset/d100
State: Okay
Size: 372496889 blocks (77 GB)
Extent Start Block Block count
0 104857664 209715231
1 1 30
2 104857633 30
3 629145697 162781598

oraset/d100: Concat/Stripe
Size: 791927296 blocks (377 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
d8s0 0 No Okay No
Stripe 1:
Device Start Block Dbase State Reloc Hot Spare
d11s0 0 No Okay No

oraset/d11: Soft Partition
Device: oraset/d100
State: Okay
Size: 419430400 blocks (200 GB)
Extent Start Block Block count
0 32 104857600
1 314572896 314572800

Device Relocation Information:
Device Reloc Device ID
d8 No –
d11 No –

for resize soft partion i have i tried this:

metattach -s oraset d12 all
oraset/d12: Soft Partition has been grown

# growfs -M /archive01 /dev/md/oraset/rdsk/d12
Warning: 1544 sector(s) in last cylinder unallocated
/dev/md/oraset/rdsk/d12: 372496888 sectors in 60628 cylinders of 48 tracks, 128 sectors
181883.2MB in 3790 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:
371589664, 371688096, 371786528, 371884960, 371983392, 372081824, 372180256,
372278688, 372377120, 372475552

Good!
After this , d12 is changed from 77 gb to 177 gb , as follow:

# metastat -s oraset
oraset/d12: Soft Partition
Device: oraset/d100
State: Okay
Size: 372496889 blocks (177 GB)
Extent Start Block Block count
0 104857664 209715231
1 1 30
2 104857633 30
3 629145697 162781598

oraset/d100: Concat/Stripe
Size: 791927296 blocks (377 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
d8s0 0 No Okay No
Stripe 1:
Device Start Block Dbase State Reloc Hot Spare
d11s0 0 No Okay No

oraset/d11: Soft Partition
Device: oraset/d100
State: Okay
Size: 419430400 blocks (200 GB)
Extent Start Block Block count
0 32 104857600
1 314572896 314572800

Device Relocation Information:
Device Reloc Device ID
d8 No –
d11 No –

Advertisements