Re: Unable to set pg_num property of pool "data"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



CC back to the list.

On 08/29/2012 12:15 PM, hemant surale wrote:
$  ceph osd dump -o -|grep pg_num

pg_pool 0 'data' pg_pool(rep pg_size 1 crush_ruleset 0 object_hash
rjenkins pg_num 200 pgp_num 192 lpg_num 2 lpgp_num 2 last_change 78
owner 0)

So you are trying to decrease the number of PGs.

Now, I'm not sure if that is supported. But why would you want to do this?

Wido

pg_pool 1 'metadata' pg_pool(rep pg_size 1 crush_ruleset 1 object_hash
rjenkins pg_num 192 pgp_num 192 lpg_num 2 lpgp_num 2 last_change 39
owner 0)
pg_pool 2 'rbd' pg_pool(rep pg_size 1 crush_ruleset 2 object_hash
rjenkins pg_num 192 pgp_num 192 lpg_num 2 lpgp_num 2 last_change 41
owner 0)
  wrote 1108 byte payload to -



----------------------------------------------------------------------------------------------------------------------
On Wed, Aug 29, 2012 at 3:21 PM, Wido den Hollander <wido@xxxxxxxxx> wrote:
On 08/29/2012 11:42 AM, hemant surale wrote:

Hi Ceph Community ,
       I am facing problem while I am explicitly  trying to set
"pg_number" of "data" pool.


--------------------------------------------------------------------------------------------------------------------
root@third-virtual-machine:~# ceph osd pool set data pg_num 100
2012-08-29 15:08:52.388446 mon <- [osd,pool,set,data,pg_num,100]
2012-08-29 15:08:52.388924 mon0 -> 'specified pg_num 100 <= current 200'
(-22)


Could you show us the output of the following command?

$ ceph osd dump -o -|grep pg_num

It seems like you are trying to decrease the number of PGs?



root@third-virtual-machine:~# ceph osd pool get data pg_num
2012-08-29 15:09:04.788365 mon <- [osd,pool,get,data,pg_num]
2012-08-29 15:09:04.788833 mon0 -> 'PG_NUM: 200' (0)


-----------------------------------------------------------------------------------------------------------------
Why is it not working to set pg_number to 100. The cmd is executed
while ceph is running.
(ceph v. 0.36, ubuntu 11.10)


I recommend upgrading to Ubuntu 12.04.1 with Ceph 0.48.1

Wido


Regards,
hemant surale.
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux