From: Rahul Hinduja <rhinduja@redhat.com>
To: linux-lvm@redhat.com
Subject: [linux-lvm] Issue in creating thinpool when used different pool metadatasize
Date: Wed, 16 Apr 2014 09:28:47 -0400 (EDT) [thread overview]
Message-ID: <1326353213.10069520.1397654927537.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <364130975.10063540.1397654548006.JavaMail.zimbra@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1874 bytes --]
Hello All,
This might be some basic mistake I would be doing with respect to different poolmetadata size.
When I am trying to create thinpool with poolmetadatasize as 4m it fails but similar is successful when I try to create with 5m. Default poolmetadatasize can be 2m to 16g so I am not sure what is error I am enforcing it to fail.
Kindly help me out with this issue.
Case 1: poolmetadatasize as 4m
#script to create thinpool with poolmetadatasize 4m
[root@rahul ~]# cat temp
pvcreate /dev/vdb
pvcreate /dev/vdc
pvcreate /dev/vdd
pvcreate /dev/vde
vgcreate snap_vg0 /dev/vdb /dev/vdc /dev/vdd /dev/vde
lvcreate -L 90G --poolmetadatasize 4m -T /dev/snap_vg0/snap_thin_pool0
#lvcreate -L 90G -T /dev/snap_vg0/snap_thin_pool0
lvcreate -V90G -T /dev/snap_vg0/snap_thin_pool0 -n snap_thin_vol0
[root@rahul ~]#
[root@rahul ~]#
Case 2: poolmetadatasize as 5m
#script to create thinpool with poolmetadatasize 5m
[root@rahul ~]# cat temp
pvcreate /dev/vdb
pvcreate /dev/vdc
pvcreate /dev/vdd
pvcreate /dev/vde
vgcreate snap_vg0 /dev/vdb /dev/vdc /dev/vdd /dev/vde
lvcreate -L 90G --poolmetadatasize 5m -T /dev/snap_vg0/snap_thin_pool0
#lvcreate -L 90G -T /dev/snap_vg0/snap_thin_pool0
lvcreate -V90G -T /dev/snap_vg0/snap_thin_pool0 -n snap_thin_vol0
[root@rahul ~]#
[root@rahul ~]#
#Creation Success
[root@rahul ~]# ./temp
Physical volume "/dev/vdb" successfully created
Physical volume "/dev/vdc" successfully created
Physical volume "/dev/vdd" successfully created
Physical volume "/dev/vde" successfully created
Volume group "snap_vg0" successfully created
Rounding up size to full physical extent 8.00 MiB
Logical volume "lvol0" created
Logical volume "snap_thin_pool0" created
Logical volume "snap_thin_vol0" created
[root@rahul ~]#
Please find the attachment with detailed outputs of different lv commands
Thanks,
Rahul
[-- Attachment #2: poolmetadatasize_5m --]
[-- Type: application/octet-stream, Size: 7851 bytes --]
#script to create thinpool with poolmetadatasize 5m
[root@rahul ~]# cat temp
pvcreate /dev/vdb
pvcreate /dev/vdc
pvcreate /dev/vdd
pvcreate /dev/vde
vgcreate snap_vg0 /dev/vdb /dev/vdc /dev/vdd /dev/vde
lvcreate -L 90G --poolmetadatasize 5m -T /dev/snap_vg0/snap_thin_pool0
#lvcreate -L 90G -T /dev/snap_vg0/snap_thin_pool0
lvcreate -V90G -T /dev/snap_vg0/snap_thin_pool0 -n snap_thin_vol0
[root@rahul ~]#
[root@rahul ~]#
#Creation Success
[root@rahul ~]# ./temp
Physical volume "/dev/vdb" successfully created
Physical volume "/dev/vdc" successfully created
Physical volume "/dev/vdd" successfully created
Physical volume "/dev/vde" successfully created
Volume group "snap_vg0" successfully created
Rounding up size to full physical extent 8.00 MiB
Logical volume "lvol0" created
Logical volume "snap_thin_pool0" created
Logical volume "snap_thin_vol0" created
[root@rahul ~]#
[root@rahul ~]#
#lvs information
[root@rahul ~]# lvs
LV VG Attr LSize Pool Origin Data% Move Log Cpy%Sync Convert
snap_thin_pool0 snap_vg0 twi-a-tz-- 90.00g 0.00
snap_thin_vol0 snap_vg0 Vwi-a-tz-- 90.00g snap_thin_pool0 0.00
lv_root vg_rahul -wi-ao---- 45.63g
lv_swap vg_rahul -wi-ao---- 3.88g
[root@rahul ~]#
[root@rahul ~]#
#vgs information
[root@rahul ~]# vgs
VG #PV #LV #SN Attr VSize VFree
snap_vg0 4 2 0 wz--n- 399.98g 309.97g
vg_rahul 1 2 0 wz--n- 49.51g 0
[root@rahul ~]#
[root@rahul ~]#
#lvdisplay information
[root@rahul ~]# lvdisplay
--- Logical volume ---
LV Name snap_thin_pool0
VG Name snap_vg0
LV UUID o1TSfx-BpXY-3fQT-HYe9-UC5Q-SISN-gT4r5M
LV Write Access read/write
LV Creation host, time rahul.lab.eng.blr.redhat.com, 2014-04-16 13:19:38 +0530
LV Pool transaction ID 1
LV Pool metadata snap_thin_pool0_tmeta
LV Pool data snap_thin_pool0_tdata
LV Pool chunk size 1.12 MiB
LV Zero new blocks yes
LV Status available
# open 0
LV Size 90.00 GiB
Allocated pool data 0.00%
Allocated metadata 0.73%
Current LE 23040
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2
--- Logical volume ---
LV Path /dev/snap_vg0/snap_thin_vol0
LV Name snap_thin_vol0
VG Name snap_vg0
LV UUID ipNYsT-uJfh-E14T-h0tg-wXWr-yVxC-ZuOj5l
LV Write Access read/write
LV Creation host, time rahul.lab.eng.blr.redhat.com, 2014-04-16 13:19:38 +0530
LV Pool name snap_thin_pool0
LV Status available
# open 0
LV Size 90.00 GiB
Mapped size 0.00%
Current LE 23040
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:6
--- Logical volume ---
LV Path /dev/vg_rahul/lv_root
LV Name lv_root
VG Name vg_rahul
LV UUID wDcian-Zr0h-za41-QHDn-QZkE-uckW-qEephy
LV Write Access read/write
LV Creation host, time rahul.lab.eng.blr.redhat.com, 2014-04-16 10:23:42 +0530
LV Status available
# open 1
LV Size 45.63 GiB
Current LE 11682
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Path /dev/vg_rahul/lv_swap
LV Name lv_swap
VG Name vg_rahul
LV UUID fS2uNd-aS2e-ByYP-ndJD-JMYj-cQwo-C5SV0o
LV Write Access read/write
LV Creation host, time rahul.lab.eng.blr.redhat.com, 2014-04-16 10:23:52 +0530
LV Status available
# open 1
LV Size 3.88 GiB
Current LE 992
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
[root@rahul ~]#
[root@rahul ~]#
#vgdisplay information
[root@rahul ~]# vgdisplay
--- Volume group ---
VG Name snap_vg0
System ID
Format lvm2
Metadata Areas 4
Metadata Sequence No 6
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 0
Max PV 0
Cur PV 4
Act PV 4
VG Size 399.98 GiB
PE Size 4.00 MiB
Total PE 102396
Alloc PE / Size 23044 / 90.02 GiB
Free PE / Size 79352 / 309.97 GiB
VG UUID 0t1IVa-1Rox-ttWM-Ua68-R2AN-qnU2-qPL0Si
--- Volume group ---
VG Name vg_rahul
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 49.51 GiB
PE Size 4.00 MiB
Total PE 12674
Alloc PE / Size 12674 / 49.51 GiB
Free PE / Size 0 / 0
VG UUID WaK2k9-kcla-Vtsw-dn3H-B9IY-psX9-8Abelf
[root@rahul ~]#
[root@rahul ~]#
[root@rahul ~]#
[root@rahul ~]#
[root@rahul ~]#
#pvdisplay information
[root@rahul ~]# pvdisplay
--- Physical volume ---
PV Name /dev/vdb
VG Name snap_vg0
PV Size 100.00 GiB / not usable 4.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 25599
Free PE 2557
Allocated PE 23042
PV UUID zEtk1l-3r9H-2YeR-MZed-32GC-Bnl0-bbxK2e
--- Physical volume ---
PV Name /dev/vdc
VG Name snap_vg0
PV Size 100.00 GiB / not usable 4.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 25599
Free PE 25599
Allocated PE 0
PV UUID bFl7If-53Lx-opCu-Y4sG-2xwx-DDCm-FT6rcu
--- Physical volume ---
PV Name /dev/vdd
VG Name snap_vg0
PV Size 100.00 GiB / not usable 4.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 25599
Free PE 25599
Allocated PE 0
PV UUID wl7AFy-2DCi-41or-Heyq-pUpF-PM6U-kfSg93
--- Physical volume ---
PV Name /dev/vde
VG Name snap_vg0
PV Size 100.00 GiB / not usable 4.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 25599
Free PE 25597
Allocated PE 2
PV UUID z7QRh8-vYdg-wxMk-WvVM-zfBs-aROu-FQyNLI
--- Physical volume ---
PV Name /dev/vda2
VG Name vg_rahul
PV Size 49.51 GiB / not usable 3.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 12674
Free PE 0
Allocated PE 12674
PV UUID qEGmdp-dICV-qZ26-vn39-ofsU-WBDz-U0yDn5
[root@rahul ~]#
[root@rahul ~]#
[-- Attachment #3: poolmetadatasize_4m --]
[-- Type: application/octet-stream, Size: 5958 bytes --]
#script to create thinpool with poolmetadatasize 4m
[root@rahul ~]# cat temp
pvcreate /dev/vdb
pvcreate /dev/vdc
pvcreate /dev/vdd
pvcreate /dev/vde
vgcreate snap_vg0 /dev/vdb /dev/vdc /dev/vdd /dev/vde
lvcreate -L 90G --poolmetadatasize 4m -T /dev/snap_vg0/snap_thin_pool0
#lvcreate -L 90G -T /dev/snap_vg0/snap_thin_pool0
lvcreate -V90G -T /dev/snap_vg0/snap_thin_pool0 -n snap_thin_vol0
[root@rahul ~]#
[root@rahul ~]#
#Creation Fails
[root@rahul ~]# ./temp
Physical volume "/dev/vdb" successfully created
Physical volume "/dev/vdc" successfully created
Physical volume "/dev/vdd" successfully created
Physical volume "/dev/vde" successfully created
Volume group "snap_vg0" successfully created
Logical volume "lvol0" created
device-mapper: reload ioctl on failed: Invalid argument
Failed to suspend pool snap_thin_pool0.
Thin pool snap_thin_pool0 not found in Volume group snap_vg0.
[root@rahul ~]#
#lvs information
[root@rahul ~]# lvs
LV VG Attr LSize Pool Origin Data% Move Log Cpy%Sync Convert
lv_root vg_rahul -wi-ao---- 45.63g
lv_swap vg_rahul -wi-ao---- 3.88g
[root@rahul ~]#
#vgs information
[root@rahul ~]# vgs
VG #PV #LV #SN Attr VSize VFree
snap_vg0 4 0 0 wz--n- 399.98g 399.98g
vg_rahul 1 2 0 wz--n- 49.51g 0
[root@rahul ~]#
#lvdisplay information
[root@rahul ~]# lvdisplay
--- Logical volume ---
LV Path /dev/vg_rahul/lv_root
LV Name lv_root
VG Name vg_rahul
LV UUID wDcian-Zr0h-za41-QHDn-QZkE-uckW-qEephy
LV Write Access read/write
LV Creation host, time rahul.lab.eng.blr.redhat.com, 2014-04-16 10:23:42 +0530
LV Status available
# open 1
LV Size 45.63 GiB
Current LE 11682
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Path /dev/vg_rahul/lv_swap
LV Name lv_swap
VG Name vg_rahul
LV UUID fS2uNd-aS2e-ByYP-ndJD-JMYj-cQwo-C5SV0o
LV Write Access read/write
LV Creation host, time rahul.lab.eng.blr.redhat.com, 2014-04-16 10:23:52 +0530
LV Status available
# open 1
LV Size 3.88 GiB
Current LE 992
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
#vgdisplay information
[root@rahul ~]#
[root@rahul ~]# vgdisplay
--- Volume group ---
VG Name snap_vg0
System ID
Format lvm2
Metadata Areas 4
Metadata Sequence No 5
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 4
Act PV 4
VG Size 399.98 GiB
PE Size 4.00 MiB
Total PE 102396
Alloc PE / Size 1 / 4.00 MiB
Free PE / Size 102395 / 399.98 GiB
VG UUID pF2XA2-XWww-UY0E-ko05-2GiR-ZNZl-1Z1TMk
--- Volume group ---
VG Name vg_rahul
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 49.51 GiB
PE Size 4.00 MiB
Total PE 12674
Alloc PE / Size 12674 / 49.51 GiB
Free PE / Size 0 / 0
VG UUID WaK2k9-kcla-Vtsw-dn3H-B9IY-psX9-8Abelf
#pvdisplay information
[root@rahul ~]#
[root@rahul ~]# pvdisplay
--- Physical volume ---
PV Name /dev/vdb
VG Name snap_vg0
PV Size 100.00 GiB / not usable 4.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 25599
Free PE 25598
Allocated PE 1
PV UUID OJoNmc-r8Jw-9XaQ-dhMO-IASg-Kop8-RWHWsS
--- Physical volume ---
PV Name /dev/vdc
VG Name snap_vg0
PV Size 100.00 GiB / not usable 4.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 25599
Free PE 25599
Allocated PE 0
PV UUID MSAyW0-Rm0e-avpg-RMAL-4uL2-Skxe-UiYySU
--- Physical volume ---
PV Name /dev/vdd
VG Name snap_vg0
PV Size 100.00 GiB / not usable 4.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 25599
Free PE 25599
Allocated PE 0
PV UUID 18d5Xs-0f6x-WOpS-au7w-kkxi-idN8-c70atV
--- Physical volume ---
PV Name /dev/vde
VG Name snap_vg0
PV Size 100.00 GiB / not usable 4.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 25599
Free PE 25599
Allocated PE 0
PV UUID i99B4L-Rif0-suXx-Hzaa-MlfC-JWep-TPr7sf
--- Physical volume ---
PV Name /dev/vda2
VG Name vg_rahul
PV Size 49.51 GiB / not usable 3.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 12674
Free PE 0
Allocated PE 12674
PV UUID qEGmdp-dICV-qZ26-vn39-ofsU-WBDz-U0yDn5
[root@rahul ~]#
next parent reply other threads:[~2014-04-16 13:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <364130975.10063540.1397654548006.JavaMail.zimbra@redhat.com>
2014-04-16 13:28 ` Rahul Hinduja [this message]
2014-04-16 13:31 ` [linux-lvm] Issue in creating thinpool when used different pool metadatasize Rahul Hinduja
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1326353213.10069520.1397654927537.JavaMail.zimbra@redhat.com \
--to=rhinduja@redhat.com \
--cc=linux-lvm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.