Replace a disk
You replace a failed pool disk together with vStack support: you find the disk in the Center web interface and on the node, light its LED in the rack, and replace it physically.
Before you begin
- You need the Cluster master role: only this role can see node disks.
- You have SSH access to the nodes with
rootprivileges to view the pool state. - You have a new disk of the same type, SSD or NVMe, and not smaller than the failed one.
- You have opened a request with vStack support.
- If the node page has no Disks section, find the disk on the node — step 2 — and in the rack by the serial number on its label.
1. Find the degraded pool
- In the left menu, select Provider Data Center → the cluster name → Storage Resources. The Pools table opens.
- Find a pool whose Health is Warning or Critical. Warning means the pool runs with incomplete redundancy; Critical means the node reported that the pool is unavailable.
- Look at Resilvering. Yes means the pool is already restoring data, for example to a spare disk: wait until it finishes and check Health again.
- Write down the pool name and the Current node.
If the pool is Critical, do not replace disks yourself; contact support immediately — Pool health — Critical.
2. Identify the disk on the node
A pool is built from the disks of all nodes, so the failed disk may be in a node other than the current node of the pool.
- Connect over SSH to the current node of the pool and run
zpool status <pool>. - Find the row of the disk in the
FAULTED,REMOVED,UNAVAILorOFFLINEstate. A name likediskid/DISK-node3_da2means diskda2on node 3. - Connect to the node from the disk name and run
vstack-nodeside disk list. Write down the serial number and the size of this device from theSNandSIZEcolumns. If the device is not in the list, the node no longer sees it — write down the device name.
These commands only read the state — View the cluster state on a node.
3. Find the disk in the rack
- Select Provider Data Center → the cluster name → Server Nodes and click the number of the node from step 2.
- Expand the Disks section. Find the row of the disk whose Status is Error and click it — the Disk panel opens on the right.
- Compare the Serial number and Pool in the ZFS membership block with the values you wrote down. If there is no row with Error, open the rows one by one and look for the disk by its serial number.
- Turn on the Locate switch in the LED on panel block. The LED on the disk bay lights up.
If The disk is not in an enclosure appears under the block, you cannot light the disk LED: find the disk by the serial number on its label.
4. Replace the disk together with support
- Give support the pool name, the node number, the device, the serial number and the slot.
- Wait until support removes the failed disk from the pool.
- Pull out the disk with the lit LED and check the serial number on its label.
- Insert the new disk into the same slot and notify support.
- Wait until support adds the new disk to the pool.
Check the serial number before you pull out a disk. A degraded pool with redundancy 1 cannot withstand the removal of a healthy disk.
Check the result
- Turn off the Locate switch in the Disk panel.
- In the Disks section, the new disk's Status is OK and its Role is In pool.
- In the Pools table, the pool's Resilvering is Yes while the pool restores data to the new disk. When it changes to No, Health should return to Normal.
- On the current node of the pool,
zpool status <pool>showsstate: ONLINEanderrors: No known data errors.
If Warning remains after the restore finishes — Pool health — Warning.
More
- The node first automatically tries to bring the failed disk back into service. If the disk fails again and a spare disk is set up on the node, the node replaces the failed disk with the spare one, and the pool starts restoring data automatically. You still need to replace the failed disk as described on this page.
What not to do
- Do not pull out a disk until support has removed it from the pool, and do not replace more than one disk at a time.
- Do not run
zpool replace,clear,onlineorofflineon the node. - Do not reboot the node to bring a disk back into service: while the node reboots, each pool loses one more disk.
- Do not use the disk actions in the Disk panel.
Next
- View a node: hardware, disks, performance
- View pool state and capacity
- Storage redundancy and disk recovery
API methods: pd-list, pd-led — in the API reference.