Cara Mengatasi LVM “Inactive” di Linux
Berikut cara cara untuk mengatasi partisi LVM “inactive”
- Cek untuk melihat partisi lvm yang inactive dengan perintah #lvscan
# lvscan
inactive ‘/dev/adsys/var’ [43.16 GiB] inherit
inactive ‘/dev/adsys/swap’ [8.00 GiB] inherit
ACTIVE ‘/dev/adsys/root’ [8.00 GiB] inherit
inactive ‘/dev/adsys/tmp’ [8.00 GiB] inherit - Cek menggunakan perintah #vgscan
# vgscan
Reading all physical volumes. This may take a while…
Found volume group “adsys” using metadata type lvm2 - Cek menggunakan perintah # pvscan
#pvscan
PV /dev/block/104:2 VG adsys lvm2 [67.83 GiB / 592.00 MiB free]
Total: 1 [67.83 GiB] / in use: 1 [67.83 GiB] / in no VG: 0 [0 ] - Lalu ketik perintah #df -hP
# df -hP
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/adsys-root 7.9G 534M 7.0G 7% /
tmpfs 7.9G 0 7.9G 0% /lib/init/rw
udev 7.9G 96K 7.9G 1% /dev
tmpfs 7.9G 4.0K 7.9G 1% /dev/shm - Lalu kita active kan semua untuk volume group “adsys” dengan perintah
#vgchange -a y adsys
4 logical volume(s) in volume group “adsys” now active# lvscan
ACTIVE ‘/dev/adsys/var’ [43.16 GiB] inherit
ACTIVE ‘/dev/adsys/swap’ [8.00 GiB] inherit
ACTIVE ‘/dev/adsys/root’ [8.00 GiB] inherit
ACTIVE ‘/dev/adsys/tmp’ [8.00 GiB] inherit
Di tulis oleh: Nanda Anubis