On Wednesday 28 January 2004 11:35, Alikhani wrote:
> Hi
> My / filesystem that is on /dev/dasda is being full and i need to
> increase it's size . My VM admin says he can asign a new dasd and format
> it and belong it to my Linux Guest . I want to know how to assign this
> dasd to my / filesystem that it will be increased to new size .

The easiest way is to move some parts of / to another file system.
The obvious candidates are /usr, /home/, /opt/ and /var.

E.g. to make /dev/dasdb1 your new /usr, do something like

mke2fs -j /dev/dasdb1
mount /dev/dasdb1 /mnt
cp -al /usr/* /mnt/
umount /mnt
echo /dev/dasdb1 /usr/ ext3 ro 0 0 >> /etc/fstab
mount --bind /usr /mnt
mount /usr
rm -rf /mnt/*
umount /mnt

For /home, it is even easier when no user except root is logged in:

mke2fs -j /dev/dasdb1
mount /dev/dasdb1 /mnt
mv /home/* /mnt/
umount /mnt
echo /dev/dasdb1 /home/ ext3 defaults 0 0 >> /etc/fstab
mount /home

        Arnd <><

Reply via email to