swiftonfile doesn't work on Liberty storage node?
I've installed a Swift cluster (1 proxy + 2 storage nodes) as described in http://
After that I've installed additional storage node with a single XFS volume mounted as /srv/swiftonfil
My Swift cluster now has 2 storage policies:
/etc/swift# swift info | grep policie
policies: [{u'default': True, u'name': u'Policy-0'}, {u'name': u'swiftonfile'}]
However, when I create a container with policy:1 (swiftonfile) and upload an object to this container it doesn't use swiftonfile placement. Instead, it goes with usual Swift naming:
/etc/swift# swift post sofContainer -H 'X-Storage-Policy: swiftonfile'
/etc/swift# swift upload sofContainer /tmp/SOFfile
tmp/SOFfile
/etc/swift# ls /srv/swiftonfil
/srv/swiftonfil
I expected the object to appear as /srv/swiftonfil
Configuration:
-------
cat /etc/swift/
[DEFAULT]
bind_ip = 172.16.83.201
bind_port = 6050
devices = /srv/swiftonfiles
mount_check = false
max_clients = 1024
workers = 1
disable_fallocate = true
[pipeline:main]
pipeline = object-server
[app:object-server]
use = egg:swift#object
user = swift
log_facility = LOG_LOCAL2
log_level = DEBUG
log_requests = on
disk_chunk_size = 65536
[object-replicator]
[object-updater]
[object-auditor]
-------
cat /etc/swift/
[swift-hash]
swift_hash_
swift_hash_
[storage-policy:0]
name = Policy-0
default = yes
[storage-policy:1]
name = swiftonfile
[swift-constraints]
-------
Did I miss anything in the configuration?
Thanks in advance,
Gregory Touretsky
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- swiftonfile Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Gregory Touretsky for more information if necessary.