Hi!
A kovetkezo LVM problemam tamadt CentOS 5.8 alatt.
A kovetkezo a felallas:
Fel lett huzva egy virtual machine, aztan utolag kitalaltak, hogy adjunk meg hozza ket logical volume-t, egy 20 G-set meg egy 40G-set, a hard disket megnoveltem a vm alatt, a pv-t megnoveltem.
Az LVM pedig ezt adja:
lvm> lvcreate -l 20 -n data1 VolGroup00
device-mapper: reload ioctl failed: Érvénytelen paraméter
Failed to activate new LV.
Koszi,
FBK
- 1950 megtekintés
Hozzászólások
-L 20G
- A hozzászóláshoz be kell jelentkezni
lvm> lvcreate -L 20G -n data1 VolGroup00
device-mapper: reload ioctl failed: Érvénytelen paraméter
Failed to activate new LV.
:(
--
FBK
- A hozzászóláshoz be kell jelentkezni
-L 100% FREE -vel próbáld meg bár nem hiszem, hogy ez lenne a baja.
De egy ilyet találtam:
If you get device-mapper: reload ioctl failed: Invalid argument
.. and you recently updated kernel/lvm/device-mapper Check for versions (and update all components)
kernel
logokban nem ír többet?
- A hozzászóláshoz be kell jelentkezni
Milyen kernel van fenn?
https://www.centos.org/modules/newbb/viewtopic.php?topic_id=13461&forum…
"
Edit VM settings. Increase HDD size.
If root volume is on LVM, boot to redhat ISO & select rescue mode, select 'skip' when mounting system partition. Otherwise proceed.
fdisk, remove partition #2, create new partition, change type to 8e, write and exit
fdisk -l /dev/sda // Should show two boot devices, and the start and stop cylinder for each. Also note the system id (mine was 8e).
fdisk /dev/sda // Starts fdisk on /dev/sda
d // delete
2 // partition 2
n // new partition
p // create primary type
2 // partition 2
// Use default start and stop cylinder
t // Change the system id
2 // partition 2
8e // Type is Linux LVM
w // Write and exit
lvm pvresize /dev/sda2 ?- this resets the size of the physical volume to capacity
lvm pvdisplay ?- make a note of the free PE (physical extents)
lvm vgchange -a y ?- activate logical volumes so we can resize them
lvm lvdisplay ?-- shows the logical volumes
e2fsck -f /dev/VolGroup00/LogVol00
lvm lvextend -l +extents volumegroupname
extents should be the Free PE from the lvm pfdisplay above
volumegroupname is /dev/VolGroup00/LogVol00
So full command I used was:
lvm lvextend -l +160 /dev/VolGroup00/LogVol00
resize2fs /dev/VolGroup00/LogVol00
"
- A hozzászóláshoz be kell jelentkezni
akkor yum update
- A hozzászóláshoz be kell jelentkezni