... | ... | @@ -667,34 +667,15 @@ ahead with the actual resize: |
|
|
|
|
|
# SMcli -n chi-san-01 -p $PASSWORD -c "set virtualdisk [\"tb-build-03-srv\"] addCapacity=100GB;"
|
|
|
|
|
|
Next, on the instance's primary node (in this case `chi-node-01`), we
|
|
|
need to tell `iscsiadm` to rescan the LUN. To do this we first need to
|
|
|
learn the iSCSI `targetname` we need to run the rescan command
|
|
|
against:
|
|
|
Next, we need to make all nodes in the cluster to rescan the iSCSI LUNs and have
|
|
|
`multipathd` resize the device node. This is accomplished by running this command
|
|
|
on the primary node (eg. `chi-node-01`):
|
|
|
|
|
|
# multipath -ll
|
|
|
|
|
|
This shows which device nodes (eg. `sdw`) are associated with the volume we need
|
|
|
to resize. There are usually six such nodes for each iSCSI LUN, and they will be
|
|
|
listed under the same "Target:" header in the output of the next command:
|
|
|
|
|
|
# iscsiadm -m session -P 3 | grep -e ^Target -e 'Attached scsi disk' -e 'Current Portal'
|
|
|
|
|
|
Once you have found the target name, above, trigger the iSCSI rescan with:
|
|
|
|
|
|
# iscsiadm -m node --targetname iqn.foo.org.example -R
|
|
|
# gnt-cluster command "iscsiadm -m node --rescan; multipathd -v3 -k\"resize map tb-build-srv\""
|
|
|
|
|
|
The success of this step can be validated by looking at the output of `lsblk`:
|
|
|
the device nodes associated with the LUN should now display the new size.
|
|
|
|
|
|
Next, we need to also *kick* `multipathd` to make it rescan the iSCSI LUN. The
|
|
|
volume name used here must correspond to the volume name in the output of
|
|
|
`multipath -ll`:
|
|
|
|
|
|
# multipathd -v3 -k"resize map tb-build-03-srv"
|
|
|
|
|
|
Another look at the output of `multipath -ll` should confirm the volume now
|
|
|
reflects the new size of the underlying iSCSI LUN.
|
|
|
the device nodes associated with the LUN should now display the new size. The
|
|
|
output should be identical across the cluster nodes.
|
|
|
|
|
|
In order for ganeti/qemu to make this extra space available to the instance, a
|
|
|
reboot must be performed from outside the instance.
|
... | ... | |