MasterTacoChief
Explorer
- Joined
- Feb 20, 2017
- Messages
- 67
I picked up three brand new HUS726040AL421 to create a new zvol. These are 4kn drives, but from what I read that shouldn't be a problem. Unfortunately I'm not having much luck getting gpart to work with them.
First, I noticed they are formatted with type 2 protection:
So I formatted one overnight with sg_format --format --size=4096 --fmtpinfo=0 /dev/da12 -v
Now that drive no longer shows type 2 protection:
For testing, I tried creating a single-disk stripe in the FreeNAS GUI, but I still end up getting an error from gpart:
From the console I try partitioning the drive. I get errors at each command, but then gpart show actually reports that the command did what I asked of it:
But if I try to use gpart destroy then I get an error that the disk is busy, even though sg_turs reports the disk is ready:
Using the -F argument on gpart destroy produces another error, but the gpart show reports it has done what I asked again.
Anyone experience behavior like this? Any ideas of what else to try before I give up on these drives?
First, I noticed they are formatted with type 2 protection:
Code:
=== START OF INFORMATION SECTION === Vendor: IBM-ESXS Product: HUS726040AL421 Revision: J6J1 Compliance: SPC-4 User Capacity: 4,000,787,030,016 bytes [4.00 TB] Logical block size: 4096 bytes Formatted with type 2 protection LU is fully provisioned Rotation Rate: 7200 rpm Form Factor: 3.5 inches Logical Unit id: 0x5000cca25db0b498 Serial number: Device type: disk Transport protocol: SAS (SPL-3)
So I formatted one overnight with sg_format --format --size=4096 --fmtpinfo=0 /dev/da12 -v
Now that drive no longer shows type 2 protection:
Code:
=== START OF INFORMATION SECTION === Vendor: IBM-ESXS Product: HUS726040AL421 Revision: J6J1 Compliance: SPC-4 User Capacity: 4,000,787,030,016 bytes [4.00 TB] Logical block size: 4096 bytes LU is fully provisioned Rotation Rate: 7200 rpm Form Factor: 3.5 inches Logical Unit id: 0x5000cca25db02654 Serial number: Device type: disk Transport protocol: SAS (SPL-3)
For testing, I tried creating a single-disk stripe in the FreeNAS GUI, but I still end up getting an error from gpart:
Code:
Exception Type: MiddlewareError at /storage/volumemanager/ Exception Value: [MiddlewareError: Unable to GPT format the disk "da12": gpart: geom 'da12': File exists
From the console I try partitioning the drive. I get errors at each command, but then gpart show actually reports that the command did what I asked of it:
Code:
root@nas2:~ # gpart create -s gpt /dev/da12 gpart: geom 'da12': File exists root@nas2:~ # gpart show da12 => 6 976754635 da12 GPT (3.6T) 6 976754635 - free - (3.6T) root@nas2:~ # gpart add -i 1 -b 123 -t freebsd-swap -s 2g /dev/da12 gpart: Invalid argument root@nas2:~ # gpart show da12 => 6 976754635 da12 GPT (3.6T) 6 117 - free - (468K) 123 524288 1 freebsd-swap (2.0G) 524411 976230230 - free - (3.6T) root@nas2:~ # gpart add -i 2 -t freebsd-zfs /dev/da12 gpart: Invalid argument root@nas2:~ # gpart show da12 => 6 976754635 da12 GPT (3.6T) 6 117 - free - (468K) 123 524288 1 freebsd-swap (2.0G) 524411 976230230 2 freebsd-zfs (3.6T)
But if I try to use gpart destroy then I get an error that the disk is busy, even though sg_turs reports the disk is ready:
Code:
root@nas2:~ # gpart destroy /dev/da12 gpart: Device busy root@nas2:~ # sg_turs -p da12 -v test unit ready cdb: 00 00 00 00 00 00
Using the -F argument on gpart destroy produces another error, but the gpart show reports it has done what I asked again.
Code:
root@nas2:~ # gpart destroy -F /dev/da12 gpart: Invalid argument root@nas2:~ # gpart show da12 => 0 976754646 da12 (none) (3.6T) 0 976754646 - free - (3.6T)
Anyone experience behavior like this? Any ideas of what else to try before I give up on these drives?