... | ... | @@ -164,39 +164,12 @@ initiator properly setup](howto/new-machine-cymru#iscsi-initiator-setup), and th |
|
|
setup](howto/new-machine-cymru#san-management-tools-setup). It also assumes you are familiar with the `SMcli` tool, see
|
|
|
the [storage servers documentation](howto/new-machine-cymru#storage-servers) for an introduction on that.
|
|
|
|
|
|
0. review the current storage allocation configuration
|
|
|
1. create a dedicated disk group and virtual disk on the SAN, assign it to the
|
|
|
host group and propagate the multipath config across the cluster nodes:
|
|
|
|
|
|
/usr/local/sbin/tpo-show-san-disks
|
|
|
|
|
|
1. create a dedicated disk group and virtual disk on the SAN and assign it to
|
|
|
the host group:
|
|
|
|
|
|
puppet agent --disable "creating a SAN disk"
|
|
|
$EDITOR /usr/local/sbin/tpo-create-san-disks
|
|
|
/usr/local/sbin/tpo-create-san-disks
|
|
|
puppet agent --enable
|
|
|
|
|
|
WARNING: the above script needs to be edited before it does the
|
|
|
right thing. It will show the LUN numbers in use below. This,
|
|
|
obviously, is not ideal, and should be replaced by a Ganeti
|
|
|
external storage provider.
|
|
|
|
|
|
NOTE: the `logicalUnitNumber` here must be an increment from the
|
|
|
previous highest LUN. See also the [disk creation instructions](howto/new-machine-cymru#creating-a-disk)
|
|
|
for a discussion.
|
|
|
/usr/local/sbin/tpo-create-san-disks --san chi-node-03 --name test-01 --capacity 500
|
|
|
|
|
|
2. configure the disk on all Ganeti nodes, in Puppet's
|
|
|
`profile::ganeti::chi` class:
|
|
|
|
|
|
iscsi::multipath::alias { 'test-01':
|
|
|
wwid => '36782bcb00063c6a500000d67603f7abf',
|
|
|
}
|
|
|
|
|
|
3. propagate the magic to all nodes in the cluster:
|
|
|
|
|
|
gnt-cluster command "puppet agent -t"
|
|
|
|
|
|
4. confirm that multipath works, it should look something like this":
|
|
|
2. confirm that multipath works, it should look something like this":
|
|
|
|
|
|
root@chi-node-01:~# multipath -ll
|
|
|
test-01 (36782bcb00063c6a500000d67603f7abf) dm-20 DELL,MD32xxi
|
... | ... | @@ -211,9 +184,7 @@ the [storage servers documentation](howto/new-machine-cymru#storage-servers) for |
|
|
`- 8:0:0:4 sdm 8:192 active ghost running
|
|
|
root@chi-node-01:~#
|
|
|
|
|
|
and the device `/dev/mapper/test-01` should exist.
|
|
|
|
|
|
5. adopt the disk in Ganeti:
|
|
|
3. adopt the disk in Ganeti:
|
|
|
|
|
|
gnt-instance add \
|
|
|
-n chi-node-01.torproject.org \
|
... | ... | @@ -231,7 +202,7 @@ the [storage servers documentation](howto/new-machine-cymru#storage-servers) for |
|
|
|
|
|
NOTE: mixing DRBD and iSCSI volumes on a single instance is not supported.
|
|
|
|
|
|
6. at this point, the VM probably doesn't boot, because for some
|
|
|
4. at this point, the VM probably doesn't boot, because for some
|
|
|
reason the `gnt-instance-debootstrap` doesn't fire when disks are
|
|
|
adopted. so you need to reinstall the machine, which involves
|
|
|
stopping it first:
|
... | ... | |