LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   fsck.lvm2pv (https://www.linuxquestions.org/questions/linux-server-73/fsck-lvm2pv-661455/)

rusl 08-08-2008 01:15 PM

fsck.lvm2pv
 
Hi, I recently Came across the Error:
Code:

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?

marozsas 08-08-2008 02:59 PM

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.

rusl 08-08-2008 11:18 PM

fsck LVM
 
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.

marozsas 08-09-2008 01:37 PM

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".

cheers,

rusl 08-10-2008 10:28 PM

Solved
 
OK, thanks marozsas, good to know so I can get on with figuring out things that actually work.


All times are GMT -5. The time now is 02:51 AM.