make_loop_dev loopdev1 512M --> ret 0 make_loop_dev loopdev2 512M --> ret 0 pvcreate -ff /dev/loop0 /dev/loop1 Physical volume "/dev/loop0" successfully created. Physical volume "/dev/loop1" successfully created. --> ret 0 pvs Devices file PVID none last seen on /dev/loop1p1 not found. Devices file PVID none last seen on /dev/loop1p5 not found. Devices file PVID none last seen on /dev/loop1p8 not found. Devices file PVID none last seen on /dev/loop1p9 not found. Devices file PVID none last seen on /dev/loop1p10 not found. Devices file PVID none last seen on /dev/loop1p11 not found. Devices file PVID none last seen on /dev/loop1p13 not found. PV VG Fmt Attr PSize PFree /dev/loop0 lvm2 --- 512.00m 512.00m /dev/loop1 lvm2 --- 512.00m 512.00m --> ret 0 vgcreate myvg /dev/loop0 /dev/loop1 Volume group "myvg" successfully created --> ret 0 vgs Devices file PVID none last seen on /dev/loop1p1 not found. Devices file PVID none last seen on /dev/loop1p5 not found. Devices file PVID none last seen on /dev/loop1p8 not found. Devices file PVID none last seen on /dev/loop1p9 not found. Devices file PVID none last seen on /dev/loop1p10 not found. Devices file PVID none last seen on /dev/loop1p11 not found. Devices file PVID none last seen on /dev/loop1p13 not found. VG #PV #LV #SN Attr VSize VFree myvg 2 0 0 wz--n- 1016.00m 1016.00m --> ret 0 lvremove -ff myvg --> ret 0 lvcreate -l 100%PV -T myvg/mythinpool Thin pool volume with chunk size 64.00 KiB can address at most <15.88 TiB of data. Logical volume "mythinpool" created. --> ret 0 lvremove -ff myvg Logical volume "mythinpool" successfully removed. --> ret 0 lvcreate -l 100%PV -T myvg/mythinpool Thin pool volume with chunk size 64.00 KiB can address at most <15.88 TiB of data. Logical volume "mythinpool" created. --> ret 0 lvremove -ff myvg Logical volume "mythinpool" successfully removed. --> ret 0 lvcreate -l 100%PV -T myvg/mythinpool Thin pool volume with chunk size 64.00 KiB can address at most <15.88 TiB of data. Logical volume "mythinpool" created. --> ret 0 lvremove -ff myvg Logical volume "mythinpool" successfully removed. --> ret 0 lvcreate -l 100%PV -T myvg/mythinpool Thin pool volume with chunk size 64.00 KiB can address at most <15.88 TiB of data. Logical volume "mythinpool" created. --> ret 0 lvs Devices file PVID none last seen on /dev/loop1p1 not found. Devices file PVID none last seen on /dev/loop1p5 not found. Devices file PVID none last seen on /dev/loop1p8 not found. Devices file PVID none last seen on /dev/loop1p9 not found. Devices file PVID none last seen on /dev/loop1p10 not found. Devices file PVID none last seen on /dev/loop1p11 not found. Devices file PVID none last seen on /dev/loop1p13 not found. LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert mythinpool myvg twi-a-tz-- 1008.00m 0.00 10.84 --> ret 0 lvcreate -V512M -T myvg/mythinpool -n thinvolume1 Logical volume "thinvolume1" created. --> ret 0 mkdir -p /mnt/testmnt1 --> ret 0 mkfs.xfs -fd noalign /dev/mapper/myvg-thinvolume1 meta-data=/dev/mapper/myvg-thinvolume1 isize=512 agcount=4, agsize=32768 blks = sectsz=512 attr=2, projid32bit=1 = crc=1 finobt=1, sparse=1, rmapbt=0 = reflink=1 bigtime=1 inobtcount=1 nrext64=0 data = bsize=4096 blocks=131072, imaxpct=25 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 ascii-ci=0, ftype=1 log =internal log bsize=4096 blocks=16384, version=2 = sectsz=512 sunit=0 blks, lazy-count=1 realtime =none extsz=4096 blocks=0, rtextents=0 Discarding blocks...Done. --> ret 0 mount /dev/mapper/myvg-thinvolume1 /mnt/testmnt1 --> ret 0 umount /mnt/testmnt1 --> ret 0 lvcreate -s -kn --name mysnapshot1 myvg/thinvolume1 WARNING: Sum of all thin volume sizes (1.00 GiB) exceeds the size of thin pool myvg/mythinpool and the size of whole volume group (1016.00 MiB). WARNING: You have not turned on protection against thin pools running out of space. WARNING: Set activation/thin_pool_autoextend_threshold below 100 to trigger automatic extension of thin pools before they get full. Logical volume "mysnapshot1" created. --> ret 0 mount /dev/mapper/myvg-mysnapshot1 /mnt/testmnt1 --> ret 0 umount /mnt/testmnt1 --> ret 0 lvcreate -s -kn --name mysnapshot21 myvg/mysnapshot1 WARNING: Sum of all thin volume sizes (1.50 GiB) exceeds the size of thin pool myvg/mythinpool and the size of whole volume group (1016.00 MiB). WARNING: You have not turned on protection against thin pools running out of space. WARNING: Set activation/thin_pool_autoextend_threshold below 100 to trigger automatic extension of thin pools before they get full. Logical volume "mysnapshot21" created. --> ret 0 mount /dev/mapper/myvg-mysnapshot21 /mnt/testmnt1 --> ret 0 umount /mnt/testmnt1 --> ret 0 lvcreate -V512M -T myvg/mythinpool -n thinvolume2 WARNING: Sum of all thin volume sizes (2.00 GiB) exceeds the size of thin pool myvg/mythinpool and the size of whole volume group (1016.00 MiB). WARNING: You have not turned on protection against thin pools running out of space. WARNING: Set activation/thin_pool_autoextend_threshold below 100 to trigger automatic extension of thin pools before they get full. Logical volume "thinvolume2" created. --> ret 0 mkdir -p /mnt/testmnt2 --> ret 0 mkfs.xfs -fd noalign /dev/mapper/myvg-thinvolume2 meta-data=/dev/mapper/myvg-thinvolume2 isize=512 agcount=4, agsize=32768 blks = sectsz=512 attr=2, projid32bit=1 = crc=1 finobt=1, sparse=1, rmapbt=0 = reflink=1 bigtime=1 inobtcount=1 nrext64=0 data = bsize=4096 blocks=131072, imaxpct=25 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 ascii-ci=0, ftype=1 log =internal log bsize=4096 blocks=16384, version=2 = sectsz=512 sunit=0 blks, lazy-count=1 realtime =none extsz=4096 blocks=0, rtextents=0 Discarding blocks...Done. --> ret 0 mount /dev/mapper/myvg-thinvolume2 /mnt/testmnt2 --> ret 0 umount /mnt/testmnt2 --> ret 0 lvcreate -s -kn --name mysnapshot2 myvg/thinvolume2 WARNING: Sum of all thin volume sizes (2.50 GiB) exceeds the size of thin pool myvg/mythinpool and the size of whole volume group (1016.00 MiB). WARNING: You have not turned on protection against thin pools running out of space. WARNING: Set activation/thin_pool_autoextend_threshold below 100 to trigger automatic extension of thin pools before they get full. Logical volume "mysnapshot2" created. --> ret 0 mount /dev/mapper/myvg-mysnapshot2 /mnt/testmnt2 --> ret 0 umount /mnt/testmnt2 --> ret 0 lvcreate -s -kn --name mysnapshot22 myvg/mysnapshot2 WARNING: Sum of all thin volume sizes (3.00 GiB) exceeds the size of thin pool myvg/mythinpool and the size of whole volume group (1016.00 MiB). WARNING: You have not turned on protection against thin pools running out of space. WARNING: Set activation/thin_pool_autoextend_threshold below 100 to trigger automatic extension of thin pools before they get full. Logical volume "mysnapshot22" created. --> ret 0 mount /dev/mapper/myvg-mysnapshot22 /mnt/testmnt2 --> ret 0 umount /mnt/testmnt2 --> ret 0 lvcreate -V512M -T myvg/mythinpool -n thinvolume3 WARNING: Sum of all thin volume sizes (3.50 GiB) exceeds the size of thin pool myvg/mythinpool and the size of whole volume group (1016.00 MiB). WARNING: You have not turned on protection against thin pools running out of space. WARNING: Set activation/thin_pool_autoextend_threshold below 100 to trigger automatic extension of thin pools before they get full. Logical volume "thinvolume3" created. --> ret 0 mkdir -p /mnt/testmnt3 --> ret 0 mkfs.xfs -fd noalign /dev/mapper/myvg-thinvolume3 meta-data=/dev/mapper/myvg-thinvolume3 isize=512 agcount=4, agsize=32768 blks = sectsz=512 attr=2, projid32bit=1 = crc=1 finobt=1, sparse=1, rmapbt=0 = reflink=1 bigtime=1 inobtcount=1 nrext64=0 data = bsize=4096 blocks=131072, imaxpct=25 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 ascii-ci=0, ftype=1 log =internal log bsize=4096 blocks=16384, version=2 = sectsz=512 sunit=0 blks, lazy-count=1 realtime =none extsz=4096 blocks=0, rtextents=0 Discarding blocks...Done. --> ret 0 mount /dev/mapper/myvg-thinvolume3 /mnt/testmnt3 --> ret 0 umount /mnt/testmnt3 --> ret 0 lvcreate -s -kn --name mysnapshot3 myvg/thinvolume3 WARNING: Sum of all thin volume sizes (4.00 GiB) exceeds the size of thin pool myvg/mythinpool and the size of whole volume group (1016.00 MiB). WARNING: You have not turned on protection against thin pools running out of space. WARNING: Set activation/thin_pool_autoextend_threshold below 100 to trigger automatic extension of thin pools before they get full. Logical volume "mysnapshot3" created. --> ret 0 mount /dev/mapper/myvg-mysnapshot3 /mnt/testmnt3 --> ret 0 umount /mnt/testmnt3 --> ret 0 lvcreate -s -kn --name mysnapshot23 myvg/mysnapshot3 WARNING: Sum of all thin volume sizes (4.50 GiB) exceeds the size of thin pool myvg/mythinpool and the size of whole volume group (1016.00 MiB). WARNING: You have not turned on protection against thin pools running out of space. WARNING: Set activation/thin_pool_autoextend_threshold below 100 to trigger automatic extension of thin pools before they get full. Logical volume "mysnapshot23" created. --> ret 0 mount /dev/mapper/myvg-mysnapshot23 /mnt/testmnt3 --> ret 0 umount /mnt/testmnt3 --> ret 0 lvcreate -V512M -T myvg/mythinpool -n thinvolume4 WARNING: Sum of all thin volume sizes (5.00 GiB) exceeds the size of thin pool myvg/mythinpool and the size of whole volume group (1016.00 MiB). WARNING: You have not turned on protection against thin pools running out of space. WARNING: Set activation/thin_pool_autoextend_threshold below 100 to trigger automatic extension of thin pools before they get full. Logical volume "thinvolume4" created. --> ret 0 mkdir -p /mnt/testmnt4 --> ret 0 mkfs.xfs -fd noalign /dev/mapper/myvg-thinvolume4 meta-data=/dev/mapper/myvg-thinvolume4 isize=512 agcount=4, agsize=32768 blks = sectsz=512 attr=2, projid32bit=1 = crc=1 finobt=1, sparse=1, rmapbt=0 = reflink=1 bigtime=1 inobtcount=1 nrext64=0 data = bsize=4096 blocks=131072, imaxpct=25 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 ascii-ci=0, ftype=1 log =internal log bsize=4096 blocks=16384, version=2 = sectsz=512 sunit=0 blks, lazy-count=1 realtime =none extsz=4096 blocks=0, rtextents=0 Discarding blocks...Done. --> ret 0 mount /dev/mapper/myvg-thinvolume4 /mnt/testmnt4 --> ret 0 umount /mnt/testmnt4 --> ret 0 lvcreate -s -kn --name mysnapshot4 myvg/thinvolume4 WARNING: Sum of all thin volume sizes (5.50 GiB) exceeds the size of thin pool myvg/mythinpool and the size of whole volume group (1016.00 MiB). WARNING: You have not turned on protection against thin pools running out of space. WARNING: Set activation/thin_pool_autoextend_threshold below 100 to trigger automatic extension of thin pools before they get full. Logical volume "mysnapshot4" created. --> ret 0 mount /dev/mapper/myvg-mysnapshot4 /mnt/testmnt4 --> ret 0 umount /mnt/testmnt4 --> ret 0 lvcreate -s -kn --name mysnapshot24 myvg/mysnapshot4 WARNING: Sum of all thin volume sizes (6.00 GiB) exceeds the size of thin pool myvg/mythinpool and the size of whole volume group (1016.00 MiB). WARNING: You have not turned on protection against thin pools running out of space. WARNING: Set activation/thin_pool_autoextend_threshold below 100 to trigger automatic extension of thin pools before they get full. Logical volume "mysnapshot24" created. --> ret 0 mount /dev/mapper/myvg-mysnapshot24 /mnt/testmnt4 --> ret 0 umount /mnt/testmnt4 --> ret 0 lvs Devices file PVID none last seen on /dev/loop1p1 not found. Devices file PVID none last seen on /dev/loop1p5 not found. Devices file PVID none last seen on /dev/loop1p8 not found. Devices file PVID none last seen on /dev/loop1p9 not found. Devices file PVID none last seen on /dev/loop1p10 not found. Devices file PVID none last seen on /dev/loop1p11 not found. Devices file PVID none last seen on /dev/loop1p13 not found. LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert mysnapshot1 myvg Vwi-a-tz-- 512.00m mythinpool thinvolume1 12.59 mysnapshot2 myvg Vwi-a-tz-- 512.00m mythinpool thinvolume2 12.59 mysnapshot21 myvg Vwi-a-tz-- 512.00m mythinpool mysnapshot1 12.59 mysnapshot22 myvg Vwi-a-tz-- 512.00m mythinpool mysnapshot2 12.59 mysnapshot23 myvg Vwi-a-tz-- 512.00m mythinpool mysnapshot3 12.59 mysnapshot24 myvg Vwi-a-tz-- 512.00m mythinpool mysnapshot4 12.59 mysnapshot3 myvg Vwi-a-tz-- 512.00m mythinpool thinvolume3 12.59 mysnapshot4 myvg Vwi-a-tz-- 512.00m mythinpool thinvolume4 12.59 mythinpool myvg twi-aotz-- 1008.00m 27.26 15.33 thinvolume1 myvg Vwi-a-tz-- 512.00m mythinpool 12.59 thinvolume2 myvg Vwi-a-tz-- 512.00m mythinpool 12.59 thinvolume3 myvg Vwi-a-tz-- 512.00m mythinpool 12.59 thinvolume4 myvg Vwi-a-tz-- 512.00m mythinpool 12.59 --> ret 0 mount /dev/mapper/myvg-thinvolume1 /mnt/testmnt1 --> ret 0 umount /mnt/testmnt1 --> ret 0 mount /dev/mapper/myvg-mysnapshot1 /mnt/testmnt1 --> ret 0 umount /mnt/testmnt1 --> ret 0 mount /dev/mapper/myvg-mysnapshot21 /mnt/testmnt1 --> ret 0 umount /mnt/testmnt1 --> ret 0 mount /dev/mapper/myvg-thinvolume2 /mnt/testmnt2 --> ret 0 umount /mnt/testmnt2 --> ret 0 mount /dev/mapper/myvg-mysnapshot2 /mnt/testmnt2 --> ret 0 umount /mnt/testmnt2 --> ret 0 mount /dev/mapper/myvg-mysnapshot22 /mnt/testmnt2 --> ret 0 umount /mnt/testmnt2 --> ret 0 lvs Devices file PVID none last seen on /dev/loop1p1 not found. Devices file PVID none last seen on /dev/loop1p5 not found. Devices file PVID none last seen on /dev/loop1p8 not found. Devices file PVID none last seen on /dev/loop1p9 not found. Devices file PVID none last seen on /dev/loop1p10 not found. Devices file PVID none last seen on /dev/loop1p11 not found. Devices file PVID none last seen on /dev/loop1p13 not found. LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert mysnapshot1 myvg Vwi-a-tz-- 512.00m mythinpool thinvolume1 18.79 mysnapshot2 myvg Vwi-a-tz-- 512.00m mythinpool thinvolume2 18.79 mysnapshot21 myvg Vwi-a-tz-- 512.00m mythinpool mysnapshot1 18.79 mysnapshot22 myvg Vwi-a-tz-- 512.00m mythinpool mysnapshot2 18.79 mysnapshot23 myvg Vwi-a-tz-- 512.00m mythinpool mysnapshot3 12.59 mysnapshot24 myvg Vwi-a-tz-- 512.00m mythinpool mysnapshot4 12.59 mysnapshot3 myvg Vwi-a-tz-- 512.00m mythinpool thinvolume3 12.59 mysnapshot4 myvg Vwi-a-tz-- 512.00m mythinpool thinvolume4 12.59 mythinpool myvg twi-aotz-- 1008.00m 46.18 16.50 thinvolume1 myvg Vwi-a-tz-- 512.00m mythinpool 18.79 thinvolume2 myvg Vwi-a-tz-- 512.00m mythinpool 18.79 thinvolume3 myvg Vwi-a-tz-- 512.00m mythinpool 12.59 thinvolume4 myvg Vwi-a-tz-- 512.00m mythinpool 12.59 --> ret 0 ls -la /dev/mapper total 0 drwxr-xr-x. 2 root root 380 Feb 2 11:55 . drwxr-xr-x. 18 root root 5540 Feb 2 11:55 .. crw-------. 1 root root 10, 236 Feb 2 11:54 control lrwxrwxrwx. 1 root root 7 Feb 2 11:55 myvg-mysnapshot1 -> ../dm-5 lrwxrwxrwx. 1 root root 7 Feb 2 11:55 myvg-mysnapshot2 -> ../dm-8 lrwxrwxrwx. 1 root root 7 Feb 2 11:55 myvg-mysnapshot21 -> ../dm-6 lrwxrwxrwx. 1 root root 7 Feb 2 11:55 myvg-mysnapshot22 -> ../dm-9 lrwxrwxrwx. 1 root root 8 Feb 2 11:55 myvg-mysnapshot23 -> ../dm-12 lrwxrwxrwx. 1 root root 8 Feb 2 11:55 myvg-mysnapshot24 -> ../dm-15 lrwxrwxrwx. 1 root root 8 Feb 2 11:55 myvg-mysnapshot3 -> ../dm-11 lrwxrwxrwx. 1 root root 8 Feb 2 11:55 myvg-mysnapshot4 -> ../dm-14 lrwxrwxrwx. 1 root root 7 Feb 2 11:55 myvg-mythinpool -> ../dm-3 lrwxrwxrwx. 1 root root 7 Feb 2 11:55 myvg-mythinpool_tdata -> ../dm-1 lrwxrwxrwx. 1 root root 7 Feb 2 11:55 myvg-mythinpool_tmeta -> ../dm-0 lrwxrwxrwx. 1 root root 7 Feb 2 11:55 myvg-mythinpool-tpool -> ../dm-2 lrwxrwxrwx. 1 root root 7 Feb 2 11:55 myvg-thinvolume1 -> ../dm-4 lrwxrwxrwx. 1 root root 7 Feb 2 11:55 myvg-thinvolume2 -> ../dm-7 lrwxrwxrwx. 1 root root 8 Feb 2 11:55 myvg-thinvolume3 -> ../dm-10 lrwxrwxrwx. 1 root root 8 Feb 2 11:55 myvg-thinvolume4 -> ../dm-13 --> ret 0 lvremove -ff myvg Logical volume "thinvolume1" successfully removed. Logical volume "mysnapshot1" successfully removed. Logical volume "mysnapshot21" successfully removed. Logical volume "thinvolume2" successfully removed. Logical volume "mysnapshot2" successfully removed. Logical volume "mysnapshot22" successfully removed. Logical volume "thinvolume3" successfully removed. Logical volume "mysnapshot3" successfully removed. Logical volume "mysnapshot23" successfully removed. Logical volume "thinvolume4" successfully removed. Logical volume "mysnapshot4" successfully removed. Logical volume "mysnapshot24" successfully removed. Logical volume "mythinpool" successfully removed. --> ret 0 vgremove -ff myvg Volume group "myvg" successfully removed --> ret 0 pvremove -ff /dev/loop0 /dev/loop1 Labels on physical volume "/dev/loop0" successfully wiped. Labels on physical volume "/dev/loop1" successfully wiped. --> ret 0 clean_loop_dev /dev/loop0 --> ret 0 clean_loop_dev /dev/loop1 --> ret 0 lvs Devices file PVID none last seen on /dev/loop1p1 not found. Devices file PVID none last seen on /dev/loop1p5 not found. Devices file PVID none last seen on /dev/loop1p8 not found. Devices file PVID none last seen on /dev/loop1p9 not found. Devices file PVID none last seen on /dev/loop1p10 not found. Devices file PVID none last seen on /dev/loop1p11 not found. Devices file PVID none last seen on /dev/loop1p13 not found. Devices file loop_file /var/tmp/storage1 PVID none last seen on /dev/loop0 not found. Devices file loop_file /var/tmp/storage2 PVID none last seen on /dev/loop1 not found. --> ret 0 vgs Devices file PVID none last seen on /dev/loop1p1 not found. Devices file PVID none last seen on /dev/loop1p5 not found. Devices file PVID none last seen on /dev/loop1p8 not found. Devices file PVID none last seen on /dev/loop1p9 not found. Devices file PVID none last seen on /dev/loop1p10 not found. Devices file PVID none last seen on /dev/loop1p11 not found. Devices file PVID none last seen on /dev/loop1p13 not found. Devices file loop_file /var/tmp/storage1 PVID none last seen on /dev/loop0 not found. Devices file loop_file /var/tmp/storage2 PVID none last seen on /dev/loop1 not found. --> ret 0 pvs Devices file PVID none last seen on /dev/loop1p1 not found. Devices file PVID none last seen on /dev/loop1p5 not found. Devices file PVID none last seen on /dev/loop1p8 not found. Devices file PVID none last seen on /dev/loop1p9 not found. Devices file PVID none last seen on /dev/loop1p10 not found. Devices file PVID none last seen on /dev/loop1p11 not found. Devices file PVID none last seen on /dev/loop1p13 not found. Devices file loop_file /var/tmp/storage1 PVID none last seen on /dev/loop0 not found. Devices file loop_file /var/tmp/storage2 PVID none last seen on /dev/loop1 not found. --> ret 0 Test finished