Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Installation - Getting started with Red Hat Linux
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
resize "/ " under LVM - SOLVED

resize "/ " under LVM - SOLVED

2005-10-06       - By Collins, Kevin (MindWorks)

 Back
Reply:     1     2  

John,

  I've got one of my systems which refuses to extend. Every time I
run the resize2fs or e2fsadm command(s), it gives me the message:

Please run 'e2fsck -f /dev/vg00/lvol1' first.

I've run it manually several times, as well as it being run
automatically by e2fsadm... I'm not sure what is going on.

Any ideas?

Thanks,

Kevin

-- --Original Message-- --
From: taroon-list-bounces@(protected)
[mailto:taroon-list-bounces@(protected)] On Behalf Of Collins, Kevin
(MindWorks)
Sent: Wednesday, October 05, 2005 2:06 PM
To: taroon-list@(protected)
Cc: John Haxby
Subject: RE: resize "/" under LVM - SOLVED

John's answer below solved the problem.

Thanks John for all the help - you saved me a day's work! If I ever make
it to your side of the pond, I'll buy you a pint!

Kevin

-- --Original Message-- --
From: John Haxby [mailto:jch@(protected)]
Sent: Wednesday, October 05, 2005 1:23 PM
To: KCollins@(protected)
Subject: Re: resize "/" under LVM


My battery is going flat so I can't go into much detail right now.  
Briefly:

 1.  Don't mount the file system images.
 2.  vgscan to find the volume groups
 3.  vgchange -a y /dev/VolGroup00 (or whatever) to acitvate it
 4.  resize /dev/VolGroup00/LogVol00


Collins, Kevin (MindWorks) wrote:

>John,
>
>   I can extend the lvol on-line, but the filesystem still needs to
>be extended. So, I tried booting in rescue mode 2 ways:
>
>1) allowing rescue mode to mount the local filesystems. In this mode, I
>can't get /mnt/sysimage umounted because a kernel process has the
>filesystem busy.
>
>2) skipping the mount, I can then not extend the fileystem because
there
>is no /dev/vg00/lvol1 device :)
>
>Is there something I am not seeing here?
>
>Thanks, it feels like I'm right on the verge of fixing it...
>
>Kevin
>
>-- --Original Message-- --
>From: taroon-list-bounces@(protected)
>[mailto:taroon-list-bounces@(protected)] On Behalf Of John Haxby
>Sent: Wednesday, October 05, 2005 8:56 AM
>To: Discussion of Red Hat Enterprise Linux 3 (Taroon)
>Subject: Re: resize "/" under LVM
>
>Collins, Kevin (MindWorks) wrote:
>
>  
>
>>I can't believe nobody has any help to offer on this... Usually, there
>>    
>>
>
>  
>
>>is a response to everything. Anyone?
>>    
>>
>
>Well, I looked at the original message and thought "oh dear, what a
>mess, where to start?"
>
>  
>
>>        I just used kickstart to install 3 systems with U6. I used the
>>    
>>
>
>  
>
>>same partition sizes as I had previously used with RH9, and
>>unfortunately I now have about 700 bytes free in "/". Is it possible
>>to extend this filesystem under LVM?
>>
>>    
>>
>On RHEL3, I'd do this by booting a rescue disk and extending the
logical
>
>volume and file system off line.   In fact, I have done just that at
>least once and it works just fine.
>
>  
>
>>I tried creating a new LVOL (lvolslash) that is bigger, copying all
>>the contents of /  (lvol1) to it, changing /etc/fstab and
>>/etc/grub.conf to point to the new lvolslash. The system reboots fine,
>>    
>>
>
>  
>
>>and a "df" shows my new lvol mounted as root. However, the df also
>>shows the size of my original lvol1 and says it is mounted when I try
>>to resize2fs it...
>>
>>    
>>
>Did you re-run mkinitrd?   (The linuxrc in there contains a line to
>mount the root logical volume as /sysroot.)   That *might* fix things
up
>
>and then you can delete the old logical volume.  If not, undo what
>you've done so far, delete the new logical volume and go back to doing
>an off-line resize.
>
>  
>
>>Can I fix this? Is the ext2online command functional on RHEL 3? I'd
>>prefer not to redo thepost work I have already completed.
>>
>>    
>>
>ext2online isn't available (or doesn't work, or both) for RHEL3, you
>need to do file system resizing off line.   If it's the root file
system
>
>that means booting off a rescue disk.
>
>jch
>
>--
>Taroon-list mailing list
>Taroon-list@(protected)
>https://www.redhat.com/mailman/listinfo/taroon-list
>
>
>
>--
>Taroon-list mailing list
>Taroon-list@(protected)
>https://www.redhat.com/mailman/listinfo/taroon-list
>  
>




--
Taroon-list mailing list
Taroon-list@(protected)
https://www.redhat.com/mailman/listinfo/taroon-list



--
Taroon-list mailing list
Taroon-list@(protected)
https://www.redhat.com/mailman/listinfo/taroon-list