[CentOS] Need resize a partition LVM2
mailing-lists at hughesjr.com
Thu Nov 30 11:14:57 UTC 2006
On Thu, 2006-11-30 at 07:08 -0400, Guillermo Garron wrote:
> On 11/30/06, Ferdinando Santacroce <jesus_was_rasta at yahoo.it> wrote:
> > Hi all..
> > On my little test server I have 40GB hard disk.
> > I use LVM2, with 4 partitons: /boot, /home, /usr, /var
> > I set Apache to work in /var/www.
> > Now I added a 30GB hard disk to extend /var.
> > I regularly extended my volume group and the logical volume where /var stay.
> > Now I need to umount /var to run a resize2fs to extend the /var
> > partiton, but I see ever the same message: "device is busy"
> > I tried to switch to runlevel 1, but no luck.
> > My var uses quota, and the fs is ext3.
> Hi, it only comes to my mind, i am not sure this is the right way to
> do it, but have you tried with a rescue CD?
That is my thoughts too .. as /var is going to be hard to clean out
after a normal boot.
(the logs open there, the locks dir is there, etc.)
You might be able to use either:
lsof | grep var
fuser -m /var
But in my experience ... making all the /var stuff let go is not so
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 189 bytes
Desc: This is a digitally signed message part
More information about the CentOS