Note on moving /var : if you're running daemons that log to /var, do a " ps auxe " and " kill -9 <relevant daemon pids>" before unmounting /var and copying the directories and files over to the new /var on the new DASD.
I just found that out the other day. Wesley Parish On Thu, 29 Jan 2004 04:09, you wrote: > 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 <>< -- Wesley Parish * * * Clinersterton beademung - in all of love. RIP James Blish * * * Mau e ki, "He aha te mea nui?" You ask, "What is the most important thing?" Maku e ki, "He tangata, he tangata, he tangata." I reply, "It is people, it is people, it is people."
