From: Zdenek Kabelac <zkabelac@redhat.com>
To: device-mapper development <dm-devel@redhat.com>
Cc: "Busby.Cheung" <chaimvy@163.com>,
Alasdair G Kergon <agk@redhat.com>,
LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] New LVM2 release 2.02.89: Thinly-provisioned logical volumes
Date: Thu, 02 Feb 2012 10:41:29 +0100 [thread overview]
Message-ID: <4F2A5A49.9060407@redhat.com> (raw)
In-Reply-To: <407b84bc.164f.1353bb4d438.Coremail.chaimvy@163.com>
Dne 2.2.2012 02:36, Busby.Cheung napsal(a):
> Hi Alasdair,
>
> The kernel mesg log "failed to resize data device" while use dmsetup CMDs to create pool will be ok.
>
> use LVM2 cmd mesgs:
> ---------------------------
>
> [root@host2 ~]# pvs
> Ignoring too small pv_min_size 512KB, using default 2048KB.
> PV VG Fmt Attr PSize PFree
> /dev/sda2 VolGroup00 lvm2 a-- 931.41G 0
> /dev/sdg vg_pool lvm2 a-- 931.51G 931.51G
> /dev/sdl vg_pool lvm2 a-- 931.51G 931.51G
> [root@host2 ~]# vgs
> Ignoring too small pv_min_size 512KB, using default 2048KB.
> VG #PV #LV #SN Attr VSize VFree
> VolGroup00 1 2 0 wz--n- 931.41G 0
> vg_pool 2 0 0 wz--n- 1.82T 1.82T
> [root@host2 ~]# lvcreate -L65G -T vg_pool/pool
> Ignoring too small pv_min_size 512KB, using default 2048KB.
> Rounding up size to full physical extent 4.00 MB
> device-mapper: resume ioctl on failed: Cannot allocate memory
> Unable to resume vg_pool-pool-tpool (253:12)
> Aborting. Failed to activate thin pool.
> [root@host2 ~]# dmesg
> device-mapper: space map checker: Loading debug space map from disk. This may take some time
> device-mapper: space map checker: Load complete
> device-mapper: thin: failed to resize data device
> [root@host2 ~]# cat /var/log/messages
> Feb 2 09:14:45 host2 kernel: device-mapper: space map checker: Loading debug space map from disk. This may take some time
> Feb 2 09:14:45 host2 kernel: device-mapper: space map checker: Load complete
> Feb 2 09:14:45 host2 kernel: device-mapper: thin: failed to resize data device
>
> --------------------------
> use dmsetup cmd:
>
> [root@host2 ~]# lvcreate -n metadata_lv -L40M vg_pool
> Ignoring too small pv_min_size 512KB, using default 2048KB.
> Logical volume "metadata_lv" created
> [root@host2 ~]# lvcreate -n data_lv -L300G vg_pool
> Ignoring too small pv_min_size 512KB, using default 2048KB.
> Logical volume "data_lv" created
> [root@host2 ~]# dmsetup create pool --table "0 209715200 thin-pool /dev/vg_pool/metadata_lv /dev/vg_pool/data_lv 1024 20000"
> [root@host2 ~]# dmsetup status
> vg_pool-metadata_lv: 0 81920 linear
> VolGroup00-LogVol01: 0 24510464 linear
> vg_pool-pool-tpool: 0 136314880 thin-pool 0 76/1024 0/0 -
> vg_pool-pool_tdata: 0 136314880 linear
> VolGroup00-LogVol00: 0 1928790016 linear
> vg_pool-pool_tmeta: 0 8192 linear
> pool: 0 209715200 thin-pool 0 21/10240 0/204800 -
> vg_pool-data_lv: 0 629145600 linear
>
> [root@host2 ~]# dmesg
> device-mapper: space map checker: Loading debug space map from disk. This may take some time
> device-mapper: space map checker: Load complete
> device-mapper: thin: failed to resize data device
> device-mapper: space map checker: Loading debug space map from disk. This may take some time
> device-mapper: space map checker: Load complete
> device-mapper: space map checker: free block counts differ, checker 1020, sm-disk:948
> device-mapper: space map checker: free block counts differ, checker 10236, sm-disk:10219
>
Have you tried to build kernel without CONFIG_DM_DEBUG_SPACE_MAPS and
CONFIG_DM_DEBUG_BLOCK_STACK_TRACING ?
These two options are there only for debugging - and have major impact on
performance (and possibly on memory resource as well).
To check consistency of metadata there are now user-space tools available.
Zdenek
WARNING: multiple messages have this Message-ID (diff)
From: Zdenek Kabelac <zkabelac@redhat.com>
To: device-mapper development <dm-devel@redhat.com>
Cc: "Busby.Cheung" <chaimvy@163.com>,
Alasdair G Kergon <agk@redhat.com>,
LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] [dm-devel] New LVM2 release 2.02.89: Thinly-provisioned logical volumes
Date: Thu, 02 Feb 2012 10:41:29 +0100 [thread overview]
Message-ID: <4F2A5A49.9060407@redhat.com> (raw)
In-Reply-To: <407b84bc.164f.1353bb4d438.Coremail.chaimvy@163.com>
Dne 2.2.2012 02:36, Busby.Cheung napsal(a):
> Hi Alasdair,
>
> The kernel mesg log "failed to resize data device" while use dmsetup CMDs to create pool will be ok.
>
> use LVM2 cmd mesgs:
> ---------------------------
>
> [root@host2 ~]# pvs
> Ignoring too small pv_min_size 512KB, using default 2048KB.
> PV VG Fmt Attr PSize PFree
> /dev/sda2 VolGroup00 lvm2 a-- 931.41G 0
> /dev/sdg vg_pool lvm2 a-- 931.51G 931.51G
> /dev/sdl vg_pool lvm2 a-- 931.51G 931.51G
> [root@host2 ~]# vgs
> Ignoring too small pv_min_size 512KB, using default 2048KB.
> VG #PV #LV #SN Attr VSize VFree
> VolGroup00 1 2 0 wz--n- 931.41G 0
> vg_pool 2 0 0 wz--n- 1.82T 1.82T
> [root@host2 ~]# lvcreate -L65G -T vg_pool/pool
> Ignoring too small pv_min_size 512KB, using default 2048KB.
> Rounding up size to full physical extent 4.00 MB
> device-mapper: resume ioctl on failed: Cannot allocate memory
> Unable to resume vg_pool-pool-tpool (253:12)
> Aborting. Failed to activate thin pool.
> [root@host2 ~]# dmesg
> device-mapper: space map checker: Loading debug space map from disk. This may take some time
> device-mapper: space map checker: Load complete
> device-mapper: thin: failed to resize data device
> [root@host2 ~]# cat /var/log/messages
> Feb 2 09:14:45 host2 kernel: device-mapper: space map checker: Loading debug space map from disk. This may take some time
> Feb 2 09:14:45 host2 kernel: device-mapper: space map checker: Load complete
> Feb 2 09:14:45 host2 kernel: device-mapper: thin: failed to resize data device
>
> --------------------------
> use dmsetup cmd:
>
> [root@host2 ~]# lvcreate -n metadata_lv -L40M vg_pool
> Ignoring too small pv_min_size 512KB, using default 2048KB.
> Logical volume "metadata_lv" created
> [root@host2 ~]# lvcreate -n data_lv -L300G vg_pool
> Ignoring too small pv_min_size 512KB, using default 2048KB.
> Logical volume "data_lv" created
> [root@host2 ~]# dmsetup create pool --table "0 209715200 thin-pool /dev/vg_pool/metadata_lv /dev/vg_pool/data_lv 1024 20000"
> [root@host2 ~]# dmsetup status
> vg_pool-metadata_lv: 0 81920 linear
> VolGroup00-LogVol01: 0 24510464 linear
> vg_pool-pool-tpool: 0 136314880 thin-pool 0 76/1024 0/0 -
> vg_pool-pool_tdata: 0 136314880 linear
> VolGroup00-LogVol00: 0 1928790016 linear
> vg_pool-pool_tmeta: 0 8192 linear
> pool: 0 209715200 thin-pool 0 21/10240 0/204800 -
> vg_pool-data_lv: 0 629145600 linear
>
> [root@host2 ~]# dmesg
> device-mapper: space map checker: Loading debug space map from disk. This may take some time
> device-mapper: space map checker: Load complete
> device-mapper: thin: failed to resize data device
> device-mapper: space map checker: Loading debug space map from disk. This may take some time
> device-mapper: space map checker: Load complete
> device-mapper: space map checker: free block counts differ, checker 1020, sm-disk:948
> device-mapper: space map checker: free block counts differ, checker 10236, sm-disk:10219
>
Have you tried to build kernel without CONFIG_DM_DEBUG_SPACE_MAPS and
CONFIG_DM_DEBUG_BLOCK_STACK_TRACING ?
These two options are there only for debugging - and have major impact on
performance (and possibly on memory resource as well).
To check consistency of metadata there are now user-space tools available.
Zdenek
next prev parent reply other threads:[~2012-02-02 9:41 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-27 2:57 New LVM2 release 2.02.89: Thinly-provisioned logical volumes Alasdair G Kergon
2012-01-27 2:57 ` Alasdair G Kergon
2012-01-27 2:57 ` [linux-lvm] " Alasdair G Kergon
2012-01-27 17:51 ` Stuart D Gathman
2012-01-29 16:50 ` Alasdair G Kergon
2012-01-30 6:29 ` 答复: " Kirby Zhou
2012-01-30 6:29 ` 答复: [linux-lvm] " Kirby Zhou
2012-01-30 6:29 ` [linux-lvm] 答复: " Kirby Zhou
2012-01-30 9:43 ` [linux-lvm] 答复: New LVM2 release 2.02.89: Thinly-provisioned logical?volumes Joe Thornber
2012-01-30 9:43 ` Joe Thornber
2012-01-30 9:43 ` Joe Thornber
2012-01-30 14:30 ` [linux-lvm] ??????: " Christoph Hellwig
2012-01-30 14:30 ` [dm-devel] " Christoph Hellwig
2012-01-30 14:30 ` [linux-lvm] [dm-devel] " Christoph Hellwig
2012-01-31 9:52 ` [linux-lvm] New LVM2 release 2.02.89: Thinly-provisioned logical volumes Busby.Cheung
2012-01-31 9:52 ` Busby.Cheung
2012-01-31 9:52 ` Busby.Cheung
2012-01-31 13:23 ` Alasdair G Kergon
2012-01-31 13:23 ` Alasdair G Kergon
2012-01-31 13:23 ` Alasdair G Kergon
2012-02-01 1:42 ` Busby.Cheung
2012-02-01 1:42 ` Busby.Cheung
2012-02-01 1:42 ` Busby.Cheung
2012-02-01 12:42 ` Alasdair G Kergon
2012-02-01 12:42 ` Alasdair G Kergon
2012-02-01 8:40 ` Busby.Cheung
2012-02-01 8:40 ` Busby.Cheung
2012-02-01 12:41 ` Alasdair G Kergon
2012-02-02 1:36 ` Busby.Cheung
2012-02-02 1:36 ` Busby.Cheung
2012-02-02 9:41 ` Zdenek Kabelac [this message]
2012-02-02 9:41 ` [linux-lvm] [dm-devel] " Zdenek Kabelac
2012-02-03 2:54 ` [linux-lvm] " Busby.Cheung
2012-02-03 2:54 ` [linux-lvm] [dm-devel] " Busby.Cheung
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=4F2A5A49.9060407@redhat.com \
--to=zkabelac@redhat.com \
--cc=agk@redhat.com \
--cc=chaimvy@163.com \
--cc=dm-devel@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.