When adding new disks, make sure that each disk group has disks of the same size and that the number of disks per node is the same.
To add new disks to a running cluster
-
Create new disks for the database node VMs using CLI and then attach them using --device-name=shared-NN according to your environment. These disks will be shared automatically by FlashGrid Storage Fabric. Example:
# rac1 gcloud compute disks create mycluster-5c9d98fc-rac1-shared-7 --size 40 --type hyperdisk-balanced --zone us-central1-a gcloud compute disks create mycluster-5c9d98fc-rac1-shared-8 --size 40 --type hyperdisk-balanced --zone us-central1-a gcloud compute instances attach-disk mycluster-5c9d98fc-rac1 --disk=mycluster-5c9d98fc-rac1-shared-7 --device-name=shared-7 --zone us-central1-a gcloud compute instances attach-disk mycluster-5c9d98fc-rac1 --disk=mycluster-5c9d98fc-rac1-shared-8 --device-name=shared-8 --zone us-central1-a # rac2 gcloud compute disks create mycluster-5c9d98fc-rac2-shared-7 --size 40 --type hyperdisk-balanced --zone us-central1-a gcloud compute disks create mycluster-5c9d98fc-rac2-shared-8 --size 40 --type hyperdisk-balanced --zone us-central1-a gcloud compute instances attach-disk mycluster-5c9d98fc-rac2 --disk=mycluster-5c9d98fc-rac2-shared-7 --device-name=shared-7 --zone us-central1-a gcloud compute instances attach-disk mycluster-5c9d98fc-rac2 --disk=mycluster-5c9d98fc-rac2-shared-8 --device-name=shared-8 --zone us-central1-a -
Confirm FlashGrid names of the new drives, e.g. rac2.shared-7, rac2.shared-8
$ flashgrid-cluster drivesIf the new drives are not listed, then check that the corresponding devices (e.g. /dev/shared-7 and /dev/shared-8) are visible in the OS. If they are visible in the OS then run as root
flashgrid-node reload-configand check the output offlashgrid-cluster drivesagain. If they are not visible in the OS or they appear with a different name, then double-check that you have attached them to the correct device name. If you need to detach the disks you can use:gcloud compute instances detach-disk mycluster-5c9d98fc-rac1 --disk=mycluster-5c9d98fc-rac1-shared-7 --zone us-central1-a gcloud compute instances detach-disk mycluster-5c9d98fc-rac1 --disk=mycluster-5c9d98fc-rac1-shared-8 --zone us-central1-a gcloud compute instances detach-disk mycluster-5c9d98fc-rac2 --disk=mycluster-5c9d98fc-rac2-shared-7 --zone us-central1-a gcloud compute instances detach-disk mycluster-5c9d98fc-rac2 --disk=mycluster-5c9d98fc-rac2-shared-8 --zone us-central1-a -
Add the new disks to an existing disk group (if creating a new disk group, refer to How to create a new Disk Group). Example:
$ flashgrid-dg add-disks -G MYDG -d /dev/flashgrid/rac[12].shared-[7-8]References: