On May 18, 2005, at 2:25 PM, Jon Brock wrote:

    We have a vendor installing a product on a zLinux image.  This
product uses MySQL, which defaults to placing its databases on /var
(which I consider a Bad Idea, but that's beside the point).
Because of this, they need 80 GB for /var.  I have an 80 GB ext3
file system created in LVM and mounted, but they need that space
in /var, which currently only has one 3390-3.  Is there a way to
move /var onto the LVM file system?  The last time I tried
something like this, it resulted in a reload of the OS.

It's easy.

Shut down to single user mode (telinit S).

mount /dev/lvmwhatever /mnt

cp -a /var/* /mnt

umount /mnt
umount /var

mount /dev/lvmwhatever /var

edit /etc/fstab to find /var on /dev/lvmwhatever

telinit 3 (or whatever the default runlevel is)

Adam

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to