New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DNM: adding rmfs etc (wip-nullfs) #1852
Commits on Jun 6, 2014
-
doc: RPM instructions correction
Signed-off-by: John Spray <john.spray@inktank.com>
John Spray authored and John Spray committedJun 6, 2014 -
mds: add 'enabled' flag to MDSMap
When 'enabled' is false, the MDSMap is effectively null. This allows Ceph clusters with no filesystem or filesystem data/metadata pools. Signed-off-by: John Spray <john.spray@inktank.com>
John Spray authored and John Spray committedJun 6, 2014 -
Because not everyone uses CephFS, we would like to avoid initially creating any data/metadata pools for CephFS. To avoid creating those pools, we must avoid initially populating the MDSMap. Signed-off-by: John Spray <john.spray@inktank.com>
John Spray authored and John Spray committedJun 6, 2014 -
osdmap: Don't create FS pools by default
Because many Ceph users don't use the filesystem, don't create the 'data' and 'metadata' pools by default -- they will be created by newfs if they are needed. Signed-off-by: John Spray <john.spray@inktank.com>
John Spray authored and John Spray committedJun 6, 2014 -
mon: don't require 'sure' flag for new fs
Only prompt for --yes-i-really-mean-it if there is an existing FS. Signed-off-by: John Spray <john.spray@inktank.com>
John Spray authored and John Spray committedJun 6, 2014 -
mon: validate pools exist in newfs
Previously we trusted user implicitly: now check input against OSDMap to validate that the pools really exist. Signed-off-by: John Spray <john.spray@inktank.com>
John Spray authored and John Spray committedJun 6, 2014 -
mon: warn in newfs if crash_replay_interval=0
This is the setting we would apply to data pools created automatically, so notify the user if they're failing to use it for data pools they have created by hand. Signed-off-by: John Spray <john.spray@inktank.com>
John Spray authored and John Spray committedJun 6, 2014 -
mon: enable deleting pools when FS disabled
Signed-off-by: John Spray <john.spray@inktank.com>
John Spray authored and John Spray committedJun 6, 2014 -
mon: stop MDSMonitor when FS disabled
Where 'stopped' means ignoring beacons and not performing 'tick' activities. Signed-off-by: John Spray <john.spray@inktank.com>
John Spray authored and John Spray committedJun 6, 2014 -
Sets enabled=false on the mds map so that an administrator can remove the filesystem pools if he wishes. Signed-off-by: John Spray <john.spray@inktank.com>
John Spray authored and John Spray committedJun 6, 2014 -
mon: refactor MDSMonitor cmd handler
MDS commands are now divided into two handler functions, one for create/remove of the filesystem, and one for operations on the filesystem itself. Signed-off-by: John Spray <john.spray@inktank.com>
John Spray authored and John Spray committedJun 6, 2014 -
mon: forbid 'mds rmfs' while daemons are running
This avoids the need to do anything clever about kicking out MDS daemons during a rmfs: we push that responsibility onto the admin to run 'mds stop' or somestuch first. Signed-off-by: John Spray <john.spray@inktank.com>
John Spray authored and John Spray committedJun 6, 2014 -
newfs and rmfs commands now refer to the filesystem by name, so that in future these commands can support a multi-filesystem model. rmfs when no filesystem exists is now a warning rather than an error. Signed-off-by: John Spray <john.spray@inktank.com>
-
vstart: update for newfs/rmfs changes
Signed-off-by: John Spray <john.spray@inktank.com>
John Spray authored and John Spray committedJun 6, 2014 -
qa: update for newfs/rmfs changes
Signed-off-by: John Spray <john.spray@inktank.com>
John Spray authored and John Spray committedJun 6, 2014 -
test/cli: Update for only 1 default pool
Tests for osdmaptool previously assumed that --createsimple would always result in at least 3 pools. Signed-off-by: John Spray <john.spray@inktank.com>
John Spray authored and John Spray committedJun 6, 2014 -
mon: hide mdsmap in 'ceph status' if not enabled
Previously we checked if the MDS map had ever been updated (epoch > 1), now we have an explicit flag for whether it's enabled. Signed-off-by: John Spray <john.spray@inktank.com>
John Spray authored and John Spray committedJun 6, 2014 -
test: update test_ceph_argparse for newfs/rmfs
Signed-off-by: John Spray <john.spray@inktank.com>
John Spray authored and John Spray committedJun 6, 2014 -
test: update tests that used 'data' pool
Signed-off-by: John Spray <john.spray@inktank.com>
John Spray authored and John Spray committedJun 6, 2014 -
test/TestOSDMap: create EC pool cleanly
Previously assumed that a pool with ID 2 existed in the default OSD map. Signed-off-by: John Spray <john.spray@inktank.com>
John Spray authored and John Spray committedJun 6, 2014 -
mon: implement "fs [new|rm|ls]"
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray committedJun 6, 2014 -
test: add "fs [new|ls|rm]" argparse tests
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray committedJun 6, 2014 -
qa: update 'newfs' -> 'fs new'
& also catch some more tests that were assuming a 'data' pool existed. Signed-off-by: John Spray <john.spray@redhat.com>
John Spray committedJun 6, 2014 -
vstart: update from newfs to 'fs new'
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray committedJun 6, 2014