Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mounting Linux LVM filesystem in Gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
PaulBain
Apprentice
Apprentice


Joined: 14 Jun 2005
Posts: 159
Location: Coventry, UK

PostPosted: Tue Dec 12, 2006 7:02 pm    Post subject: Mounting Linux LVM filesystem in Gentoo Reply with quote

Hi guys,

I am trying to mount a linux LVM filesystem in gentoo. I installed Fedora because I have to use it at work, so decided to play around with it at home, however I want to be able to access that file system from my gentoo installation.

I couldn't how to mount a Linux LVM in Gentoo.

I have two hard drives, /dev/hda and /dev/hdb of which hdb is the fedora distro.
/dev/hdb2 is the Linux LVM file system which I found out by fdisk.

Any help would be greatly appreciated.

Paul
Back to top
View user's profile Send private message
Sten
Tux's lil' helper
Tux's lil' helper


Joined: 12 Dec 2006
Posts: 109
Location: Prague, Czechia, European Union

PostPosted: Tue Dec 12, 2006 7:25 pm    Post subject: Re: Mounting Linux LVM filesystem in Gentoo Reply with quote

PaulBain wrote:
Hi guys,

I am trying to mount a linux LVM filesystem in gentoo. I installed Fedora because I have to use it at work, so decided to play around with it at home, however I want to be able to access that file system from my gentoo installation.

I couldn't how to mount a Linux LVM in Gentoo.

I have two hard drives, /dev/hda and /dev/hdb of which hdb is the fedora distro.
/dev/hdb2 is the Linux LVM file system which I found out by fdisk.

Any help would be greatly appreciated.

Paul


Execute 'lvmdiskscan' and mount it from /dev/mapper.
_________________
You don’t understand, I break things like this!

xor rsi,rsi
lodsb
Segmentation fault
Back to top
View user's profile Send private message
PaulBain
Apprentice
Apprentice


Joined: 14 Jun 2005
Posts: 159
Location: Coventry, UK

PostPosted: Tue Dec 12, 2006 7:47 pm    Post subject: Reply with quote

Thanks, I think I'm heading in the right direction now but I'm a little stuck.
I ran lvmdiskscan which produced the following, however there is not /dev/mapper in /dev/.

Thanks

Paul

Code:

pmb paul # lvmdiskscan
File descriptor 4 left open
File descriptor 5 left open
File descriptor 10 left open
  /dev/hda1 [       70.57 MB]
  /dev/hda2 [      980.53 MB]
  /dev/hda3 [       75.30 GB]
  /dev/hdb1 [      101.94 MB]
  /dev/hdb2 [       74.43 GB] LVM physical volume
  0 disks
  4 partitions
  0 LVM physical volume whole disks
  1 LVM physical volume
Back to top
View user's profile Send private message
Sten
Tux's lil' helper
Tux's lil' helper


Joined: 12 Dec 2006
Posts: 109
Location: Prague, Czechia, European Union

PostPosted: Thu Dec 14, 2006 3:35 pm    Post subject: Reply with quote

lvmdiskscan only scans for the drives, it does not activate them.

You’ll need name of the VolumeGroup. You can get it by invoking:
Code:
pvdisplay /dev/hdb2

(look for line beginning with VG)

To activate it invoke
Code:
vgchange -a y <VG_name>

and all the devices should appear in /dev.
_________________
You don’t understand, I break things like this!

xor rsi,rsi
lodsb
Segmentation fault
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum