Mirroring an existing logical volume

Published: 28 January 2020
on channel: lecture snippets
3,174
47

This video is part of a course titled Linux LVM Fundamentals using Ubuntu 18.04. Here is a link to the course: https://dev9.us/course/linux-lvm-fund...

Video objectives:
Remove unused existing logical volumes
Create a logical volume that uses all available extents on physical volume
Format and mount a logical volume, then create sample data
Convert a linear logical volume with no available extents to a mirrored volume
Convert a mirrored logical volume to a linear logical volume
Create a logical volume with an unused extent for RAID conversion

Commands used:
lvs
lvremove mydata-vg/volume1-lv
lvcreate -l 100%FREE -n volume1-lv mydata-vg /dev/sdb
mkfs.ext4 /dev/mydata-vg/volume1-lv
mount /dev/mydata-vg/volume1-lv /mnt/storage1
dd if=/dev/urandom of=file1 bs=1M count=5
lvconvert -m1 mydata-vg/volume1-lv /dev/sdc
vgdisplay
lvconvert -m1 --type mirror --corelog mydata-vg/volume1-lv /dev/sdc
lsblk -fs
lvconvert -m0 mydata-vg/volume1-lv
lvconvert -m1 --type mirror --mirrorlog disk mydata-vg/volume1-lv
lvconvert -m0 mydata-vg/volume1-lv /dev/sdb
umount /mnt/storage1
lvremove mydata-vg/volume1-lv
pvs
lvcreate -L 1016M -n volume1-lv mydata-vg /dev/sdb
lvconvert -m1 mydata-vg/volume1-lv


On this page of the site you can watch the video online Mirroring an existing logical volume with a duration of hours minute second in good quality, which was uploaded by the user lecture snippets 28 January 2020, share the link with friends and acquaintances, this video has already been watched 3,174 times on youtube and it was liked by 47 viewers. Enjoy your viewing!