Hello,I recently bought a Hitachi 2TB HD, to add on the USB port and mount a RAID5 setup in Alt-F on my DNS320L Rev. AHowever, when I go to the Wizard and select RAID5, I get:"Disk has 4KB logical sector size, not yet supported."
That said, from your words it looks like you attached the disk to a USB adapter, and some USB adapters sometimes "lie" about the disk logical sector size (search the forum for that, I remember addressing that question).
Have you tried to attach the disk directly to one of the NAS bays? (or is it a 2.5" disk?) Or use another USB enclosure or adapter? I'm afraid that it is your only option. What is the disk model?As for RAID5, be certain that you "stage" the setup for a few days (including power cuts!) before relying on it, as USB is prone to connect/disconnect/timeout issues (use short and good quality USB cables) and that will require lengthy RAID rebuilds.
sgdisk --zap-all /dev/sdc # clear disk partition table
sgdisk --largest-new=1 /dev/sdc # create a partition covering the whole disk
sgdisk --typecode=1:fd00 /dev/sdc # change partition type to RAID
sgdisk --print /dev/sdc # prints the disk partition table, for confirmation
sfdisk --re-read /dev/sdc # try to force the kernel to re-read the partition table without a reboot
And this is the USB enclosure
Em sáb, 9 de jun de 2018 22:44, Tomas Black escreveu:
Em sáb, 9 de jun de 2018 22:32, Tomas Black escreveu:
[root@NAS]# sgdisk --zap-all /dev/sdcCreating new GPT entries.GPT data structures destroyed! You may now partition the disk using fdisk orother utilities.[root@NAS]# sgdisk --largest-new=1[root@NAS]# sgdisk --print /dev/sdcCreating new GPT entries.Disk /dev/sdc: 488378645 sectors, 1.8 TiBLogical sector size: 4096 bytesDisk identifier (GUID): F5186145-A4DF-4BD6-97E5-8236BD9A5BA1Partition table holds up to 128 entriesFirst usable sector is 6, last usable sector is 488378639Partitions will be aligned on 256-sector boundariesTotal free space is 488378634 sectors (1.8 TiB)Number Start (sector) End (sector) Size Code Name
As said, Alt-F don't manage 4K logical sectors disks from the Disk Wizard or Disk Partitioner. If the "offending" disk is partitioned using the command line, it will be/should be handled fine.
So you have to identify the disk first. I believe that it is the USB attached one. Use the Disk Partitioner and select one disk at a time, the message "Disk has 4KB logical sector size, use the command line to partition it." will be displayed for the relevant disk. Notice its device name, it should be 'sdc'.If it is the USB disk, unplug it and create a degraded RAID5 on the Disk Wizard using the other two disks.After that, plug the USB disk and notice its device name, it should be 'sdc', and the commands bellow *assume* that.You can then use the following commands on the command line after ssh or telnet the box and login as the 'root' user using the same password as in the webUI:sgdisk --zap-all /dev/sdc # clear disk partition tablesgdisk --largest-new=1 /dev/sdc # create a partition covering the whole disk
sgdisk --print /dev/sdc # prints the disk partition table, for confirmation
Please save and post all the above commands outputs for diagnose if any issue arisesThen add it to the already created RAID5 using Disk->RAID, and under "Component Operations", selecting "sdc1" under "Partition" and "add" under "Operation"After the rebuild finishes, which can take hours, power off the box and power it on again to see if everything is OK.The USB attached disk must always be powered on and ready before the NAS, to preserve the device names (sdc) and don't let the RAID to be created in degraded mode, which would imply a lengly rebuild.Worked?
On Sunday, 10 June 2018 02:48:49 UTC+1, Tom wrote:And this is the USB enclosureEm sáb, 9 de jun de 2018 22:44, Tomas Black escreveu:This is the HDEm sáb, 9 de jun de 2018 22:32, Tomas Black escreveu:Em sáb, 9 de jun de 2018 20:11, João Cardoso escreveu:That said, from your words it looks like you attached the disk to a USB adapter, and some USB adapters sometimes "lie" about the disk logical sector size (search the forum for that, I remember addressing that question).Have you tried to attach the disk directly to one of the NAS bays? (or is it a 2.5" disk?) Or use another USB enclosure or adapter? I'm afraid that it is your only option. What is the disk model?As for RAID5, be certain that you "stage" the setup for a few days (including power cuts!) before relying on it, as USB is prone to connect/disconnect/timeout issues (use short and good quality USB cables) and that will require lengthy RAID rebuilds.It is a Hitachi 2tb Ultrastar, model HUA7230ALA640, the cheapest 2tb I could buy new. I don't know if it has 4kb logical sectors, need to research its specs.As for the USB enclosure, it is a Seagate USB3.0 one. Good quality, short USB cable. Previously I had another Hitach on it, HUA7200ALA330, that worked w/o problems.
--You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/alt-f.
For more options, visit https://groups.google.com/d/optout.
Hello João,I believe it worked. See the output of the commands:[root@NAS]# sgdisk --zap-all /dev/sdcCreating new GPT entries.GPT data structures destroyed! You may now partition the disk using fdisk orother utilities.[root@NAS]# sgdisk --largest-new=1
[root@NAS]# sgdisk --print /dev/sdcCreating new GPT entries.Disk /dev/sdc: 488378645 sectors, 1.8 TiBLogical sector size: 4096 bytesDisk identifier (GUID): F5186145-A4DF-4BD6-97E5-8236BD9A5BA1Partition table holds up to 128 entriesFirst usable sector is 6, last usable sector is 488378639Partitions will be aligned on 256-sector boundaries
Total free space is 488378634 sectors (1.8 TiB)Number Start (sector) End (sector) Size Code Name
I did everything else you said, but sdc is not yet showing as availble drive to be added to the RAID5 setup.
See all SSs I took during the process:
ok, I'll redo all the commands, but what are the new command (missing) that you will add shortly?
I just copy and pasted your commands.
(yes, it is indeed /dev/sdc, the USB HD)Please provide the updated commands, I`ll run them againThanks!
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/alt-f.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/alt-f.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
[root@NAS]# sgdisk --zap-all /dev/sdcCreating new GPT entries.GPT data structures destroyed! You may now partition the disk using fdisk orother utilities.
[root@NAS]# sgdisk --set-alignment=8 /dev/sdcCreating new GPT entries.[root@NAS]# sgdisk --largest-new=1 /dev/sdcCreating new GPT entries.The operation has completed successfully.[root@NAS]# sgdisk --typecode=1:fd00 /dev/sdcThe operation has completed successfully.
[root@NAS]# sgdisk --print /dev/sdc
Disk /dev/sdc: 488378645 sectors, 1.8 TiBLogical sector size: 4096 bytes
Disk identifier (GUID): 61D7D557-134B-4F50-B441-058779127411
Partition table holds up to 128 entriesFirst usable sector is 6, last usable sector is 488378639Partitions will be aligned on 256-sector boundaries
Total free space is 250 sectors (1000.0 KiB)
Number Start (sector) End (sector) Size Code Name
1 256 488378639 1.8 TiB FD00[root@NAS]#
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/alt-f.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/alt-f.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/alt-f.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/alt-f.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/alt-f.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/alt-f.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.



It failed to add:
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/alt-f.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/alt-f.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/alt-f.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+unsubscribe@googlegroups.com.
I rebooted the box and then sdc was added correctly :-)
However, Alt-F shows it with 250Gb only, instead of the 1.8Gb like the others:
[root@NAS]# sgdisk --print /dev/sdcDisk /dev/sdc: 488378645 sectors, 1.8 TiBLogical sector size: 4096 bytes
...
Total free space is 250 sectors (1000.0 KiB)Number Start (sector) End (sector) Size Code Name1 256 488378639 1.8 TiB FD00
My understanding is that it should have 3.6Gb free.
Alt-F shows it with only 1.8Gb:The RAID section of Alt-F shows all drives included on the pool:
What am I missing? Where is the error?
It failed to add:


/dev/md0:
Version : 1.0
Creation Time : Mon Jun 11 20:31:55 2018
Raid Level : raid5
Array Size : 3905974272 (3725.03 GiB 3999.72 GB)
Used Dev Size : 1952987136 (1862.51 GiB 1999.86 GB)
Raid Devices : 3
Total Devices : 3
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Mon Jun 11 20:32:46 2018
State : clean, FAILED
Active Devices : 1
Working Devices : 2
Failed Devices : 1
Spare Devices : 1
Layout : left-symmetric
Chunk Size : 512K
Name : NAS:0 (local to host NAS)
UUID : faf83c95:090ff181:e202e553:9ce381f1
Events : 11
Number Major Minor RaidDevice State
0 8 2 0 active sync /dev/sda2
1 0 0 1 removed
2 0 0 2 removed
1 8 18 - faulty spare /dev/sdb2
3 8 33 - spare /dev/sdc1
/proc/mdstat:
Personalities : [linear] [raid0] [raid1] [raid6] [raid5] [raid4]
md0 : active raid5 sdc1[3](S) sdb2[1](F) sda2[0]
3905974272 blocks super 1.0 level 5, 512k chunk, algorithm 2 [3/1] [U__]
bitmap: 0/15 pages [0KB], 65536KB chunk
unused devices:
/dev/sdc1:
Magic : a92b4efc
Version : 1.0
Feature Map : 0x1
Array UUID : faf83c95:090ff181:e202e553:9ce381f1
Name : NAS:0 (local to host NAS)
Creation Time : Mon Jun 11 20:31:55 2018
Raid Level : raid5
Raid Devices : 3
Avail Dev Size : 3907026800 (1863.02 GiB 2000.40 GB)
Array Size : 7811948544 (3725.03 GiB 3999.72 GB)
Used Dev Size : 3905974272 (1862.51 GiB 1999.86 GB)
Super Offset : 3907027056 sectors
State : clean
Device UUID : eb577339:f1f108ec:874f2aa4:98af21f9
Internal Bitmap : -8 sectors from superblock
Update Time : Mon Jun 11 20:32:46 2018
Checksum : 72eaf55d - correct
Events : 11
Layout : left-symmetric
Chunk Size : 512K
Device Role : spare
Array State : A.. ('A' == active, '.' == missing)

Ok, I did unmount and destroy the current RAID setup. Then I formatted sdc with the same FS than sda and sdb (btffs).
Then I created a new RAID5 setup using the 3 devices.It seems it went fine,
Hi João,yes I know all of that. I tried to resume the many actions I did to get it working, so it looked dumb on your eyes :-)I even tried to "level" the FS of sdc to the same of sda and sdb, that's why I said "I formatted sdc with the same FS than sda and sdb (btffs)". You know, at some point you try starting unusual things to have things working...In summary: I could not get it going yet. I tried many thing which are too long to describe here, but in short I erased all FSs from all drives, tried partitioning manually them, changed GPT <--> MBR and used quite all optoins of the Atl-F FS Maitennace window :-)The drives are quite new, not many hours of usage, SMART is OK for all of them, however I have not tried the long test.Thanks for the tip regarding the temperature, I oversaw that. Now I've set it to auto and it lowered to high 30sI have one question for you: how do I setup a swap partition using sgdisk command? The MAN page is not clear on that, at best I could create a swap + RAID partition, but entering the sectores number (which I don't know for this HD), using the --new=partnum:start:end option.
But it did not look good. I aim to have all the 3 HDs with the exate same space for swap and RAID partitions.
Another question I have is: for Alt-F, should we use them as GPT or MBR?
Right now I'm starting from scratch. I'm considering partitioning all of them from the command line again (since sdc won't partition from the GUI), identically. Appreciate if you can share some words on this.Thanks a lot for your time. By the way, if you want to do other tests with this 4k HD, please let me know. I don't have any data on the HDs :-D
Tom
One additional comment:you said "If that fails, I can only attribute it to the SATA-USB adapter lying to the OS saying that the enclosure disk has 4K bytes sectors, which certainly is not true for a 2TB disk"--> I had another 2TB on this same USB enclosure that was not detected as having 4k bytes sectors. (it was another Hitachi model, that was already failing, I just used it for testing purposes)So I conclude the problem is a combination of the HD + USB enclosure. Some work, others don't. Agree?
On Tue, Jun 12, 2018 at 8:31 AM, Tomas Black wrote:
Hi João,yes I know all of that. I tried to resume the many actions I did to get it working, so it looked dumb on your eyes :-)I even tried to "level" the FS of sdc to the same of sda and sdb, that's why I said "I formatted sdc with the same FS than sda and sdb (btffs)". You know, at some point you try starting unusual things to have things working...In summary: I could not get it going yet. I tried many thing which are too long to describe here, but in short I erased all FSs from all drives, tried partitioning manually them, changed GPT <--> MBR and used quite all optoins of the Atl-F FS Maitennace window :-)The drives are quite new, not many hours of usage, SMART is OK for all of them, however I have not tried the long test.Thanks for the tip regarding the temperature, I oversaw that. Now I've set it to auto and it lowered to high 30sI have one question for you: how do I setup a swap partition using sgdisk command? The MAN page is not clear on that, at best I could create a swap + RAID partition, but entering the sectores number (which I don't know for this HD), using the --new=partnum:start:end option. But it did not look good. I aim to have all the 3 HDs with the exate same space for swap and RAID partitions.Another question I have is: for Alt-F, should we use them as GPT or MBR?Right now I'm starting from scratch. I'm considering partitioning all of them from the command line again (since sdc won't partition from the GUI), identically. Appreciate if you can share some words on this.Thanks a lot for your time. By the way, if you want to do other tests with this 4k HD, please let me know. I don't have any data on the HDs :-DTom

It failed to add:
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/alt-f.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/alt-f.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/alt-f.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/alt-f.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/alt-f.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/alt-f.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/alt-f.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
Hello,I had the exact same problem as Tomas and I followed the steps but I coulndn't add /dev/sdc to the degraded RAID5 array.What I did then is I destroyed the array and created a new one with "Disk -> RAID -> Raid Creation" selecting sda2 sdb2 sdc1 (sd*2 because the internal disks have swap on sd*1)
and it took half a day but it worked!Now though in the main Status window I see under "Disks"left sda HGST HUS724030ALA640 3.0TB active or idle 37°C/98°F passedright sdb HGST HUS724030ALA640 3.0TB active or idle 38°C/100°F passedusb sdc HGST HUS724030ALA640 3.0TB -- 38°C/100°F passed
With the last "passed" of usb sdc in red. Why is it in red?
=== START OF READ SMART DATA SECTION === SMART Status not supported: Incomplete response, ATA output registers missing SMART overall-health self-assessment test result: PASSED Warning: This result is based on an Attribute check.