Jon, you da man! That's cool. I'd never thought to do it that way.

Jon Carnes wrote:

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




-- 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

Reply via email to