Removing Drives Process
You will need a USB wired keyboard and monitor to be connected to the Xa-Miner to complete this process. Depending on the model of Xa-Miner you have it may have HDMI, Display Port and/or VGA outputs on the rear. You will need a monitor with an equivalent input although in some cases it’s possible to buy a cable that converts VGA output to HDMI input for example. The USB keyboard needs plugging into one of the rear USB ports, the front ones are not active.
Once you have the monitor and keyboard connected up, you should see a CLI menu with six options on the screen like below.
Type the following at the prompt:
Followed by Enter. This will drop you to a ‘bash-5.1#’ prompt. Now type:
Followed by Enter. You will see some output similar to this:
Here at the bottom of the output you can see your four storage folders, one on each HDD. The top one is the ‘first’ folder which we must leave in place, in some cases all your data is already stored in this folder like above, in other cases you may have data used in all four folders.
Removing Storage Folders from ‘spd’
Next task is to remove the storage folders from spd. To do this, enter the following commands for each of the second, third and fourth storage folder paths in the above output (note yours might be slightly different so use the path from your own output):
./spc host folder remove /mnt/storage2/hostdata
If there was data used in the folder then it will take some time to return the prompt before you can run the umount command and move onto the next folder. Repeat the process for the third and fourth folders.
Once completed, run the ‘./spc host’ command again to verify that you have just one remaining storage folder.
Removing Hard Drives from Xa-Miner
To be able to physically remove drives 2-4, we need to know which drive is the first drive. To verify, enter the command below and watch the front of the Xa-Miner for the green activity LED next to the drives. While this command is running, one of the green LED’s will be flashing showing drive activity. This will identify the first drive which must be left in the miner.
dd if=/dev/urandom of=/mnt/storage1/hostdata/test-file bs=1M count=3000
Whereby ‘/mnt/storage1/hostdata’ is the path from the spc host output (Note: change this part if your path is different). This command will create a 3GB file on the first drive. Once you have confirmed which is your first drive, enter the following command to delete the file that was just created:
If you have a UEFI/Refurb unit, repeat the above test for the second drive to verify which one it is and do not remove it.
Now you can safely remove the other three drives (two drives for UEFI/Refurb models) from the miner by pressing the blue release button on each drive sled one at a time, pulling the handle out and then sliding the drive out. To prevent dust from getting inside the unit, we recommend to just slide the drives out 10mm or so to the point you can hear them spin down and power off. Then push the lever back in, ensuring not to actually push the drive back in so it powers on again.
Once completed you can remove the keyboard and monitor. After an hour or so, you can verify the capacity of your Xa-Miner on the Stats page of the local UI or its Grafana page to confirm it is now showing a quarter of what it was before.
An important note for owners of what are known as UEFI units or refurbs. These models have a slightly different hardware configuration and recently the support team would have worked with you to make some setup changes to your unit. If that is the case then you must leave both first and second storage drives in your miner and commands to remove storage folders should only be run on the third and fourth drives.
Use the test shown above to determine which is ‘drive 2’ and then only remove the other two drives.
Adding Drives to an Xa-Miner MT
For those who have purchased an Xa-Miner MT and are wanting to use one or more drives from an existing Xa-Miner in their MT unit, after following the steps above, all that’s required is to physically remove the drive from the Xa-Miner and insert into the MT chassis in one of the available slots. The Xa-Miner MT (supervisor) will take care of formatting, mounting and adding the drive to spd automatically. Supervisor checks once an hour if there are any drives which need formatting and adding in so after insertion, give it at least an hour before checking on the Stats page of the local UI that the new capacity is showing correctly.
Note if you have an older generation of Xa-Miner, your existing drive trays may not be totally compatible with the newer Xa-Miner MT chassis. In this case it is recommended to remove the drive from the drive caddy and then fit it into a blank caddy which came with the Xa-Miner MT. Then slot the empty caddy back into the Xa-Miner to help prevent dust etc from getting into the unit. Older generation caddies have a slightly different hole pattern as shown in the picture below.