May 4, 201115 yr You do NOT want a jumper if you use the -A option. This will give best performance. Thanks! everyone talks about putting on the jumper and not using the -A option, but it wasn't clear what would happen if the jumper were not used in combination with the -A option.
May 24, 201115 yr Quick note - I one wants to run preclear unattended, here is a way. Be ABSOLUTELY sure you are selecting the right drive to begin with. I recommend first issuing preclear_disk.sh /dev/sdx Check the preclear warning screen, make sure the disk selected is as intended. Then abort by hitting enter. And proceed this way: echo Yes >Yes.txt nohup preclear_disk.sh /dev/sdx <Yes.txt The terminal window can now be closed. Check the syslog for the results. Personally, I'll also look into the sendmail option for next time.
May 24, 201115 yr Author You do NOT want a jumper if you use the -A option. This will give best performance. Thanks! everyone talks about putting on the jumper and not using the -A option, but it wasn't clear what would happen if the jumper were not used in combination with the -A option. It would re-format the hard disks of every PC within 1 1/2 miles. (not) Advanced format drives work best when requests for sectors are aligned with 4k boundaries. They will work perfectly fine if not, it is just the disk may have to rotate one more revolution to read parts of sectors from two adjacent 4k blocks. If you were testing under lab conditions this will show in your speed tests. In the real world, most of the media access is for contiguous sectors, as our media files are far larger than 4096 bytes. It therefore matters very little when reading a 4Gig file if the disk rotates one more time to get the initial sector that is not 4k aligned. Many users knew nothing about the jumper and used these drives in unRAID 4.6 and prior with partitions starting on sector 63. They did not notice a performance issue. Joe L.
June 10, 201115 yr What happened to being able to run this script on a drive attached to a Linux desktop? I have been running it on my Ubuntu 10.04LTS up to last time I used it (3 or 4 months ago). I am working through the AF sector 63 problem and will now have to wait until the parity check completes. And then run the preclear and swap out the data disk! Is there an option to skip checking the unRaid config file? Thanks David
June 10, 201115 yr Author What happened to being able to run this script on a drive attached to a Linux desktop? I have been running it on my Ubuntu 10.04LTS up to last time I used it (3 or 4 months ago). I am working through the AF sector 63 problem and will now have to wait until the parity check completes. And then run the preclear and swap out the data disk! Is there an option to skip checking the unRaid config file? Thanks David There is no option, but the script will probably still work if it did in the past.
June 10, 201115 yr I checked "Disk Utility" and it shows 2TB drive at /dev/sdc Here are the messages I get. david@david-1004:~$ sudo ./preclear_disk.sh -l [sudo] password for david: grep: /boot/config/disk.cfg: No such file or directory ====================================1.11 Disks not assigned to the unRAID array (potential candidates for clearing) ======================================== ./preclear_disk.sh: line 192: /boot/config/disk.cfg: No such file or directory ^C david@david-1004:~$ sudo ./preclear_disk.sh -A /dev/sdc grep: /boot/config/disk.cfg: No such file or directory ./preclear_disk.sh: line 1240: /boot/config/disk.cfg: No such file or directory It just sits there!
June 10, 201115 yr Author I checked "Disk Utility" and it shows 2TB drive at /dev/sdc Here are the messages I get. david@david-1004:~$ sudo ./preclear_disk.sh -l [sudo] password for david: grep: /boot/config/disk.cfg: No such file or directory ====================================1.11 Disks not assigned to the unRAID array (potential candidates for clearing) ======================================== ./preclear_disk.sh: line 192: /boot/config/disk.cfg: No such file or directory ^C david@david-1004:~$ sudo ./preclear_disk.sh -A /dev/sdc grep: /boot/config/disk.cfg: No such file or directory ./preclear_disk.sh: line 1240: /boot/config/disk.cfg: No such file or directory It just sits there! don;t use the "-l" option. Its entire purpose in life is to give you a list of drives on your server that are NOT in disk.cfg If you cannot figure out which drive is which on your ubuntu server, I strongly suggest you not use any utility that writes to disks since you are at risk of writing to the wrong disk.
June 11, 201115 yr Sorry Joe L. that was not a helpful reply. The first line tells you I know what drive I'm want. I do not care if the list option works. It was to show you that it is looking for "/boot/config/disk.cfg" the same as in the direct preclear command. The parity rebuild just completed, so I'll use the server. Thanks David
June 11, 201115 yr Here's a simple hackaround: sudo mkdir -p /boot/config/ sudo touch /boot/config/disk.cfg
June 11, 201115 yr Author Sorry Joe L. that was not a helpful reply. The first line tells you I know what drive I'm want. I do not care if the list option works. It was to show you that it is looking for "/boot/config/disk.cfg" the same as in the direct preclear command. The parity rebuild just completed, so I'll use the server. Thanks David I'm sorry if I mis-understood. The disk.cfg is still looked at when you specify a disk to ensure you do not shoot yourself in the foot and clear a drive already assigned to the array. I'll take a look in the code, it may not be too hard to figure out what is happening. Joe L.
June 11, 201115 yr Thanks for the reply, but remember I am trying to run preclear_disk.sh on a Ubuntu Desktop(not from it). It must have been some version on or before version 1.4 that I last used. But I updated it with 1.7. I am running ver 1.7 on the server and after 3 1/2 hours am 65% through pre-read. Thanks David
June 14, 201115 yr Author Joe L, Do you have any plans support the 3T drives. Yes, but I've not had time to code a version that will write a proper pre-clear signature for a >2.2TB drive. I just learned of what it needs to be earlier this week myself. For now, you can still use the existing pre-clear script to exercise the drive, but unRAID will not recognize it as precleared and will clear it again if you are adding it as an additional drive to an existing array. Joe L.
Archived
This topic is now archived and is closed to further replies.