Hello.
Some time ago I learned about the software parallel: https://forums.servethehome.com/ind...create-raid-0-quick-format.41161/#post-389210
Now I have almost the same goal as previous, but I want to try and do it differently.
For setup I have:
Dell SFF desktop with single port SAS2 HBA
Total of 14 NetApp SAS3 disk shelf
Each disk shelf has 24x 960GB 12G SAS SSD's mounted
The drives run 520 sector size
The goal is to run sg_format --format -e /dev/sgXX on all the drives, preferably using parallel.
It could be done one by one but I'd like to do it using parallel to learn how it functions and potentially get this done faster for all future projects like this.
I use Ubuntu 23.10, added universe repository, used apt update and apt install parallel. Parallel is now installed as well as sg3-utils and smartmontools.
My HBA can handle 128 devices, where device 1 (or 0) is the HBA itself, so I have a total of 5 disk shelves running in a chain, which means I have 120 drives attached. They start at /dev/sg2 and end at /dev/sg126.
The command I used is:
When running it, the terminal freeze up for a few seconds, which is to be expected I guess.
However it is only /dev/sg2 and /dev/sg6 that are actually running, see image below.
All the drives are exactly the same, but only 2 of them want to actually start the format. I get no errors or any reason why all of them are not starting.
I have tried to start the drives "manually" so just using the sg_format command, and all of them start with no issues here.
If I run the command
It runs sg_format on /dev/sg2 and then on /dev/sg0, only those two.
Surely I have a problem when entering multiple devices.
Does anyone know?
Some time ago I learned about the software parallel: https://forums.servethehome.com/ind...create-raid-0-quick-format.41161/#post-389210
Now I have almost the same goal as previous, but I want to try and do it differently.
For setup I have:
Dell SFF desktop with single port SAS2 HBA
Total of 14 NetApp SAS3 disk shelf
Each disk shelf has 24x 960GB 12G SAS SSD's mounted
The drives run 520 sector size
The goal is to run sg_format --format -e /dev/sgXX on all the drives, preferably using parallel.
It could be done one by one but I'd like to do it using parallel to learn how it functions and potentially get this done faster for all future projects like this.
I use Ubuntu 23.10, added universe repository, used apt update and apt install parallel. Parallel is now installed as well as sg3-utils and smartmontools.
My HBA can handle 128 devices, where device 1 (or 0) is the HBA itself, so I have a total of 5 disk shelves running in a chain, which means I have 120 drives attached. They start at /dev/sg2 and end at /dev/sg126.
The command I used is:
Code:
parallel sg_format --format -e ::: /dev/sg[2-126]
However it is only /dev/sg2 and /dev/sg6 that are actually running, see image below.
All the drives are exactly the same, but only 2 of them want to actually start the format. I get no errors or any reason why all of them are not starting.
I have tried to start the drives "manually" so just using the sg_format command, and all of them start with no issues here.
If I run the command
Code:
parallel sg_format --format -e ::: /dev/sg[2-10]
Surely I have a problem when entering multiple devices.
Does anyone know?
Last edited: