Issue
I need to hotplug a disk to OnApp Storage controller.
Resolution
Here is an example of how to hot add a disk to the OnApp Storage controller:
1. Identify the Disk:
fdisk -l
Disk /dev/sda: 479.6 GB, 479559942144 bytes
255 heads, 63 sectors/track, 58303 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
2. List all devices:
[root@10.10.190.120 ~]# diskhotplug list
Controller 0
Slot 0 - /dev/sdb (SCSIid:3600304800ef4a0001a3d4e0f4f4e16eb_00eb164e4f0f4e3d1a00a0f40e800403,NodeID:862981018)
Slot 1 - /dev/sdc (SCSIid:3600304800ef4a0001a3d4e2650acf22b_002bf2ac50264e3d1a00a0f40e800403,NodeID:89199465)
Slot 2 - /dev/sdd (SCSIid:3600304800ef4a0001a3d4e3d5216bbaa_00aabb16523d4e3d1a00a0f40e800403,NodeID:2947722326)
Slot 3 - EMPTY
3. Format and configure the "disk":
[root@10.10.190.120 ~]# formatandconfigure /dev/sda
Please note that the procedure above formats all existing data on the current drive.
4. Hotplug the disk:
Where:
Controller 0
Slot 3
Device /dev/sda
[root@10.10.190.120 ~]# diskhotplug assign 0 3 /dev/sda
5. Once more, if you list disks with diskhotplug, you'll see the new disk added:
[root@10.10.190.120 ~]# diskhotplug list
Controller 0
Slot 0 - /dev/sdb (SCSIid:3600304800ef4a0001a3d4e0f4f4e16eb_00eb164e4f0f4e3d1a00a0f40e800403,NodeID:862981018)
Slot 1 - /dev/sdc (SCSIid:3600304800ef4a0001a3d4e2650acf22b_002bf2ac50264e3d1a00a0f40e800403,NodeID:89199465)
Slot 2 - /dev/sdd (SCSIid:3600304800ef4a0001a3d4e3d5216bbaa_00aabb16523d4e3d1a00a0f40e800403,NodeID:2947722326)
Slot 3 - /dev/sda (SCSIid:3600304800ef4a0001a44968406e7defa_00fadee7068496441a00a0f40e800403,NodeID:2367937567)
After the disk appears on the Datastore UI in about a minute, you will need to add the disk to the datastore by editing the datastore.