[TriLUG] LVM issue - Making /var larger

Joseph Tate jtate at dragonstrider.com
Mon Sep 1 14:25:39 EDT 2003


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




More information about the TriLUG mailing list