[Openstack] swift-recon over different rings
    Carlos Rodrigues 
    cmar at eurotux.com
       
    Fri Jun 17 13:49:27 UTC 2016
    
    
  
Hello Mark,
Thank you for your answer.
What openstack/swift version are you using?
I have liberty openstack swift and swift-recon returns error when i run
with -p option
$ swift-recon -v -p 0 --md5
=======================================================================
========
Usage: 
        usage: swift-recon <server_type> [-v] [--suppress] [-a] [-r] [-
u] [-d]
        [-l] [-T] [--md5] [--auditor] [--updater] [--expirer] [
--sockstat]
        [--human-readable]
        <server_type>	account|container|object
        Defaults to object server.
        ex: swift-recon container -l --auditor
        
swift-recon: error: no such option: -p
And i have the following pollicies/rings:
$ cat /etc/swift/swift.conf 
...
[storage-policy:0]
name = Policy-0
policy_type = replication
deprecated = yes
[storage-policy:1]
name = P-R-3C-1S
default = yes
policy_type = replication
[storage-policy:2]
name = P-R-4C-2S
policy_type = replication
[storage-policy:3]
name = P-R-2C-1S-B
policy_type = replication
Regards,
Carlos Rodrigues
On Fri, 2016-06-17 at 22:16 +1200, Mark Kirkwood wrote:
> On 17/06/16 16:12, Mark Kirkwood wrote:
> > On 16/06/16 22:38, Carlos Rodrigues wrote:
> > > Hello,
> > > 
> > > 
> > > How do i run swift-recon over different rings/policies?
> > > 
> > > When i run swift-recon, it returns information
> > > about account.ring.gz, container.ring.gz and object.ring.gz, and
> > > i have
> > > other rings/policies created.
> > > How do i get information about these rings/policies?
> > > 
> > > 
> > 
> > I think the -p option is the one you want e.g:
> > 
> > $ swift-recon -v -p 0 --md5
> > 
> 
> Well, spoke a bit soon eh? Trying this out on a system where I have
> two 
> policies:
> 
> $ cat /etc/swift/swift.conf
> ...
> [storage-policy:0]
> name = Policy-0
> default = yes
> #policy_type = replication
> 
> [storage-policy:1]
> name = one
> policy_type = erasure_coding
> ec_type = liberasurecode_rs_vand
> ec_num_data_fragments = 2
> ec_num_parity_fragments = 2
> ec_object_segment_size = 1048576
> 
> 
> I see the same info for (say):
> 
> $ swift-recon -v -p 0 --md5
> 
> and -p 1/one etc.
> 
> So sorry for the not so helpful advice, and yes I'd like to know how
> to 
> get better recon based into for polices too!
> 
> Cheers
> 
> Mark
> 
> 
> 
> _______________________________________________
> Mailing list: http://lists.openstack.org/cgi-
> bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe : http://lists.openstack.org/cgi-
> bin/mailman/listinfo/openstack
-- 
Carlos Rodrigues 
Engenheiro de Software Sénior
Eurotux Informática, S.A. | www.eurotux.com
(t) +351 253 680 300 (m) +351 911 926 110
    
    
More information about the Openstack
mailing list