Pertanyaan :Bagaimana cara menghapus Perangkat Multipath setelah Membuka Pemetaan LUN dari Server?
Misalnya "mpath4" pada output di bawah ini tidak digunakan dan perlu dihapus.
# multipath -ll sda: checker msg is "tur checker reports path is down" sdd: checker msg is "tur checker reports path is down" 1_oracle_index ( Unique WWID ) dm-10 HP,MSA2012fc [size=1.4T][features=1 queue_if_no_path][hwhandler=0][rw] \_ round-robin 0 [prio=0][active] \_ 0:0:1:13 sdc 8:32 [active][ready] \_ 1:0:1:13 sdf 8:80 [active][ready] 1_oracle_data ( Unique WWID ) dm-9 HP,MSA2012fc [size=1.4T][features=1 queue_if_no_path][hwhandler=0][rw] \_ round-robin 0 [prio=0][active] \_ 0:0:1:12 sdb 8:16 [active][ready] \_ 1:0:1:12 sde 8:64 [active][ready] mpath4 ( Unique WWID ) dm-8 HP,MSA2012fc [size=1.0G][features=0][hwhandler=0][rw] \_ round-robin 0 [prio=0][enabled] \_ 0:0:1:10 sda 8:0 [failed][faulty] \_ 1:0:1:10 sdd 8:48 [failed][faulty]
Ikuti langkah-langkah yang diuraikan di bawah ini untuk menghapus perangkat yang gagal/rusak dari multipath.
1. Siram perangkat multipath “mpath4” atau wwid jika berbeda dengan alias. dalam contoh ini alias adalah "mpath4". Gunakan “-f ” untuk menghapus peta multipath.
# multipath -f mpath4
2. Jalankan kembali perintah multipath untuk mengonfirmasi.
# multipath -ll sda: checker msg is "tur checker reports path is down" sdd: checker msg is "tur checker reports path is down" 1_oracle_index ( Unique WWID ) dm-10 HP,MSA2012fc [size=1.4T][features=1 queue_if_no_path][hwhandler=0][rw] \_ round-robin 0 [prio=0][active] \_ 0:0:1:13 sdc 8:32 [active][ready] \_ 1:0:1:13 sdf 8:80 [active][ready] 1_oracle_data ( Unique WWID ) dm-9 HP,MSA2012fc [size=1.4T][features=1 queue_if_no_path][hwhandler=0][rw] \_ round-robin 0 [prio=0][active] \_ 0:0:1:12 sdb 8:16 [active][ready] \_ 1:0:1:12 sde 8:64 [active][ready]
Seperti yang terlihat dari output di atas, perangkat multipath mpath4 sekarang dihapus dari server.
Cara Memasang Gambar disk Virtual Qcow2 Tamu yang berisi LVM di Mesin Host KVM
Cara menonaktifkan "sudo su" untuk pengguna di file konfigurasi sudoers