Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
fsck 1.40.8 (13-Mar-2008)
fsck: fsck.lvm2pv: not found
fsck: Error 2 while executing fsck.lvm2pv for /dev/md0
Yet, amazingly, I can find no other mention of this on Google whatsoever - excepting a single German Ubuntu website posting where someone is asking what it is and gets no response. What is this thing and how can it not exist? One would think it would be mentioned in Google at least in a man page or some source code somewhere??? My best guess it it is a placeholder for a version of fsck that is able to run on LVM partitions but has yet to be invented. Still, if so, you would think someone would mention that somewhere if it were true.
Is there a fsck or lvm website/forum/IRC that I could hunt for answers on?
You got this error when you try to run fsck on a LVM partition, what does not make sense.
Code:
[root@babylon5 ~]# fdisk -l | grep LVM
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1 doesn't contain a valid partition table
Disk /dev/dm-2 doesn't contain a valid partition table
Disk /dev/dm-3 doesn't contain a valid partition table
/dev/sda3 30 19452 156015247+ 8e Linux LVM
/dev/sdb2 26 19452 156047377+ 8e Linux LVM
[root@babylon5 ~]# fsck -N /dev/sdb2
fsck 1.40.8 (13-Mar-2008)
fsck: fsck.lvm2pv: not found
fsck: Error 2 while executing fsck.lvm2pv for /dev/sdb2
[root@babylon5 ~]#
What is supposed to run is something like "fsck /dev/mapper/whatever".
A LVM partition like mine, /dev/sdb2, may have many logical volumes on it, and many several filesystems on each logical volume. FSCK has no way to figure out what are in such partition.
So are you saying then that fsck.lvm2pv is simply an error message?
Therefore: The message is telling me not to run fsck on the LVM pv partition? (I know that the proper way is to fsck the /dev/mapper/logical-volume) Is that it?
I'm just trying to figure out what the message means and was confounded that it never appears on Google.
Kind of... I was surprise by the message too. I agree with you about it looks like a placeholder for a feature not available yet.
But today, yes, it is a error message.
May be the developers have plans to have a "fsck.lvm2pv" binary to make some sort of check on a lvm partition, After all, "fsck" is just a wrapper for several "fsck.whatever".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.