Kadang kala kita perlu untuk mounting / membaca hard disk satu komputer ke komputer linux yang lain. Misalnya , mengambil data karena akan ganti hard disk. Secara kebetulan sistem filennya adalah LVM. Proses mounting sedikit berbeda dengan file sistem EXT2 / EXT3.
Langsung saja, berikut ini langkah-langkah yang kita perlukan untuk mounting LVM :
1. Lakukan semua proses ini sebagai root. Pertama, menentukan hard disk yang akan dimounting ada dimana, /dev/hdx ,… dengan menggunakan perintah fdisk -l
[root@zhuro suroto]# /sbin/fdisk -l
Disk /dev/sda: 80.0 GB, 80026361856 bytes 255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xd6e7d6e7
Device Boot Start End Blocks Id System
/dev/sda1 * 1 764 6136798+ 83 Linux
/dev/sda2 765 895 1052257+ 82 Linux swap / Solaris
/dev/sda3 896 9729 70959105 83 Linux
Disk /dev/sdb: 40.0 GB, 40020664320 bytes 255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xabe1abe1
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 13 104391 83 Linux
/dev/sdb2 14 4865 38973690 8e Linux LVM
2. Deteksi keberadaan Volume Group, dengan perintah pvscan.
[root@zhuro suroto]# /sbin/pvscan
File descriptor 5 left open
File descriptor 7 left open
PV /dev/sdb2 VG VolGroup00 lvm2 [37.16 GB / 32.00 MB free]
Total: 1 [37.16 GB] / in use: 1 [37.16 GB] / in no VG: 0 [0 ]
3. Coba lakukan mounting, dengan menggunakan perintah mount
[root@zhuro suroto]# mount /dev/VolGroup00/LogVol00 /media/sdb2
mount: special device /dev/VolGroup00/LogVol00 does not exist
ternyata device dianggap tidak ada. Ini karena volume yang ada belum aktif. Untuk itu lakukan perintah vgchange -ay
[root@zhuro suroto]# /sbin/vgchange -ay
File descriptor 5 left open
File descriptor 7 left open
2 logical volume(s) in volume group “VolGroup00″ now active
4. Ulangi lagi untuk perintah mount
[root@zhuro suroto]# mount /dev/VolGroup00/LogVol00 /media/sdb2
kalau masih ada error seperti ini:
mount: special device /dev/VolGroup00/LogVol00 does not exist
Berarti mount gagal , sebaliknya kalau tidak melihat apa-apa artinya sukses mount. Selanjutnya tinggal buka direktori /media/sdb2.
Filed under: Operating System | Tagged: Mount LVM | Leave a Comment »



