Error in "lvcreate" in LVM2
Hi,
I am using mandrake 10.2 , and have installed 1)device-mapper.1.01.05.tgz
2)LVM2.2.01.15.tgz
and have untar the patches in "/usr/src/linux-2.6.11-6mdk"
I have succesfully created physical volume using : pvcreate
then created volume group using : vgcreate
[root@localhost ~]# vgdisplay
--- Volume group ---
VG Name volume1
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 1
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 2
Act PV 2
VG Size 6.35 GB
PE Size 4.00 MB
Total PE 1626
Alloc PE / Size 0 / 0
Free PE / Size 1626 / 6.35 GB
VG UUID zZO4ie-mfY7-st4p-G6ah-tnyf-S5Nt-7AWkzu
but while creating logical volumes from volume group i get following messages :
[root@localhost ~]# lvcreate -L1500 -nshash volume1
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel device-mapper driver.
striped: Required device-mapper target(s) not detected in your kernel
lvcreate: Create a logical volume
lvcreate
[-A|--autobackup {y|n}]
[--addtag Tag]
[--alloc AllocationPolicy]
[-C|--contiguous {y|n}]
[-d|--debug]
[-h|-?|--help]
[-i|--stripes Stripes [-I|--stripesize StripeSize]]
{-l|--extents LogicalExtentsNumber |
-L|--size LogicalVolumeSize[kKmMgGtT]}
[-M|--persistent {y|n}] [--major major] [--minor minor]
[-m|--mirrors Mirrors]
[-n|--name LogicalVolumeName]
[-p|--permission {r|rw}]
[-r|--readahead ReadAheadSectors]
[-R|--regionsize MirrorLogRegionSize]
[-t|--test]
[--type VolumeType]
[-v|--verbose]
[-Z|--zero {y|n}]
[--version]
VolumeGroupName [PhysicalVolumePath...] lvcreate -s|--snapshot
[-c|--chunksize]
[-A|--autobackup {y|n}]
[--addtag Tag]
[--alloc AllocationPolicy]
[-C|--contiguous {y|n}]
[-d|--debug]
[-h|-?|--help]
[-i|--stripes Stripes [-I|--stripesize StripeSize]]
{-l|--extents LogicalExtentsNumber |
-L|--size LogicalVolumeSize[kKmMgGtT]}
[-M|--persistent {y|n}] [--major major] [--minor minor]
[-n|--name LogicalVolumeName]
[-p|--permission {r|rw}]
[-r|--readahead ReadAheadSectors]
[-t|--test]
[-v|--verbose]
[--version]
OriginalLogicalVolume[Path] [PhysicalVolumePath...]------------------------------------------------------------------------------------------------
[root@localhost ~]# lvcreate -i2 -I8 -l100 -nanothervolume1 volume1
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel device-mapper driver.
striped: Required device-mapper target(s) not detected in your kernel
lvcreate: Create a logical volume
lvcreate
[-A|--autobackup {y|n}]
[--addtag Tag]
[--alloc AllocationPolicy]
[-C|--contiguous {y|n}]
[-d|--debug]
[-h|-?|--help]
[-i|--stripes Stripes [-I|--stripesize StripeSize]]
{-l|--extents LogicalExtentsNumber |
-L|--size LogicalVolumeSize[kKmMgGtT]}
[-M|--persistent {y|n}] [--major major] [--minor minor]
[-m|--mirrors Mirrors]
[-n|--name LogicalVolumeName]
[-p|--permission {r|rw}]
[-r|--readahead ReadAheadSectors]
[-R|--regionsize MirrorLogRegionSize]
[-t|--test]
[--type VolumeType]
[-v|--verbose]
[-Z|--zero {y|n}]
[--version]
VolumeGroupName [PhysicalVolumePath...] lvcreate -s|--snapshot
[-c|--chunksize]
[-A|--autobackup {y|n}]
[--addtag Tag]
[--alloc AllocationPolicy]
[-C|--contiguous {y|n}]
[-d|--debug]
[-h|-?|--help]
[-i|--stripes Stripes [-I|--stripesize StripeSize]]
{-l|--extents LogicalExtentsNumber |
-L|--size LogicalVolumeSize[kKmMgGtT]}
[-M|--persistent {y|n}] [--major major] [--minor minor]
[-n|--name LogicalVolumeName]
[-p|--permission {r|rw}]
[-r|--readahead ReadAheadSectors]
[-t|--test]
[-v|--verbose]
[--version]
OriginalLogicalVolume[Path] [PhysicalVolumePath...] please help me ....
what is the problem here?
-Shashank K.
PhD C.S. IIT POWOI INDIA
---------------------------------
Yahoo! DSL Something to write home about. Just $16.99/mo. or less
Quoted 4 lines · natasha patil
then created volume group using : vgcreate
/proc/misc: No entry for device-mapper found Is device-mapper driver missing from kernel? Failure to communicate with kernel device-mapper driver.
I'm not familiar with Mandrake at all, but it looks like the device-mapper is neither compiled into your kernel or loaded as a module. Try "modprobe dm-mod", which should load the module if it exists on your system.
(I'd expect it to be built as a module on most distros' stock kernels -- if you've built your own kernel then you need to make sure that you have included the device mapper either in the main kernel or as a module -- the option is under "Device drivers" -> "Multi-device support (RAID and LVM)" -> "Device mapper support".)
Hope this helps,
Zak.
Quoted 6 lines · natasha patil
Hi,
I am using mandrake 10.2 , and have installed 1)device-mapper.1.01.05.tgz
2)LVM2.2.01.15.tgz
and have untar the patches in "/usr/src/linux-2.6.11-6mdk"
is there any particular reason you need to rebuild lvm from source and not use the packages provided for your distribution?
L.
Signature · 6 lines
Luca Berra -- [email protected] Communication Media & Services S.r.l. /"\ \ / ASCII RIBBON CAMPAIGN X AGAINST HTML MAIL / \