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 in a running cluster
-
Create new disks to the database node VMs on CLI and then attach them using --device-name=shared-NN according to your environment, this disks will be shared automatically by FlashGrid Storage Fabric. Example:
gcloud compute disks create mycluster-5c9d98fc-rac1-shared-7 --size 40 --type pd-balanced gcloud compute disks create mycluster-5c9d98fc-rac2-shared-7 --size 40 --type pd-balanced gcloud compute instances attach-disk mycluster-5c9d98fc-rac1 --disk=mycluster-5c9d98fc-rac1-shared-7 --device-name=shared-7 gcloud compute instances attach-disk mycluster-5c9d98fc-rac2 --disk=mycluster-5c9d98fc-rac2-shared-7 --device-name=shared-7
-
Confirm FlashGrid names of the new drives, e.g. rac2.shared-7
$ flashgrid-cluster drives
If the new drives are not listed then check that the corresponding devices (e.g. /dev/shared-7) are visible in the OS. If they are visible in the OS then run
flashgrid-node reload-config
and check output offlashgrid-cluster drives
again. If they are not visible in the OS or they appear with a different name then double-check that you have attached them with 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 gcloud compute instances detach-disk mycluster-5c9d98fc-rac2 --disk=mycluster-5c9d98fc-rac2-shared-7
-
Add the new disks to an existing disk group (or create a new disk group). Example:
$ flashgrid-dg add-disks -G MYDG -d /dev/flashgrid/rac[12].shared-[3-5]
References: