LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-23-2009, 03:47 PM   #1
AndyD236
LQ Newbie
 
Registered: Aug 2008
Posts: 13

Rep: Reputation: 0
LVM issue


Hi,

I created a logical volume and can see it when i run lvdisplay. However, when I try to mount it, I get the following error message:

root@xxxxxxx:/etc# mount -a
mount: wrong fs type, bad option, bad superblock on /dev/mapper/VolGroup00-sysbak,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

Command to mount in fstab: /dev/VolGroup00/sysbak /sysbak ext3 rw,noatime 0 0
~

Any ideas?
 
Old 11-23-2009, 04:23 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
After creating the LV you have to layout a filesystem on it. LV is just creating the device (similar to a disk partition).

Your entry shows you're trying to do ext3 filesystem so to layout an ext3 you'd run:
mkfs -t ext3 /dev/mapper/VolGroup00-sysbak

After than you can try your mount command.

Adding the file to /etc/fstab doesn't do the layout - it is just a way to insure the filesystem mounts automatically at boot but it assumes you've done the layout already.
 
Old 11-24-2009, 07:26 AM   #3
AndyD236
LQ Newbie
 
Registered: Aug 2008
Posts: 13

Original Poster
Rep: Reputation: 0
....

Thanks.

This worked but I had to redo the entire LVM setup (not a big deal), because I inadvertently formatted the entire partition, not just the LV. Doh. Once I recreated the PV, VG and LV's and then formatted the LV's as ext4, everything worked.

Thanks much.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lvm ontop of raid10 or combine two raid1 via lvm? okar Linux - Server 3 09-11-2009 02:37 PM
LVM Issue bondoq Linux - General 8 05-12-2009 09:35 AM
LVM and multiple iSCSI disks performance of LVM xxx_anuj_xxx Linux - Server 4 05-01-2008 12:26 PM
LXer: Back Up (And Restore) LVM Partitions With LVM Snapshots LXer Syndicated Linux News 0 04-17-2007 11:16 AM
LVM issue pauloco Linux - Hardware 1 11-14-2006 11:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:55 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
Open Source Consulting | Domain Registration