LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 11-15-2008, 03:12 AM   #1
gelex
LQ Newbie
 
Registered: Nov 2008
Posts: 7

Rep: Reputation: 0
Unhappy Mounting LVM filesystem


Hi everybody, this is the problem: I've installed Fedora 9 on my pendrive and I'm trying to copy the files of my forward installation of Fedora, which is in the hd. At the shell, I can't mount the filesystem of the previous installation.
This is the output

[root@localhost ~]# fdisk -l /dev/sdb4
Disco /dev/sdb4: 41.9 GB, 41948928000 byte
255 heads, 63 sectors/track, 5100 cylinders
Units = cilindri of 16065 * 512 = 8225280 bytes
Disk identifier: 0xfffcd375
Il disco /dev/sdb4 non contiene una tabella delle partizioni valida
(Disk /dev/sdb4 doesn't contain a valid partition table)

[root@localhost michele]# mount /dev/sdb4 /mnt/linux
mount: si deve specificare il tipo di filesystem
(you have to specify the filesystem)
[root@localhost michele]# mount -t ext3 /dev/sdb4 /mnt/linux
mount: il device speciale /dev/sdb4 non esiste
(special device /dev/sdb4 doesn't exist)

Any idea?
 
Old 11-15-2008, 03:30 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,470
Blog Entries: 54

Rep: Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901
With LVM you can use 'pvscan' and 'vgscan' (or 'disktype' if available) to get specs, then 'vgchange -ay' to enable the LVM. After that running 'dmsetup status' or lvdisplay' should show which LVM is available, after which you can mount the device as you would any partition.
 
Old 11-15-2008, 03:43 AM   #3
gelex
LQ Newbie
 
Registered: Nov 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Just another output, to better understand my situation

[root@localhost ~]# fdisk -l

Disco /dev/sda: 4126 MB, 4126670848 byte
255 heads, 63 sectors/track, 501 cylinders
Units = cilindri of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000132f4

Dispositivo Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 501 3823470 8e Linux LVM

Disco /dev/dm-0: 3556 MB, 3556769792 byte
255 heads, 63 sectors/track, 432 cylinders
Units = cilindri of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Il disco /dev/dm-0 non contiene una tabella delle partizioni valida

Disco /dev/dm-1: 301 MB, 301989888 byte
255 heads, 63 sectors/track, 36 cylinders
Units = cilindri of 16065 * 512 = 8225280 bytes
Disk identifier: 0x30307800

Il disco /dev/dm-1 non contiene una tabella delle partizioni valida

Disco /dev/sdb: 160.0 GB, 160041885696 byte

255 heads, 63 sectors/track, 19457 cylinders
Units = cilindri of 16065 * 512 = 8225280 bytes
Disk identifier: 0xd24d17c7

Dispositivo Boot Start End Blocks Id System
/dev/sdb1 1 1530 12288000 27 Sconosciuto
/dev/sdb2 * 1530 13319 94689280 7 HPFS/NTFS
/dev/sdb3 14343 14357 120487+ 83 Linux
/dev/sdb4 14358 19457 40965750 8e Linux LVM

Who can help me step by step?
 
Old 11-15-2008, 04:42 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,470
Blog Entries: 54

Rep: Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901
Which commands in my previous post didn't give you output to post and stuff to mount?
 
Old 11-15-2008, 06:52 AM   #5
gelex
LQ Newbie
 
Registered: Nov 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks unSpawn 4 your help.
The output is this
[root@localhost ~]# pvscan
PV /dev/sda2 VG VolGroup00 lvm2 [3,62 GB / 32,00 MB free]
Total: 1 [3,62 GB] / in use: 1 [3,62 GB] / in no VG: 0 [0 ]
[root@localhost ~]# vgscan
Reading all physical volumes. This may take a while...
Found volume group "VolGroup00" using metadata type lvm2
[root@localhost ~]# vgchange -ay /dev/sdb4
Volume group "sdb4" not found
[root@localhost ~]# vgchange -ay /dev/sdb4/VolGroup00
Invalid volume group name: sdb4/VolGroup00
[root@localhost ~]# lvdisplay
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol00
VG Name VolGroup00
LV UUID P2MPFy-0402-InGZ-tuvA-whrf-LM4N-ZEjlf3
LV Write Access read/write
LV Status available
# open 1
LV Size 3,31 GB
Current LE 106
Segments 1
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 OsOpfV-lDqp-jRiG-1U1N-vJQU-0cp2-bnFy86
LV Write Access read/write
LV Status available
# open 1
LV Size 288,00 MB
Current LE 9
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1

As it seems, VolGroup00 in sdb4 is not seen as a LinuxLVM volume
 
Old 11-15-2008, 07:46 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,470
Blog Entries: 54

Rep: Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901
Quote:
Originally Posted by gelex View Post
As it seems, VolGroup00 in sdb4 is not seen as a LinuxLVM volume
As far as I know "VolGroup00" is the default name of the first installed LVM, so that'll be the case each time you install an OS with LVM. I just can't see how to "trick" vgchange's scope to only look at one physical device without disconnecting /dev/sda or using virtualisation...
 
Old 11-15-2008, 11:55 AM   #7
ritam_bkp
Member
 
Registered: Sep 2008
Location: Calcutta,India
Distribution: Fedora 11, OpenSUSE 11.0
Posts: 116

Rep: Reputation: 17
this would be helpful

http://tldp.org/HOWTO/LVM-HOWTO/
 
Old 11-15-2008, 02:19 PM   #8
gelex
LQ Newbie
 
Registered: Nov 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks, but it's usless to me.
 
Old 11-16-2008, 09:05 AM   #9
gelex
LQ Newbie
 
Registered: Nov 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Help, the disk is drowning!
 
Old 11-16-2008, 11:59 AM   #10
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,470
Blog Entries: 54

Rep: Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901
Quote:
Originally Posted by gelex View Post
Thanks, but it's usless to me.
Actually it isn't, but you'd have to read it. Having 2 LVM's with the same VG specs won't show the second one if scanning finds the first one. If you could boot a Live CD maybe you could use it in rescue mode to 'vgrename' the VG name, 'pvchange' the devices UUID's and 'lvrename' the LV name. I can not be held responsable for you crashing, breaking, erasing, nuking or erroneously or wilfully malfunctioning otherwise your setup so do make backups or find a way to transfer to an intermediate FS both understand or boot the other distro using virtualisation.
 
Old 12-24-2008, 08:28 AM   #11
neocontrol
Member
 
Registered: Jul 2005
Posts: 273

Rep: Reputation: 31
Hi,

I think I have a very similar problem like this, and was wondering if someone can clarify this for me....


So I had a 250gb drive which had a lot of things installed on it. I didn't want to lose it, but I also wanted to install a new OS. So I pulled the disk, replaced it with a 120gb drive installed a new OS.

Now I'm trying to mount the old 250gb drive.

The current drive is a LVM as well is the old drive.

So from this post, my understanding is that if you an VolGroup00 on both drives, you will not be able to mount it.

Here's the info.

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

fdisk -l

Disk /dev/hda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 14593 117113850 8e Linux LVM

Disk /dev/sda: 249.9 GB, 249998918144 bytes
255 heads, 63 sectors/track, 30393 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

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


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

pvscan
PV /dev/sda2 VG VolGroup00 lvm2 [232.72 GB / 0 free]
PV /dev/hda2 VG VolGroup00 lvm2 [111.69 GB / 0 free]
Total: 2 [344.41 GB] / in use: 2 [344.41 GB] / in no VG: 0 [0 ]
 
  


Reply

Tags
lvm


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
base filesystem on LVM woet12 Linux - Hardware 4 07-01-2008 03:26 AM
Filesystem and LVM Gymnastics ReachingFarr Linux - General 1 12-26-2007 08:05 AM
Resizing a root LVM filesystem eigoteacher Linux - Newbie 7 08-23-2007 09:36 AM
Unify 2 filesystem with LVM oswaldospe Linux - Enterprise 0 09-18-2006 01:15 PM
bootsector location with lvm filesystem flv7a Linux - General 1 11-07-2003 10:53 AM


All times are GMT -5. The time now is 08:04 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration