]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Add rc script for rbd map/unmap 378/head
authorLaurent Barbe <laurent@ksperis.com>
Fri, 21 Jun 2013 15:17:09 +0000 (17:17 +0200)
committerSage Weil <sage@inktank.com>
Tue, 25 Jun 2013 04:48:26 +0000 (21:48 -0700)
commita4ddf704868832e119d7949e96fe35ab1920f06a
tree5c97018172e98f74884035de6c009e9ca37c9270
parent37a20174fd22a79938ba9c93046e8830f4a3306f
Add rc script for rbd map/unmap

Init script for mapping/unmapping rbd device on startup and shutdown.
On start, map rbd dev according to /etc/rbdmap, and force mount -a
On stop, umount file system depending on rbd and unmap all rbd
Since some distribution use symlink for /etc/mtab, the user-space attribute _netdev is not enough to umount file system before rbd dev.
(also concern: #1790)

Signed-off-by: Laurent Barbe <laurent@ksperis.com>
src/init-rbdmap [new file with mode: 0755]
src/rbdmap [new file with mode: 0644]