View previous topic :: View next topic |
Author |
Message |
PaulBain Apprentice
Joined: 14 Jun 2005 Posts: 159 Location: Coventry, UK
|
Posted: Tue Dec 12, 2006 7:02 pm Post subject: Mounting Linux LVM filesystem in Gentoo |
|
|
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 |
|
|
Sten Tux's lil' helper
Joined: 12 Dec 2006 Posts: 109 Location: Prague, Czechia, European Union
|
Posted: Tue Dec 12, 2006 7:25 pm Post subject: Re: Mounting Linux LVM filesystem in Gentoo |
|
|
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 |
|
|
PaulBain Apprentice
Joined: 14 Jun 2005 Posts: 159 Location: Coventry, UK
|
Posted: Tue Dec 12, 2006 7:47 pm Post subject: |
|
|
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 |
|
|
Sten Tux's lil' helper
Joined: 12 Dec 2006 Posts: 109 Location: Prague, Czechia, European Union
|
Posted: Thu Dec 14, 2006 3:35 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|