Mageia Bugzilla – Attachment 11162 Details for
Bug 25047
Update request: lvm2-2.02.183-1.1.mga7
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
CLI - online cloning partition with lvm and snapshots
mga7-25047.log (text/plain), 2.67 KB, created by
Ulrich Beckmann
on 2019-07-07 11:26:45 CEST
(
hide
)
Description:
CLI - online cloning partition with lvm and snapshots
Filename:
MIME Type:
Creator:
Ulrich Beckmann
Created:
2019-07-07 11:26:45 CEST
Size:
2.67 KB
patch
obsolete
>[root@asus-mga7-final ~]# dnf list $(cat mga7-250747.lst) >Last metadata expiration check: 0:00:13 ago on Sun 07 Jul 2019 10:50:33 AM CEST. >Installed Packages >dmsetup.x86_64 1.02.154-1.1.mga7 @updates_testing-x86_64 >lib64devmapper-event1.02.x86_64 1.02.154-1.1.mga7 @updates_testing-x86_64 >lib64devmapper1.02.x86_64 1.02.154-1.1.mga7 @updates_testing-x86_64 >lib64lvm2app2.2.x86_64 2.02.183-1.1.mga7 @updates_testing-x86_64 >lib64lvm2cmd2.02.x86_64 2.02.183-1.1.mga7 @updates_testing-x86_64 >lvm2.x86_64 2.02.183-1.1.mga7 @updates_testing-x86_64 >[root@asus-mga7-final ~]# >[root@asus-mga7-final ~]# vgs > VG #PV #LV #SN Attr VSize VFree > vg1 1 10 0 wz--n- 179,98g 11,98g >[root@asus-mga7-final ~]# >[root@asus-mga7-final ~]# lvs > LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert > mlvm05 vg1 -wi-a----- 12,00g > mlvm06 vg1 -wi-a----- 12,00g > mlvm09 vg1 -wi-a----- 15,00g > mlvm10 vg1 -wi-a----- 18,00g > mlvm17 vg1 -wi-a----- 15,00g > mlvm18 vg1 -wi-ao---- 15,00g > mlvm19 vg1 -wi-a----- 15,00g > mlvm2 vg1 -wi-ao---- 40,00g > slvm01-ro vg1 -wi-ao---- 20,00g > swap vg1 -wc-ao---- 6,00g >[root@asus-mga7-final ~]# >[root@asus-mga7-final ~]# lvcreate -L 2G -s vg1/mlvm18 -n slvm18 > Logical volume "slvm18" created. >[root@asus-mga7-final ~]# >[root@asus-mga7-final ~]# nohup ionice -c idle dd if=/dev/mapper/vg1-slvm18 of=/dev/mapper/vg1-mlvm19 bs=256k & >[1] 9323 >[root@asus-mga7-final ~]# nohup: ignoring input and appending output to 'nohup.out' > >[root@asus-mga7-final ~]# >[1]+ Done nohup ionice -c idle dd if=/dev/mapper/vg1-slvm18 of=/dev/mapper/vg1-mlvm19 bs=256k >[root@asus-mga7-final ~]# >[root@asus-mga7-final ~]# cat nohup.out >61440+0 records in >61440+0 records out >16106127360 bytes (16 GB, 15 GiB) copied, 980,248 s, 16,4 MB/s >[root@asus-mga7-final ~]# >[root@asus-mga7-final ~]# lvremove /dev/mapper/vg1-slvm18 >Do you really want to remove active logical volume vg1/slvm18? [y/n]: y > Logical volume "slvm18" successfully removed >[root@asus-mga7-final ~]# >[root@asus-mga7-final ~]# >[root@asus-mga7-final ~]# >[root@asus-mga7-final ~]# xfs_admin -L s-mga7-1906 /dev/mapper/vg1-mlvm19 >writing all SBs >new label = "s-mga7-1906" >[root@asus-mga7-final ~]#
[root@asus-mga7-final ~]# dnf list $(cat mga7-250747.lst) Last metadata expiration check: 0:00:13 ago on Sun 07 Jul 2019 10:50:33 AM CEST. Installed Packages dmsetup.x86_64 1.02.154-1.1.mga7 @updates_testing-x86_64 lib64devmapper-event1.02.x86_64 1.02.154-1.1.mga7 @updates_testing-x86_64 lib64devmapper1.02.x86_64 1.02.154-1.1.mga7 @updates_testing-x86_64 lib64lvm2app2.2.x86_64 2.02.183-1.1.mga7 @updates_testing-x86_64 lib64lvm2cmd2.02.x86_64 2.02.183-1.1.mga7 @updates_testing-x86_64 lvm2.x86_64 2.02.183-1.1.mga7 @updates_testing-x86_64 [root@asus-mga7-final ~]# [root@asus-mga7-final ~]# vgs VG #PV #LV #SN Attr VSize VFree vg1 1 10 0 wz--n- 179,98g 11,98g [root@asus-mga7-final ~]# [root@asus-mga7-final ~]# lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert mlvm05 vg1 -wi-a----- 12,00g mlvm06 vg1 -wi-a----- 12,00g mlvm09 vg1 -wi-a----- 15,00g mlvm10 vg1 -wi-a----- 18,00g mlvm17 vg1 -wi-a----- 15,00g mlvm18 vg1 -wi-ao---- 15,00g mlvm19 vg1 -wi-a----- 15,00g mlvm2 vg1 -wi-ao---- 40,00g slvm01-ro vg1 -wi-ao---- 20,00g swap vg1 -wc-ao---- 6,00g [root@asus-mga7-final ~]# [root@asus-mga7-final ~]# lvcreate -L 2G -s vg1/mlvm18 -n slvm18 Logical volume "slvm18" created. [root@asus-mga7-final ~]# [root@asus-mga7-final ~]# nohup ionice -c idle dd if=/dev/mapper/vg1-slvm18 of=/dev/mapper/vg1-mlvm19 bs=256k & [1] 9323 [root@asus-mga7-final ~]# nohup: ignoring input and appending output to 'nohup.out' [root@asus-mga7-final ~]# [1]+ Done nohup ionice -c idle dd if=/dev/mapper/vg1-slvm18 of=/dev/mapper/vg1-mlvm19 bs=256k [root@asus-mga7-final ~]# [root@asus-mga7-final ~]# cat nohup.out 61440+0 records in 61440+0 records out 16106127360 bytes (16 GB, 15 GiB) copied, 980,248 s, 16,4 MB/s [root@asus-mga7-final ~]# [root@asus-mga7-final ~]# lvremove /dev/mapper/vg1-slvm18 Do you really want to remove active logical volume vg1/slvm18? [y/n]: y Logical volume "slvm18" successfully removed [root@asus-mga7-final ~]# [root@asus-mga7-final ~]# [root@asus-mga7-final ~]# [root@asus-mga7-final ~]# xfs_admin -L s-mga7-1906 /dev/mapper/vg1-mlvm19 writing all SBs new label = "s-mga7-1906" [root@asus-mga7-final ~]#
View Attachment As Raw
Actions:
View
Attachments on
bug 25047
: 11162