<br><br>
<div class="gmail_quote">On Sun, May 2, 2010 at 10:44 PM, Kwan Lowe <span dir="ltr"><<a href="mailto:kwan.lowe@gmail.com">kwan.lowe@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im">><br>> I've also safely grown LVM volumes online, but /var is a bit more trickey<br>> since a lot of stuff runs straight from it .So I don't want to attempt this<br>> if it's going to break the whole system.<br>

<br></div>OK.. get you now..<br><br>The main thing to keep in mind is that you'll need a little bit of<br>free space in order to grow /var. I grow /var often on many systems.<br>There's also a possibility that you'll need to run tune2fs to grow the<br>

journal to allow a larger maximum filesystem size. This cannot be done<br>with /var online though.<br>
<div>
<div></div>
<div class="h5">_______________________________________________<br><br></div></div></blockquote>
<div> </div>
<div>heh, there's plenty space left on the drive:</div>
<div> </div>
<div>[root@zaxen02 ~]# pvscan<br>  PV /dev/md1   VG LVM01   lvm2 [232.69 GB / 141.69 GB free]<br>  Total: 1 [232.69 GB] / in use: 1 [232.69 GB] / in no VG: 0 [0   ]<br></div>
<div> </div>
<div>As far as I know, one needs to unmount a volume in order to resize it, but /var can't be unmounted. </div>
<div> </div>
<div>I wonder if I could script something that could run in single user mode when it reboots,  but</div>
<div>1. how do I tell it to reboot in ginle user mode, via SSH?</div>
<div>2. how do I tell the server to login by itself, i.e. don't need someone to type in the root password @ the console, then check to make sure it's in single user mode?</div>
<div> </div>
<div>From here could be as simple as unmouting /var, running lvresize +2GB /dev/LVM/var etc </div>
<div> </div>
<div> </div>
<div> </div>
<div>Has anyone done anything like this before, with success? i.e. do you have a working procedure / script to share with me? I won't be able to test the process, if it fails then I'm stuck </div>
<div> </div>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>
<div class="h5">-- <br>Kind Regards<br>Rudi Ahlers<br>SoftDux<br><br>Website: <a href="http://www.SoftDux.com">http://www.SoftDux.com</a><br>Technical Blog: <a href="http://Blog.SoftDux.com">http://Blog.SoftDux.com</a><br>

Office: 087 805 9573<br>Cell: 082 554 7532<br></div></div></blockquote></div>