increase/decrease filesystem

Hi All,

I need to increase the filesystem of / and /var (two different slices)? Space will be coming from /home slice so I need to decrease it. Is that possible without reinstallation or in a single-user-mode?

Any idea or link please.

Thanks in advance.

if you have a second disk, you can do it with "liveupgrade"... all you need is one reboot after you've done the configuration.

that is complicated, I don't have time to play with this.

On single user mode, can i umount /var and then recreate this to a bigger new slice? I might have to move some filesystem on root to be on another slice too.

any ideas?

Maybe,

y can increase /var and decrease /home and move /opt to another slice, but only in single-user-mode.

print y disk partition and `metastat -p`

# df -hk
Filesystem kbytes used avail capacity Mounted on
...
/dev/md/dsk/d10 69047 65426 0 100% /home2
...
# growfs -M /home2 /dev/md/rdsk/d10
/dev/md/rdsk/d10: 295200 sectors in 240 cylinders of 15 tracks, 82 sectors
144.1MB in 15 cyl groups (16 c/g, 9.61MB/g, 4608 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 19808, 39584, 59360, 79136, 98912, 118688, 138464, 158240, 178016, 197792,
217568, 237344, 257120, 276896,
# df -hk
Filesystem kbytes used avail capacity Mounted on
...
/dev/md/dsk/d10 138703 65426 59407 53% /home2
...

If you have no space to expand your FS, I supppose you do a backup of all the partition. Recreate the partitioning using the format utility and newfs the slices again . do a restoration.. this takes time