LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-08-2008, 01:15 PM   #1
rusl
LQ Newbie
 
Registered: Aug 2007
Location: Vancouver, BC
Distribution: ubuntu dapper32bit and hardy64bit
Posts: 12

Rep: Reputation: 0
Question 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?
 
Old 08-08-2008, 02:59 PM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,439
Blog Entries: 1

Rep: Reputation: 66
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.
 
Old 08-08-2008, 11:18 PM   #3
rusl
LQ Newbie
 
Registered: Aug 2007
Location: Vancouver, BC
Distribution: ubuntu dapper32bit and hardy64bit
Posts: 12

Original Poster
Rep: Reputation: 0
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.
 
Old 08-09-2008, 01:37 PM   #4
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,439
Blog Entries: 1

Rep: Reputation: 66
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,
 
Old 08-10-2008, 10:28 PM   #5
rusl
LQ Newbie
 
Registered: Aug 2007
Location: Vancouver, BC
Distribution: ubuntu dapper32bit and hardy64bit
Posts: 12

Original Poster
Rep: Reputation: 0
Solved

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help doing a fsck JosephS Slackware 8 08-09-2007 12:18 PM
What exactly does fsck do? jgombos Linux - Newbie 9 11-21-2006 11:12 PM
automatic fsck on boot. fsck errors. nixel Slackware 1 05-17-2004 07:51 AM
fsck help afrodocter Linux - Software 6 04-29-2004 10:42 AM
How to use Fsck pembo13 Linux - General 4 04-20-2004 11:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration