LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 12-27-2010, 03:03 AM   #1
afdownload
LQ Newbie
 
Registered: Dec 2010
Posts: 5

Rep: Reputation: 0
Unhappy how to mount LVM partiotion on linux ?


I had a centos Linux 64bit installed on my server.
Unfortunately I don't know how but my OS crashed
and now I have no way to get back my DATA except for rescue disk.
I have a Linux 64bit loaded in my server with rescue
but I have tried many ways to mount my hdd in Linux and was not succeed.
please help my out of this hell. all my life achievement is in this server!

-----------------------------------------------------------------------

root@rescue ~ # fdisk -l

Disk /dev/sda: 750.1 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000bd8fc

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 91201 732467610 8e Linux LVM

Disk /dev/sdb: 750.1 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00038cb8

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 91201 732572001 8e Linux LVM

Disk /dev/dm-0: 1489.7 GB, 1489716117504 bytes
255 heads, 63 sectors/track, 181114 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 10.4 GB, 10468982784 bytes
255 heads, 63 sectors/track, 1272 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x30307800

Disk /dev/dm-1 doesn't contain a valid partition table

-------------------------------------------------------------------------------

root@rescue ~ # lvdisplay
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol00
VG Name VolGroup00
LV UUID Z2cXSX-zUZw-eLTh-am9r-PMcc-dLhz-mzJDuH
LV Write Access read/write
LV Status available
# open 0
LV Size 1.35 TB
Current LE 44397
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0

--- Logical volume ---
LV Name /dev/VolGroup00/LogVol01
VG Name VolGroup00
LV UUID SOkdvF-Z0uM-CEJR-3bBr-iejS-IjHy-3PbWkc
LV Write Access read/write
LV Status available
# open 0
LV Size 9.75 GB
Current LE 312
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1

-----------------------------------------------------------------------------

i have tries many ways to mount the hdd but each gave an error

root@rescue ~ # mount /dev/VolGroup00/LogVol00 /mnt
mount: you must specify the filesystem type

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

root@rescue ~ # mount /dev/dm-0 /mnt
mount: you must specify the filesystem type

root@rescue ~ # mount -t ext3 /dev/dm-0 /mnt
mount: wrong fs type, bad option, bad superblock on /dev/dm-0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

---------------------------------------------------------------------------------

this is the instruction that datacenter has gave me to mount

root@rescue ~ # cat /proc/mdstat
Personalities : [raid1]
unused devices: <none>
root@rescue ~ # mdadm --assemble /dev/md0 /dev/sda1 /dev/sdb1
mdadm: no recogniseable superblock on /dev/sda1
mdadm: /dev/sda1 has no superblock - assembly aborted
root@rescue ~ # mount /dev/md0 /mnt
mount: special device /dev/md0 does not exist

---------------------------------------------------------------------------------

for the last time. please someone with the knowledge of Linux help me
i really need ma data. i have disappointed in my server OS to get repaired
but at least i have to mount my hdd to be able to transfer my data.
 
Old 12-27-2010, 04:27 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Are you using raid ? If not then you don't need md commands.
You have to activate LVM volumes before they can be mounted.
as root :

Code:
vgscan
vgchange -ay
Depending on the results of those commands, you can then mount the volume. Don't mount it on /mnt create a subdirectory like /mnt/rescue then mount the LV on that.

You can use some of the examples from this howto, but this is not a recipe ! Only use these pages as examples of commands relevant to your needs.
http://www.howtoforge.com/linux_lvm

Last edited by smoker; 12-27-2010 at 04:33 AM.
 
Old 12-27-2010, 04:28 AM   #3
tizzef
Member
 
Registered: Jan 2005
Location: Nice, France
Distribution: Ubuntu,RHES, Mandriva, RHAS, AIX 4.3.3, 5.2 & 5.3, Debian,Solaris8/10
Posts: 119

Rep: Reputation: 20
Hi there,

Try something like : 'mount /dev/mapper/VolGroup00-LogVol00 /mnt'

Cheers.
 
Old 12-27-2010, 05:57 AM   #4
afdownload
LQ Newbie
 
Registered: Dec 2010
Posts: 5

Original Poster
Rep: Reputation: 0
dear guys none of these helped me out!

------------------------------------------------------------------------

root@rescue /mnt # mount /dev/mapper/VolGroup00-LogVol00 /mnt/rescue
mount: you must specify the filesystem type
root@rescue /mnt # mount -t ext3 /dev/mapper/VolGroup00-LogVol00 /mnt/rescue
mount: wrong fs type, bad option, bad superblock on /dev/mapper/VolGroup00-LogVol00,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

-----------------------------------------------------------------------

root@rescue ~ # cd /mnt
root@rescue /mnt # mkdir rescue
root@rescue /mnt # vgscan
Reading all physical volumes. This may take a while...
Found volume group "VolGroup00" using metadata type lvm2
root@rescue /mnt # vgchange -ay
2 logical volume(s) in volume group "VolGroup00" now active
root@rescue /mnt # mount /dev/VolGroup00/LogVol00 /mnt/rescue
mount: you must specify the filesystem type
root@rescue /mnt # mount -t ext3 /dev/VolGroup00/LogVol00 /mnt/rescue
mount: wrong fs type, bad option, bad superblock on /dev/mapper/VolGroup00-LogVol00,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

-----------------------------------------------------------------

ny the way I have tried with both ext2 ext3
but none worked out and game the last error
wrong fs type, bad option, bad superblock on /dev/mapper/VolGroup00-LogVol00,
please help me out of this !
 
Old 12-27-2010, 07:42 AM   #5
tizzef
Member
 
Registered: Jan 2005
Location: Nice, France
Distribution: Ubuntu,RHES, Mandriva, RHAS, AIX 4.3.3, 5.2 & 5.3, Debian,Solaris8/10
Posts: 119

Rep: Reputation: 20
Could you check your filesystem ??

fsck /dev/VolGroup00/LogVol00

Let me know

Cheers.
 
1 members found this post helpful.
Old 12-28-2010, 07:30 AM   #6
afdownload
LQ Newbie
 
Registered: Dec 2010
Posts: 5

Original Poster
Rep: Reputation: 0
thank you " tizzef"

you really saved my life "fsck /dev/VolGroup00/LogVol00"
i hope every guy intended to help me have a nice chrismas
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
mount drive that has Linux LVM ufmale Linux - Newbie 1 06-03-2010 08:33 PM
mount multiple lvm to single mount point mplike Linux - Software 3 03-02-2010 04:43 AM
Can’t mount lvm from linux rescue rawand Linux - Server 2 02-21-2010 10:37 PM
Mount Linux LVM LuCiDoLoGiSt Linux - Newbie 3 07-02-2007 03:08 PM

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

All times are GMT -5. The time now is 03:40 PM.

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