Now going to mirror the logical volume:
[root@test ~]# lvconvert -m1 /dev/oracle/oracle_lv
oracle/oracle_lv: Converted: 0.0%
oracle/oracle_lv: Converted: 100.0%
[root@test ~]#
[root@test ~]# lvdisplay -m /dev/oracle/oracle_lv
--- Logical volume ---
LV Name /dev/oracle/oracle_lv
VG Name oracle
LV UUID O9W6go-l2AC-0XP9-GvLw-tL2C-bjeI-YoWmDG
LV Write Access read/write
LV Status available
# open 1
LV Size 1.00 GiB
Current LE 256
Mirrored volumes 2
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Segments ---
Logical extent 0 to 255:
Type mirror
Mirrors 2
Mirror size 256
Mirror log volume oracle_lv_mlog
Mirror region size 512.00 KiB
Mirror original:
Logical volume oracle_lv_mimage_0
Logical extents 0 to 255
Mirror destinations:
Logical volume oracle_lv_mimage_1
Logical extents 0 to 255
[root@test ~]#
[root@test ~]# lvconvert -m1 /dev/oracle/oracle_lv
oracle/oracle_lv: Converted: 0.0%
oracle/oracle_lv: Converted: 100.0%
[root@test ~]#
[root@test ~]# lvdisplay -m /dev/oracle/oracle_lv
--- Logical volume ---
LV Name /dev/oracle/oracle_lv
VG Name oracle
LV UUID O9W6go-l2AC-0XP9-GvLw-tL2C-bjeI-YoWmDG
LV Write Access read/write
LV Status available
# open 1
LV Size 1.00 GiB
Current LE 256
Mirrored volumes 2
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Segments ---
Logical extent 0 to 255:
Type mirror
Mirrors 2
Mirror size 256
Mirror log volume oracle_lv_mlog
Mirror region size 512.00 KiB
Mirror original:
Logical volume oracle_lv_mimage_0
Logical extents 0 to 255
Mirror destinations:
Logical volume oracle_lv_mimage_1
Logical extents 0 to 255
[root@test ~]#
[root@test ~]# pvs -o +lv_name
PV VG Fmt Attr PSize PFree LV
/dev/sdb oracle lvm2 a-- 5.00g 4.00g [oracle_lv_mimage_1]
/dev/sdb oracle lvm2 a-- 5.00g 4.00g
/dev/sdc oracle lvm2 a-- 5.00g 3.99g [oracle_lv_mimage_0]
/dev/sdc oracle lvm2 a-- 5.00g 3.99g [oracle_lv_mlog]
/dev/sdc oracle lvm2 a-- 5.00g 3.99g
[root@test ~]#
No comments:
Post a Comment