Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Installazione e configurazione del servizio Object Storage (Swift) | ||||||||
Line: 416 to 416 | ||||||||
-- EnricoFattibene - 2012-10-12 | ||||||||
Added: | ||||||||
> > |
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Installazione e configurazione del servizio Object Storage (Swift) |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Installazione e configurazione del servizio Object Storage (Swift) |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Installazione e configurazione del servizio Object Storage (Swift) | ||||||||
Line: 112 to 112 | ||||||||
exit 0 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
# restorecon -R -v /etc/rc.d/init.d/rsyncd |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Installazione e configurazione del servizio Object Storage (Swift) | ||||||||
Line: 203 to 203 | ||||||||
| ||||||||
Changed: | ||||||||
< < | service memcached restart | |||||||
> > | # service memcached restart
Fare in modo che memcached parta all'avvio del server:
# chkconfig memcached on | |||||||
| ||||||||
Line: 361 to 365 | ||||||||
# swift-init main start # swift-init rest start | ||||||||
Added: | ||||||||
> > | Fare in modo che i servizi di swift partano all'avvio del server:
# chkconfig openstack-swift-account on # chkconfig openstack-swift-container on # chkconfig openstack-swift-object on | |||||||
| ||||||||
Added: | ||||||||
> > | Fare in modo che i servizi di swift partano all'avvio del server:
# chkconfig openstack-swift-proxy on | |||||||
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Installazione e configurazione del servizio Object Storage (Swift) | ||||||||
Line: 9 to 9 | ||||||||
# yum install openstack-swift-account openstack-swift-container openstack-swift-object xfsprogs | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
# mkdir -p /etc/swift # chown -R swift:swift /etc/swift/ | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
[swift-hash] # random unique string that can never change (DO NOT LOSE) swift_hash_path_suffix = fLIbertYgibbitZ | ||||||||
Added: | ||||||||
> > | Creare e montare un volume logico attraverso i seguenti passi: | |||||||
| ||||||||
Line: 54 to 56 | ||||||||
# chown -R swift:swift /srv/node | ||||||||
Added: | ||||||||
> > |
| |||||||
Installazione e configurazione di Proxy server
| ||||||||
Line: 67 to 196 | ||||||||
| ||||||||
Changed: | ||||||||
< < | cd /etc/swift
openssl req -new -x509 -nodes -out cert.crt -keyout cert.key
| |||||||
> > | # cd /etc/swift # openssl req -new -x509 -nodes -out cert.crt -keyout cert.key | |||||||
| ||||||||
Line: 83 to 209 | ||||||||
| ||||||||
Changed: | ||||||||
< < | bind_port = 8888 | |||||||
> > | bind_port = 8080 | |||||||
user = | ||||||||
Line: 108 to 234 | ||||||||
auth_host = | ||||||||
Added: | ||||||||
> > | auth_protocol = http | |||||||
[filter:cache] use = egg:swift#memcache | ||||||||
Line: 120 to 247 | ||||||||
use = egg:swift#healthcheck | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Changed: | ||||||||
< < | cd /etc/swift
swift-ring-builder account.builder create 7 1 24
swift-ring-builder container.builder create 7 1 24
swift-ring-builder object.builder create 7 1 24
Nota bene: il numero di repliche non può essere superiore al numero di nodi storage.
| |||||||
> > | # cd /etc/swift
# swift-ring-builder account.builder create 7 1 24
# swift-ring-builder container.builder create 7 1 24
# swift-ring-builder object.builder create 7 1 24
Dove:
| |||||||
Per esempio sul nodo openstack-04.cnaf.infn.it si setta uno storage node con una partizione in Zona 1 sull'IP del server (131.154.100.113). Il mount point di questa partizione è /srv/node/swift, la partizione è il volume logico "swift", e 80 è il numero di Terabyte della partizione moltiplicato per 100. I comandi da lanciare sono: | ||||||||
Line: 145 to 275 | ||||||||
Device z1-131.154.100.113:6000/swift_"" with 80.0 weight got id 0 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
# swift-ring-builder account.builder account.builder, build version 1 | ||||||||
Line: 169 to 299 | ||||||||
0 1 131.154.100.113 6000 swift 80.00 0 -100.00 | ||||||||
Changed: | ||||||||
< < | *Rebalance the rings: | |||||||
> > |
| |||||||
# swift-ring-builder account.builder rebalance Reassigned 128 (100.00%) partitions. Balance is now 0.00. | ||||||||
Line: 181 to 311 | ||||||||
Reassigned 128 (100.00%) partitions. Balance is now 0.00. | ||||||||
Changed: | ||||||||
< < | ||||||||
> > |
| |||||||
# swift-ring-builder container.builder container.builder, build version 1 | ||||||||
Line: 205 to 335 | ||||||||
0 1 131.154.100.113 6002 swift 80.00 128 0.00 | ||||||||
Changed: | ||||||||
< < | Copy the account.ring.gz, container.ring.gz, and object.ring.gz files to each of the Proxy and Storage nodes in /etc/swift. Make sure all the config files are owned by the swift user: | |||||||
> > |
| |||||||
Added: | ||||||||
> > |
| |||||||
chown -R swift:swift /etc/swift | ||||||||
Added: | ||||||||
> > | ||||||||
| ||||||||
Line: 225 to 356 | ||||||||
# swift-init account-replicator start # swift-init account-auditor start | ||||||||
Added: | ||||||||
> > | Si possono usare i seguenti comandi compatti:
# swift-init main start # swift-init rest start | |||||||
| ||||||||
Line: 232 to 368 | ||||||||
Changed: | ||||||||
< < | Verifica:
# export ADMINPASS=secretword
# swift -V 2 -A http://![]() ![]() | |||||||
> > | Troubleshooting
| |||||||
Added: | ||||||||
> > |
| |||||||
Added: | ||||||||
> > |
| |||||||
-- EnricoFattibene - 2012-10-12 |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Installazione e configurazione del servizio Object Storage (Swift) | ||||||||
Changed: | ||||||||
< < | Installazione e configurazione di Proxy server e Storage node
| |||||||
> > | Installazione e configurazione di Storage node
| |||||||
Changed: | ||||||||
< < | # yum install openstack-swift openstack-swift-proxy openstack-swift-account openstack-swift-container openstack-swift-object memcached | |||||||
> > | # yum install openstack-swift-account openstack-swift-container openstack-swift-object xfsprogs | |||||||
| ||||||||
Line: 49 to 49 | ||||||||
# mount –a | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
# chown -R swift:swift /srv/node | ||||||||
Added: | ||||||||
> > | Installazione e configurazione di Proxy server
| |||||||
Added: | ||||||||
> > |
| |||||||
Added: | ||||||||
> > |
| |||||||
Changed: | ||||||||
< < | # yum install openstack-swift-account openstack-swift-container openstack-swift-object xfsprogs | |||||||
> > | service memcached restart
# swift-ring-builder account.builder rebalance Reassigned 128 (100.00%) partitions. Balance is now 0.00. # swift-ring-builder container.builder rebalance Reassigned 128 (100.00%) partitions. Balance is now 0.00. # swift-ring-builder object.builder rebalance Reassigned 128 (100.00%) partitions. Balance is now 0.00. | |||||||
Added: | ||||||||
> > | # swift-ring-builder container.builder container.builder, build version 1 128 partitions, 1 replicas, 1 zones, 1 devices, 0.00 balance The minimum number of hours before a partition can be reassigned is 24 Devices: id zone ip address port name weight partitions balance meta 0 1 131.154.100.113 6001 swift 80.00 128 0.00 # swift-ring-builder object.builder object.builder, build version 1 128 partitions, 1 replicas, 1 zones, 1 devices, 0.00 balance The minimum number of hours before a partition can be reassigned is 24 Devices: id zone ip address port name weight partitions balance meta 0 1 131.154.100.113 6000 swift 80.00 128 0.00 # swift-ring-builder account.builder account.builder, build version 1 128 partitions, 1 replicas, 1 zones, 1 devices, 0.00 balance The minimum number of hours before a partition can be reassigned is 24 Devices: id zone ip address port name weight partitions balance meta 0 1 131.154.100.113 6002 swift 80.00 128 0.00Copy the account.ring.gz, container.ring.gz, and object.ring.gz files to each of the Proxy and Storage nodes in /etc/swift. Make sure all the config files are owned by the swift user: chown -R swift:swift /etc/swift
![]() ![]() | |||||||
-- EnricoFattibene - 2012-10-12 |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > |
Installazione e configurazione del servizio Object Storage (Swift)Installazione e configurazione di Proxy server e Storage node
# yum install openstack-swift-account openstack-swift-container openstack-swift-object xfsprogs-- EnricoFattibene - 2012-10-12 |