[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] LVM questions & problems.



On Mon, May 07, 2001 at 11:57:03AM -0400, Rupert Heesom wrote:
> On 07 May 2001 10:28:44 +0000, Heinz J. Mauelshagen wrote:
> > On Sun, May 06, 2001 at 09:05:13PM -0400, Rupert Heesom wrote:
> > > I'm practicing doing some LVM commands, and am coming up with some
> > > problems -
> > > 
> > > Most disconcerting is that when I try to create a directory in the LV, I
> > > get the following error - (this does not happen all the time, but almost
> > > all the time 99%) -
> > > 
> > > [root localhost Tmp]# mkdir test1
> > > mkdir: cannot create directory `test1': Input/output error
> > 
> > You didn't metion, if the filesystem is still in a sane state.
> > 
> > Did you check your syslog for "accessess beyond the end of the device"
> > which indicate fs related problems?
> 
> Well, looking at my syslog after mounting my lvol, I saw the following
> msg -
> 
> "May  7 11:51:26 localhost kernel: EXT2-fs warning: mounting fs with
> errors, running e2fsck is recommended"
> 
> I also saw previous errors which you asked about (lots of them) -
> 
> "itmap: Cannot read inode bitmap - block_group = 3, inode_bitmap = 98307
> May  6 14:44:13 localhost kernel: attempt to access beyond end of
> device...."
> 
> I have realised what my base problem is.... I have reduced the LV size,
> but not reduced the Ext2 filesystem.  For some reason I thought that
> resizing the LV was sufficient.

It likely will be at some point in time in the future.
Triggering the fs resize when a LN gets resized is a TODO item :-)

> Looking further at the HOWTO, and other
> web docs has enlightened me further.
> 
> It seems I will try to learn how to use teh e2fsadm util.  BTW one of
> the utils seems to be commercial from Powerquest.  I have the v4 of
> Partition Magic already.  I know it resizes ext2 filesystems, but as far
> as I know needs to be run from within windows (it's been a long time
> since I've used it last).  Are the utils such as e2fsadm sufficient /
> good enough without the commercial PM util?

You need to get the resize2fs tool (by Ted Ts'o and Powerquest) in order
to run e2fsadm.

e2fsadm basically is a wrapper which runs either

   e2fsck;lvextend;resize2fs

or

   e2fsck;resize2fs;lvreduce


resize2fs might already be contained in your distribution.

If not so, use for eg. ftpsearch.lycos.com to figure piles of spaces
where to get it.

> 
> -- 
> regs
> rupert
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm sistina com
> http://lists.sistina.com/mailman/listinfo/linux-lvm

-- 

Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
Mauelshagen Sistina com                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]