View previous topic :: View next topic |
Author |
Message |
drunkahol n00b
Joined: 26 Jul 2005 Posts: 19
|
Posted: Wed Jul 27, 2005 9:27 am Post subject: Mounting LVM2 from other distro install |
|
|
Hi
I've managed to get my Gentoo install working again now, and I'm straight off on the next kamikaze mission.
My machine has a main installation of Fedora Core 4 using LVM2 partitions. The Gentoo partition is a sandbox install at the moment, until I decide I like it enough that I switch over for good.
What I'd like to do is mount the LVM2 partitions from my Gentoo install, as that's where all my music sits. Don't tell me I put in all that effort getting ALSA working for no reason.
I can "see" the partitions from my Gentoo boot:
Code: | desktop ~ # vgscan
Reading all physical volumes. This may take a while...
Found volume group "vg_root" using metadata type lvm2
desktop ~ # lvscan
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel device-mapper driver.
inactive '/dev/vg_root/lv_root' [82.16 GB] inherit
inactive '/dev/vg_root/lv_swap' [1.94 GB] inherit
desktop ~ # vgdisplay
--- Volume group ---
VG Name vg_root
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel device-mapper driver.
Open LV 0
Max PV 0
Cur PV 2
Act PV 2
VG Size 84.16 GB
PE Size 32.00 MB
Total PE 2693
Alloc PE / Size 2691 / 84.09 GB
Free PE / Size 2 / 64.00 MB
VG UUID d1xfPj-T7hu-26bC-HwtU-7snV-Cs0P-mbzXGh
desktop ~ # lvdisplay
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel device-mapper driver.
--- Logical volume ---
LV Name /dev/vg_root/lv_root
VG Name vg_root
LV UUID lXWwpY-KZ4W-DRsI-YeTo-VcKb-dvxO-fI9ONz
LV Write Access read/write
LV Status NOT available
LV Size 82.16 GB
Current LE 2629
Segments 2
Allocation inherit
Read ahead sectors 0
--- Logical volume ---
LV Name /dev/vg_root/lv_swap
VG Name vg_root
LV UUID vtFYGu-qgao-yyaS-3RLb-0hsV-3UN9-CPZtHe
LV Write Access read/write
LV Status NOT available
LV Size 1.94 GB
Current LE 62
Segments 1
Allocation inherit
Read ahead sectors 0
desktop ~ #
|
The message about device-mapper bothers me. I know I've installed it, because . . .
Code: | desktop ~ # emerge --search device-mapper
Searching...
[ Results for search key : device-mapper ]
[ Applications found : 1 ]
* sys-fs/device-mapper
Latest version available: 1.01.00
Latest version installed: 1.01.00
Size of downloaded files: 854 kB
Homepage: http://sources.redhat.com/dm/
Description: Device mapper ioctl library for use with LVM2 utilities.
License: GPL-2 |
but I don't have the corresponding entries in /dev/ for /dev/vg_root or the logical volumes.
If this is going to be a complicated task, then I might just burn the .ogg's to a DVD and play them from there. Anyone able to assist?
Thanks in advance
Duncan |
|
Back to top |
|
|
widan Veteran
Joined: 07 Jun 2005 Posts: 1512 Location: Paris, France
|
Posted: Wed Jul 27, 2005 12:36 pm Post subject: |
|
|
First, you need device mapper support in the kernel (the device-mapper package is the userspace library, which you already have). In menuconfig, it is in:
Code: | Device Drivers --->
Multi-device support (RAID and LVM) --->
[*] Multiple devices driver support (RAID and LVM)
<*> Device mapper support |
(You can build it as a module if you want, you will need to "modprobe dm-mod" in that case.)
Then, run those commands, and you should see your LVM partitions:
Code: | (if device-mapper built as a module)
# modprobe dm-mod
# vgscan
# vgchange -a y |
|
|
Back to top |
|
|
drunkahol n00b
Joined: 26 Jul 2005 Posts: 19
|
Posted: Wed Jul 27, 2005 3:04 pm Post subject: |
|
|
Thanks
I'll give it a go and report back. I'd hoped that I'd recompiled the kernel for the last time, but there you go!
Cheers
Duncan |
|
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
|
|