« Précédent -
Version 3/7
(diff) -
Suivant » -
Version actuelle
Emmanuel Quemener, 20/11/2011 09:52
- Création d'un CephFS sur les noeuds v22z[33-40]
clush -w v22z[33-40] uptime
Sur le maître :
wget q -O https://raw.github.com/NewDreamNetwork/ceph/master/keys/release.asc \
| sudo apt-key add -
sudo tee /etc/apt/sources.list.d/ceph.list <<EOF
deb http://ceph.newdream.net/debian/ squeeze main
deb-src http://ceph.newdream.net/debian/ squeeze main
EOF
sudo apt-get update
sudo apt-get install ceph ceph-common
Importation de la clé publique permettant de se connecter sans mot de passe
Passage dans le /etc/ssh/ssh_config : StrictHostKeyChecking no
- Clean process, files, etc
/etc/init.d/ceph -a stop
/etc/init.d/ceph stop
clush -b -w v22z[33-40] 'rm -r /srv/*.?? /srv/*.????? /srv/*.??.journal /etc/ceph/*.*'
rm -r /srv/mon.master/ /srv/keyring.mds.master
- Create process
clushb -w v22z[33-40] 'dd if=/dev/zero of=/dev/sda bs=512 count=65536'/dev/sda mklabel msdos'
clush -b -w v22z[33-40] 'parted -s -
clushb -w v22z[33-40] 'parted -s -/dev/sda mkpart primary 1 -1'
clush -b -w v22z[33-40] 'mkfs.ext4 -m 0 /dev/sda1'
clush -b -w v22z[33-40] 'mkdir /srv/osd.$(hostname | sed -e "s/v22z//g")'
#clush -b -w v22z[33-40] 'mount -o noatime,nodiratime,user_xattr /dev/sda1 /srv/osd.$(hostname | sed -e "s/v22z//g")'
clush -b -w v22z[33-40] 'echo -e "/dev/sda1\t/srv/osd.$(hostname | sed -e "s/v22z//g")\tauto\tnoatime,nodiratime,user_xattr\t0\t0" >> /etc/fstab'
clush -b -w v22z[33-40] 'mount /dev/sda1'
cd /etc/ceph
rm ceph.conf ceph.keyring v22z.keyring
mkcephfs -a -c v22z.conf -k v22z.keyring
clush -w v22z[33-40] sudo tee /etc/ceph/ceph.conf < v22z.conf
cp v22z.keyring ceph.keyring
cp v22z.conf ceph.conf
cp v22z.keyring keyring.bin
/etc/init.d/ceph -a restart
cd /etc/ceph
ceph -k v22z.keyring -c v22z.conf health
root@x2100-5:/etc/ceph# ceph k v22z.keyring -c v22z.conf health [health]
2011-10-22 15:29:00.510849 mon <
2011-10-22 15:29:00.511272 mon.0 > 'HEALTH_WARN 8118 pgs peering' (0) [health]
root@x2100-5:/etc/ceph# ceph -k v22z.keyring -c v22z.conf health
2011-10-22 15:29:26.371869 mon <
2011-10-22 15:29:26.372361 mon.0 > 'HEALTH_WARN 5221 pgs peering' (0) [health]
root@x2100-5:/etc/ceph# ceph -k v22z.keyring -c v22z.conf health
2011-10-22 15:30:07.176099 mon <
2011-10-22 15:30:07.176886 mon.0 -> 'HEALTH_WARN 3575 pgs peering' (0)
ceph-fuse -o big_writes /media/cephfs/
* WARNING: Ceph is still under development. Any feedback can be directed *
* at ceph-devel@vger.kernel.org or http://ceph.newdream.net/. *
ceph-fuse20096: starting ceph client
ceph-fuse20096: starting fuse