[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[linux-lvm] Switch between mirrored master/slave devices



I have a logical volume mirrored between /dev/mapper/mpath0 and /dev/mapper/mpath3:
# lvs -a -o +devices
  LV                   VG       Attr     LSize   Pool Origin Data%  Move Log Copy%  Convert Devices                                   
  vm01-disk            VMMIRROR mwi-aom-   7.00g                             100.00         vm01-disk_mimage_0(0),vm01-disk_mimage_1(0)
  [vm01-disk_mimage_0] VMMIRROR iwi-aom-   7.00g                                            /dev/mapper/mpath3(0)                     
  [vm01-disk_mimage_1] VMMIRROR iwi-aom-   7.00g                                            /dev/mapper/mpath0(0)

The master device (/dev/mapper/mpath0) failed and i repair it without any problem, but now my master device is /dev/mapper/mpath3.
I want to change my master device back to /dev/mapper/mpath0 again. How can i do this?
 
DacioMF
Analista de Redes e Infraestrutura



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]