# Remove failed physical disk from the storage pool

> Learn how to permanently remove a failed hard disk from your storage pool using the prepare_disk command without physical removal. Safely wipe partition tables and decommission hardware via software.

## Description {#description}

If you need to remove a failed hard disk from your storage pool and are unable to unplug it from the node physically, you can do so entirely through software. Running the `prepare_disk` command will eject the disk from the storage pool and wipe its partition table. This permanently removes the failed disk from the pool, even if it remains physically installed in the server.

## Connect to the host {#connect-to-the-host}

```bash
  $ ssh admin@192.168.1.x
  Warning: Permanently added '192.168.1.x' (ECDSA) to the list of known hosts.
  Password:
```

## Remove the disk with CLI `storage> prepare_disk` {#remove-the-disk-with-cli-storage-prepare_disk}

```bash
  s3> storage
  s3:storage> prepare_disk
    index          name      size   storage ids
  --
        1      /dev/sda    894.3G         21 23
        2      /dev/sdb    894.3G         25 27
        3      /dev/sdc      3.7T         29 31
        4      /dev/sdd      3.7T         33 35
        5      /dev/sde      3.7T         36 38
        6      /dev/sdf      3.7T         41 42
        7      /dev/sdg      3.7T         44 46
        8      /dev/sdh      3.7T         48 50
        9      /dev/sdi      3.7T         52 54
        10      /dev/sdj      3.7T         56 58
  --
  Enter the index of disk to be removed: 10
  Enter 'YES' to confirm: YES
  Remove disk /dev/sdj successfully.
```
