Steps to grow the filesystem additional 30Gb in SVM softpartition.(without data loss)

Steps to grow the filesystem additional 30Gb in SVM softpartition.

1. Adding 30Gb new disk into d370 metadevice.
2. Attach 30Gb(grow size) to d31 softpartition.
3. Grow the d371 softpartition.
4. Check the result.


root:/ > metastat d371
d371: Soft Partition
Device: d370
State: Okay
Size: 71303168 blocks (34 GB)
Extent Start Block Block count
0 1952 71303168

d370: Concat/Stripe
Size: 72888960 blocks (34 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
/dev/dsk/emcpower32a 0 No Okay No
Stripe 1:
Device Start Block Dbase State Reloc Hot Spare
/dev/dsk/emcpower33g 1920 No Okay No
Stripe 2:
Device Start Block Dbase State Reloc Hot Spare
/dev/dsk/emcpower34a 1920 No Okay No

Device Relocation Information:
Device Reloc Device ID
/dev/dsk/emcpower32a No -
/dev/dsk/emcpower33g No -
/dev/dsk/emcpower34a No -


root:/ > metastat d370
d370: Concat/Stripe
Size: 72888960 blocks (34 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
/dev/dsk/emcpower32a 0 No Okay No
Stripe 1:
Device Start Block Dbase State Reloc Hot Spare
/dev/dsk/emcpower33g 1920 No Okay No
Stripe 2:
Device Start Block Dbase State Reloc Hot Spare
/dev/dsk/emcpower34a 1920 No Okay No

Device Relocation Information:
Device Reloc Device ID
/dev/dsk/emcpower32a No -
/dev/dsk/emcpower33g No -
/dev/dsk/emcpower34a No -



root:/ > metattach d370 c2t5006016041E0F15Bd2s2
d370: component is attached

root:/ > metastat d370
d370: Concat/Stripe
Size: 135799680 blocks (64 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
/dev/dsk/emcpower32a 0 No Okay No
Stripe 1:
Device Start Block Dbase State Reloc Hot Spare
/dev/dsk/emcpower33g 1920 No Okay No
Stripe 2:
Device Start Block Dbase State Reloc Hot Spare
/dev/dsk/emcpower34a 1920 No Okay No
Stripe 3:
Device Start Block Dbase State Reloc Hot Spare
/dev/dsk/c2t5006016041E0F15Bd2s2 1280 No Okay Yes

Device Relocation Information:
Device Reloc Device ID
/dev/dsk/emcpower32a No -
/dev/dsk/emcpower33g No -
/dev/dsk/emcpower34a No -
/dev/dsk/c2t5006016041E0F15Bd2 Yes id1,ssd@n60060160f8122300a2c36a1c88dae011


root:/ > df -h /stag
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d371 33G 17G 16G 51% /stag

root:/ > metattach d371 30g
d371: Soft Partition has been grown
root:/ > metastat d371
d371: Soft Partition
Device: d370
State: Okay
Size: 134217728 blocks (64 GB)
Extent Start Block Block count
0 1952 134217728

d370: Concat/Stripe
Size: 135799680 blocks (64 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
/dev/dsk/emcpower32a 0 No Okay No
Stripe 1:
Device Start Block Dbase State Reloc Hot Spare
/dev/dsk/emcpower33g 1920 No Okay No
Stripe 2:
Device Start Block Dbase State Reloc Hot Spare
/dev/dsk/emcpower34a 1920 No Okay No
Stripe 3:
Device Start Block Dbase State Reloc Hot Spare
/dev/dsk/c2t5006016041E0F15Bd2s2 1280 No Okay Yes

Device Relocation Information:
Device Reloc Device ID
/dev/dsk/emcpower32a No -
/dev/dsk/emcpower33g No -
/dev/dsk/emcpower34a No -
/dev/dsk/c2t5006016041E0F15Bd2 Yes id1,ssd@n60060160f8122300a2c36a1c88dae011
root:/ >


root:/ > growfs -M /stag /dev/md/rdsk/d371
/dev/md/rdsk/d371: Unable to find Media type. Proceeding with system determined parameters.
Warning: 4096 sector(s) in last cylinder unallocated
/dev/md/rdsk/d371: 134217728 sectors in 21846 cylinders of 48 tracks, 128 sectors
65536.0MB in 1366 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:
133301792, 133400224, 133498656, 133597088, 133695520, 133793952, 133892384,
133990816, 134089248, 134187680

root:/ > df -k /stag
Filesystem kbytes used avail capacity Mounted on
/dev/md/dsk/d371 66092522 17594518 48146890 27% /stag


root:/ > df -h /stag
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d371 63G 17G 46G 27% /stag
root:/ >

No comments: