Quote:
|
I think you are out of luck unfortunately. UFS filesystems generally can't be grown. I believe your only choice would be to make a full backup, reinstall solaris laying out the filesystems how you want, then restore from your backup.
|
sry, but that's not true:
see:
Code:
root@jumpy # df -h /testing
Filesystem size used avail capacity Mounted on
/dev/dsk/c0t2d0s0 240M 65M 150M 31% /testing
root@jumpy #
root@jumpy # metainit -f d80 1 1 /dev/dsk/c0t2d0s0
d80: Concat/Stripe is setup
root@jumpy # umount /testing
root@jumpy # mount /dev/md/dsk/d80 /testing
root@jumpy # df -h /testing
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d80 240M 65M 150M 31% /testing
root@jumpy # metattach d80 /dev/dsk/c0t2d0s1
d80: component is attached
root@jumpy # df -h /testing
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d80 240M 65M 150M 31% /testing
root@jumpy # growfs -M /testing /dev/md/rdsk/d80
/dev/md/rdsk/d80: 16785120 sectors in 4114 cylinders of 16 tracks, 255 sectors
8195.9MB in 258 cyl groups (16 c/g, 31.88MB/g, 15296 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 65568, 131104, 196640, 262176, 327712, 393248, 458784, 524320, 589856,
16191520, 16257056, 16322592, 16388128, 16453664, 16519200, 16584736,
16650272, 16711712, 16777248,
root@jumpy # df -h /testing
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d80 7.5G 72M 7.4G 1% /testing
root@jumpy #
you see? disksuite is complicated, but mighty.... if you are dealing with root partitions it's a pit more sophisticated. i am not sure if it will work to make a concat on the root partitions, never tried it, but i think it won't work. depending on how big your /export/home is you could dump it somewhere to, repartion your harddisk and increase the number of blocks for your root partition with the "format" menue, let the rootslice grow with "growfs", make a new fs on /export/home and restore the dump. i could imagine many ways to do it, e.g. you could use your second disk for /export/home, use the solaris feature to use a file for swapping (could be changed on the fly) and make new partitions on the 2nd disk and restore the system configuration...
but to be honest, if you are not used with solaris, it would be the easiest way for you to reinstall the system, sry
also a way to do it, i like your script... but on that, you would need a downtime.... belongs to you
regards
PRESSY