LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-25-2013, 07:41 AM   #1
boby.kumar
Member
 
Registered: Mar 2013
Posts: 92

Rep: Reputation: Disabled
mounting LVM in linux


Hi

I am trying to mount one of the lvm /dev/mapper/VolGroup00-LogVol01
in linux. detail for both HD as follows:

Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x50fd1963

Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 243202 1953001472 8e Linux LVM

Disk /dev/sdc: 320.1 GB, 320072933376 bytes------->This is the HD from i take to copy some data
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000080

Device Boot Start End Blocks Id System
/dev/sdc1 * 1 13 104391 83 Linux
/dev/sdc2 14 38913 312464250 8e Linux LVM

Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x55293afb

Device Boot Start End Blocks Id System
/dev/sdb1 1 243202 1953514552 83 Linux

Disk /dev/mapper/VolGroup-lv_root: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/VolGroup-lv_root doesn't contain a valid partition table

Disk /dev/mapper/VolGroup-lv_swap: 6274 MB, 6274678784 bytes
255 heads, 63 sectors/track, 762 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/VolGroup-lv_swap doesn't contain a valid partition table

Disk /dev/mapper/VolGroup00-LogVol01: 2080 MB, 2080374784 bytes
255 heads, 63 sectors/track, 252 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x30307800

Disk /dev/mapper/VolGroup00-LogVol01 doesn't contain a valid partition table

Disk /dev/mapper/VolGroup-lv_home: 1939.9 GB, 1939907543040 bytes
255 heads, 63 sectors/track, 235846 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/VolGroup-lv_home doesn't contain a valid partition table.

[root@localhost ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1.8T 0 disk
‚‚sda1 8:1 0 500M 0 part /boot
‚‚sda2 8:2 0 1.8T 0 part
‚‚VolGroup-lv_root (dm-0) 253:0 0 50G 0 lvm /
‚‚VolGroup-lv_swap (dm-1) 253:1 0 5.9G 0 lvm [SWAP]
‚‚VolGroup-lv_home (dm-3) 253:3 0 1.8T 0 lvm /home
sdc 8:32 0 298.1G 0 disk
‚‚sdc1 8:33 0 102M 0 part
‚‚sdc2 8:34 0 298G 0 part
‚‚VolGroup00-LogVol01 (dm-2) 253:2 0 2G 0 lvm
sdb 8:16 0 1.8T 0 disk
‚‚sdb1 8:17 0 1.8T 0 part /home1

[root@localhost ~]# blkid
/dev/sda1: UUID="cf97022a-14eb-4665-94b2-2be38f793d7c" TYPE="ext4"
/dev/sda2: UUID="oiSnx3-mCZu-aYu1-pLQF-H20O-eb1z-25wCXF" TYPE="LVM2_member"
/dev/sdc1: LABEL="/boot" UUID="73682a93-f00d-4f06-8a0d-975dabba6904" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdc2: UUID="AsmaZr-1agZ-lls1-sWAQ-pamu-9f4t-4J6Z5p" TYPE="LVM2_member"
/dev/sdb1: UUID="7cf4c455-8001-44f4-aa7f-67ffe1660a58" TYPE="ext4"
/dev/mapper/VolGroup-lv_root: UUID="0cb549a6-e861-4fce-b6b9-636f2f2a38b2" TYPE="ext4"
/dev/mapper/VolGroup-lv_swap: UUID="d46857a9-f87f-441f-9461-69f3d032e3a6" TYPE="swap"
/dev/mapper/VolGroup00-LogVol01: TYPE="swap"
/dev/mapper/VolGroup-lv_home: UUID="5a28bdd2-c9ba-4595-a8a9-f90d9a20bd24" TYPE="ext4"

[root@localhost ~]# mount -t ext3 /dev/mapper/VolGroup00-LogVol01 /home/Tiger
mount: wrong fs type, bad option, bad superblock on /dev/mapper/VolGroup00-LogVol01,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

Checking with fsck, giving the following error..

[root@localhost ~]# fsck /dev/mapper/VolGroup00-LogVol01
fsck from util-linux-ng 2.17.2
fsck: fsck.swap: not found
fsck: Error 2 while executing fsck.swap for /dev/mapper/VolGroup00-LogVol01

can any trace out how to resolve this issue to make life easier.

Its have very critical data and need to copy some config file from here.

Thanks In Advance

Last edited by boby.kumar; 10-25-2013 at 07:45 AM.
 
Old 10-25-2013, 03:57 PM   #2
dt64
Member
 
Registered: Sep 2012
Distribution: RHEL5/6, CentOS5/6
Posts: 216

Rep: Reputation: 38
Quote:
Originally Posted by boby.kumar View Post
Hi


[root@localhost ~]# blkid
/dev/sda1: UUID="cf97022a-14eb-4665-94b2-2be38f793d7c" TYPE="ext4"
/dev/sda2: UUID="oiSnx3-mCZu-aYu1-pLQF-H20O-eb1z-25wCXF" TYPE="LVM2_member"
/dev/sdc1: LABEL="/boot" UUID="73682a93-f00d-4f06-8a0d-975dabba6904" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdc2: UUID="AsmaZr-1agZ-lls1-sWAQ-pamu-9f4t-4J6Z5p" TYPE="LVM2_member"
/dev/sdb1: UUID="7cf4c455-8001-44f4-aa7f-67ffe1660a58" TYPE="ext4"
/dev/mapper/VolGroup-lv_root: UUID="0cb549a6-e861-4fce-b6b9-636f2f2a38b2" TYPE="ext4"
/dev/mapper/VolGroup-lv_swap: UUID="d46857a9-f87f-441f-9461-69f3d032e3a6" TYPE="swap"
/dev/mapper/VolGroup00-LogVol01: TYPE="swap"
/dev/mapper/VolGroup-lv_home: UUID="5a28bdd2-c9ba-4595-a8a9-f90d9a20bd24" TYPE="ext4"

[root@localhost ~]# mount -t ext3 /dev/mapper/VolGroup00-LogVol01 /home/Tiger
mount: wrong fs type, bad option, bad superblock on /dev/mapper/VolGroup00-LogVol01,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

Checking with fsck, giving the following error..

[root@localhost ~]# fsck /dev/mapper/VolGroup00-LogVol01
fsck from util-linux-ng 2.17.2
fsck: fsck.swap: not found
fsck: Error 2 while executing fsck.swap for /dev/mapper/VolGroup00-LogVol01
have a look at the parts I've highlighted. You are trying to mount a swap partition which is not ext3 formated.

You have 2 partitons assigned to swap space, /dev/mapper/VolGroup-lv_swap and /dev/mapper/VolGroup00-LogVol01.

Maybe that wasn't what you expected?

2TB of swap should definitely be enough for most applications
 
Old 10-25-2013, 07:08 PM   #3
Doug G
Member
 
Registered: Jul 2013
Posts: 669

Rep: Reputation: Disabled
If your running system also uses LVM and if the volume groups have the same name, you'd probably find it easier to mount the recovery disk from a live linux CD. I use fedora 19 live CD for this, just boo the live cd, enter a root terminal, issue "vgchange -a y" to activate your lvm on the recovery disk, and then mount the desired lvm volume group.

I usually just copy off what I need to an external usb disk temporarily, then disconnect the recovery disk, reboot to the normal system, hook up the external usb disk and copy what you need.

Once I attempted to activate two volume groups with the same name (trying to recover some fedora system data), but that didn't go well at all. lvm got "confused" when both vg's had a name conflict.
 
Old 10-26-2013, 04:12 AM   #4
boby.kumar
Member
 
Registered: Mar 2013
Posts: 92

Original Poster
Rep: Reputation: Disabled
Thanks to All Linux Guru if someone me out the exact point.

have a look at the parts I've highlighted. You are trying to mount a swap partition which is not ext3 formated.

You have 2 partitons assigned to swap space, /dev/mapper/VolGroup-lv_swap and /dev/mapper/VolGroup00-LogVol01.

Maybe that wasn't what you expected?

2TB of swap should definitely be enough for most applications


This is not 2TB HD which i looking to mount.
Here it goes..

Disk /dev/sdc: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000080

Device Boot Start End Blocks Id System
/dev/sdc1 * 1 13 104391 83 Linux
/dev/sdc2 14 38913 312464250 8e Linux LVM


I have no any live CD or recovery disk for the same.

can you please explain which partition needed to be mounted instead of SWAP partiton so i could get the data.
its very critical for me.

Thanks and Regards
 
Old 10-26-2013, 04:21 AM   #5
dt64
Member
 
Registered: Sep 2012
Distribution: RHEL5/6, CentOS5/6
Posts: 216

Rep: Reputation: 38
run both commands below and provide the output:
Code:
vgdisplay
lvdisplay
 
  


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
LXer: Mounting LVM LXer Syndicated Linux News 0 03-01-2009 06:50 PM
Mounting LVM filesystem gelex Linux - Newbie 10 12-24-2008 08:28 AM
Mounting an LVM on partition hrishikesh_am Linux - General 1 03-12-2007 11:54 AM
Mounting LVM troubles. Freestone Linux - Newbie 2 11-08-2006 07:33 PM
problem mounting LVM conalmc Linux - Newbie 3 02-15-2006 12:29 PM


All times are GMT -5. The time now is 05:38 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