|
|
@ -219,16 +219,24 @@ echo rbd >> /etc/modules
|
|
|
|
|
|
|
|
|
|
|
|
cd /etc ; git commit -m 'Use rbd kernel module' /etc/modules
|
|
|
|
cd /etc ; git commit -m 'Use rbd kernel module' /etc/modules
|
|
|
|
|
|
|
|
|
|
|
|
# Reboot...
|
|
|
|
|
|
|
|
# With new nodes, I think rest can be done via web gui XXX
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Run this on just sf-001
|
|
|
|
# Run this on just sf-001
|
|
|
|
# Doesn't need to be run again:
|
|
|
|
# Doesn't need to be run again:
|
|
|
|
# pveceph init --network 10.99.99.0/24
|
|
|
|
# pveceph init --network 10.99.99.0/24
|
|
|
|
cd /etc ; git add . ; git commit -m 'Ceph init' ceph/ pve/ceph.conf
|
|
|
|
cd /etc ; git add . ; git commit -m 'Ceph init' ceph/ pve/ceph.conf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# With new nodes, I think rest can be done via web gui XXX
|
|
|
|
|
|
|
|
# XXX It doesn't appear to set up Ceph symbolic links when adding
|
|
|
|
|
|
|
|
# nodes added after initial setup (e.g. sf-005).
|
|
|
|
|
|
|
|
# So run this, on nodes sf-005 and subsequent nodes:
|
|
|
|
|
|
|
|
cd /etc/ceph/
|
|
|
|
|
|
|
|
ln -s /etc/pve/ceph.conf ceph.conf
|
|
|
|
|
|
|
|
# It also needs a key file, copy onto new nodes, sf-005 and newer:
|
|
|
|
|
|
|
|
scp -p sf-001:/etc/ceph/ceph.client.admin.keyring .
|
|
|
|
|
|
|
|
# Reboot...
|
|
|
|
|
|
|
|
|
|
|
|
# on sf-002 sf-003 sf-004 sf-005 sf-006 sf-007
|
|
|
|
# on sf-002 sf-003 sf-004 sf-005 sf-006 sf-007
|
|
|
|
cd /etc ; git add . ; git commit -m 'Ceph init' pve/ceph.conf
|
|
|
|
cd /etc ; git add . ; git commit -a -m 'Ceph setup'
|
|
|
|
|
|
|
|
|
|
|
|
# DONT RUN SIMULTANEOUSLY XXX
|
|
|
|
# DONT RUN SIMULTANEOUSLY XXX
|
|
|
|
# Run on sf-001
|
|
|
|
# Run on sf-001
|
|
|
@ -247,6 +255,7 @@ cd /etc ; git add . ; git commit -m 'Add Ceph mons via web gui'
|
|
|
|
|
|
|
|
|
|
|
|
# Create GPT partition table on each Ceph drive, with correct device name:
|
|
|
|
# Create GPT partition table on each Ceph drive, with correct device name:
|
|
|
|
# gdisk /dev/sd[X]
|
|
|
|
# gdisk /dev/sd[X]
|
|
|
|
|
|
|
|
# This can be done via web interface now too. :)
|
|
|
|
|
|
|
|
|
|
|
|
# sf-001
|
|
|
|
# sf-001
|
|
|
|
# Then 'w' to write new GPT table
|
|
|
|
# Then 'w' to write new GPT table
|
|
|
@ -337,3 +346,5 @@ pveceph install
|
|
|
|
# Add servers:
|
|
|
|
# Add servers:
|
|
|
|
# 208.67.222.222 208.67.220.220 37.235.1.174
|
|
|
|
# 208.67.222.222 208.67.220.220 37.235.1.174
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
# XXX Add remote syslogging, monitoring, backups, etc.
|
|
|
|
|
|
|
|
#
|
|
|
|