I find it easier to drop my box into single user mode (rather than reboot and adjust it to come up in single user mode). From a command line, as the user root, type: init 1
BOOM! You'll drop to single user mode and you can then umount /var and expand it using the LVM. I've done this many, many times to working boxes. In the old days, you would add a drive and bring it up as a partition /var2, then: cp -a /var/ /var2 ; Drop to single user mode init 1 umount /var ; Adjust the /etc/fstab to point /var to the new drive vi /etc/fstab mount /var ; Bring the server back online init 3 On a good day, you were down for less than 2 minutes. Good Luck - Jon Carnes On Mon, 2003-09-01 at 13:35, Joseph Tate wrote: > If you boot using a rescue disk, or into linux single user mode, you can > run commands on /var without it being mounted. To do it from grub, just > append single to your standard boot configuration. The var partition is > used for such things as your web site, logs, rpm databases as well as > data for just about every program. You can use du -h /var to see what > all is there. > > Joseph > > [EMAIL PROTECTED] wrote: > > >I recently did a fresh installation on my home > >computer (RH 9). I used the LVM option during > >installation and set it up with a 500M /var > >partition. I figured this would be large enough. > > So here is my issue. I had a problem using rpm > >and discovered that my /var partition is almost > >full. I am not sure why the /var partition is so > >full. However, I wanted to increase the size. > >But to increase the size, the directions I read > >said I needed to umount the fs before changing the > >size. Well, I know I cannot umount the /var > >partition. So can someone tell me how to increase > >the size of the LVM /var partition. Thanks. > > > >-Scot > > > > > > -- TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug TriLUG Organizational FAQ : http://trilug.org/faq/ TriLUG Member Services FAQ : http://members.trilug.org/services_faq/ TriLUG PGP Keyring : http://trilug.org/~chrish/trilug.asc
