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

Re: [linux-lvm] Seg fault on vgscan



You write:
> Not knowing the exact procedure for using lvm's with filesystems already
> mounted and in use (/usr, in my case).  I proceeded with the following
> commands:
> 
> --changed /dev/hda1 (/usr) to 0x8e
> --pvcreate /dev/hda1 /dev/hda8
> --vgcreate usr_dg /dev/hda8 /dev/hda1

This is very bad.  You should not use LVM on existing partitions.  Does it
not say anything in this regard in the documentation?  Probably, as a
safety measure, the LVM commands should verify that a partition is not
mounted before doing a pvcreate/vgcreate on it.

> This didn't restore the size expected so rebooted, and the /usr complained
> badly about requiring an fsck, which I did, and all appears to be back to
> normal.

It probably isn't.  I would suspect that files in the first 200kB of your
/usr partition are corrupted.  I'm surprised that the whole system didn't
just crash when it was overwritten.  Have you had any problems since then?
If you are using Red Hat or other RPM-based system, you should check the
files in all installed against their signatures in the original RPMs.

> For now, I'm going to familarize myself more with lvm by using partitions
> that are not in use

Probably a very good idea.

> but I think I need to fix my vgscan problem that
> appears to have been caused by my messing around above.
> 
> /etc/lvmtab no longer exists, but /etc/lvmconf/usr_dg.conf is still there.

Delete it.

Cheers, Andreas
-- 
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert


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