knoppix を使う。( 2 / x )


屋形船



※ 写真と本文は関係ありません。


1 / x からつづき。


接続した LVM の確認 → pvscan, vgscan, lvscan した。

root@Microknoppix:~# pvscan
/dev/hdc: open failed: Read-only file system
Attempt to close device ‘/dev/hdc’ which is not open.
PV /dev/hda2 VG VolGroup00 lvm2 [74.41 GB / 0 free]

Total: 1 [74.41 GB] / in use: 1 [74.41 GB] / in no VG: 0 [0 ]

/dev/hda2 が PV ( Physical Volume ) として認識されている。( /dev/hdc は CD ドライブなので Fail )


root@Microknoppix:~# vgscan
Reading all physical volumes. This may take a while…
/dev/hdc: open failed: Read-only file system
Attempt to close device ‘/dev/hdc’ which is not open.
Found volume group “VolGroup00” using metadata type lvm2

VG ( volume group ) “VolGroup00” が認識されてる。


root@Microknoppix:~# lvscan

/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel device-mapper driver.
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel device-mapper driver.
Incompatible libdevmapper 1.02.27 (2008-06-25)(compat) and kernel driver

inactive ‘/dev/VolGroup00/LogVol00’ [72.41 GB] inherit
inactive ‘/dev/VolGroup00/LogVol01’ [2.00 GB] inherit

lvscan でエラーが出ている。『 inactive 』
/dev/VolGroup00/LogVol00 が今回縮小したい LV ( Logical Volume )


root@Microknoppix:~# vgchange -ay VolGroup00
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel device-mapper driver.
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?

Failure to communicate with kernel device-mapper driver.
Incompatible libdevmapper 1.02.27 (2008-06-25)(compat) and kernel driver

0 logical volume(s) in volume group “VolGroup00” now active

# vgchange -ay VolGroup00 で VolGroup00 有効にしようとしたけどエラー。

-a, –available [e|l]{y|n}
 Controls the availability of the logical volumes in the volume
 group for input/output. In other words, makes the logical vol-
 umes known/unknown to the kernel.


kernel device-mapper driver が読み込めてないようなので。dm_mod をmodprobe。( 今回は読み込んでないけど、dm_crypt, dm_mirror, dm_snapshot あたりも必要であれば。 )

root@Microknoppix:~# modprobe dm-mod

root@Microknoppix:~# vgchange -ay VolGroup00
2 logical volume(s) in volume group “VolGroup00” now active

root@Microknoppix:~# lvscan
ACTIVE ‘/dev/VolGroup00/LogVol00’ [72.41 GB] inherit
ACTIVE ‘/dev/VolGroup00/LogVol01’ [2.00 GB] inherit

root@Microknoppix:~# ls -l /dev/VolGroup00/LogVol00
lrwxrwxrwx 1 root root 31 2009-07-14 11:16 /dev/VolGroup00/LogVol00 -> /dev/mapper/VolGroup00-LogVol00

有効にできた。『 Active 』つづく