r/zfs•
AngryAdmi

520K disk hell :/

Not entirely ZFS but, might be.

I formatted these drives with the sg_format -v --format --size 512 /dev......
I then attempted to add them to an existing pool. No good.

Tried making a zfs pool of one of the drives:
root@pve01:~# zpool create stak /dev/disk/by-id/scsi-35000cca02c1735f8
cannot label 'sdc': try using parted(8) and then provide a specific slice: -3
No good.
Tried parted mklabel gpt. no good, msdos? no good.

tried wiping disk in proxmox, no good.

Each time I try to access any of the 10 drives I Have I get this:

[ 64.895024] fwbr129i0: port 2(tap129i0) entered blocking state

[ 64.895026] fwbr129i0: port 2(tap129i0) entered forwarding state

[ 1262.759229] sd 4:0:2:0: [sdc] tag#1397 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE cmd_age=0s

[ 1262.759240] sd 4:0:2:0: [sdc] tag#1397 Sense Key : Aborted Command [current]

[ 1262.759244] sd 4:0:2:0: [sdc] tag#1397 <<vendor>>ASC=0x81 ASCQ=0x0

[ 1262.759247] sd 4:0:2:0: [sdc] tag#1397 CDB: Write(10) 2a 00 00 00 00 01 00 00 05 00

[ 1262.759250] blk_update_request: I/O error, dev sdc, sector 8 op 0x1:(WRITE) flags 0x8800 phys_seg 5 prio class 0

[ 1449.495200] sd 4:0:2:0: [sdc] tag#1417 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE cmd_age=0s

[ 1449.495211] sd 4:0:2:0: [sdc] tag#1417 Sense Key : Aborted Command [current]

[ 1449.495215] sd 4:0:2:0: [sdc] tag#1417 <<vendor>>ASC=0x81 ASCQ=0x0

[ 1449.495218] sd 4:0:2:0: [sdc] tag#1417 CDB: Write(10) 2a 00 00 00 00 01 00 00 05 00

[ 1449.495221] blk_update_request: I/O error, dev sdc, sector 8 op 0x1:(WRITE) flags 0x8800 phys_seg 5 prio class 0

[ 1535.768378] sd 4:0:2:0: [sdc] tag#1433 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE cmd_age=0s

[ 1535.768388] sd 4:0:2:0: [sdc] tag#1433 Sense Key : Aborted Command [current]

[ 1535.768392] sd 4:0:2:0: [sdc] tag#1433 <<vendor>>ASC=0x81 ASCQ=0x0

[ 1535.768396] sd 4:0:2:0: [sdc] tag#1433 CDB: Write(10) 2a 00 00 00 00 01 00 00 05 00

[ 1535.768399] blk_update_request: I/O error, dev sdc, sector 8 op 0x1:(WRITE) flags 0x8800 phys_seg 5 prio class 0

root@pve01:~# zpool create stak /dev/disk/by-id/scsi-35000cca02c1735f8

cannot label 'sdc': try using parted(8) and then provide a specific slice: -3

root@pve01:~# dmesg | tail -25

[ 64.891561] vmbr0: port 6(fwpr129p0) entered forwarding state

[ 64.894945] fwbr129i0: port 2(tap129i0) entered blocking state

[ 64.894954] fwbr129i0: port 2(tap129i0) entered disabled state

[ 64.895024] fwbr129i0: port 2(tap129i0) entered blocking state

[ 64.895026] fwbr129i0: port 2(tap129i0) entered forwarding state

[ 1262.759229] sd 4:0:2:0: [sdc] tag#1397 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE cmd_age=0s

[ 1262.759240] sd 4:0:2:0: [sdc] tag#1397 Sense Key : Aborted Command [current]

[ 1262.759244] sd 4:0:2:0: [sdc] tag#1397 <<vendor>>ASC=0x81 ASCQ=0x0

[ 1262.759247] sd 4:0:2:0: [sdc] tag#1397 CDB: Write(10) 2a 00 00 00 00 01 00 00 05 00

[ 1262.759250] blk_update_request: I/O error, dev sdc, sector 8 op 0x1:(WRITE) flags 0x8800 phys_seg 5 prio class 0

[ 1449.495200] sd 4:0:2:0: [sdc] tag#1417 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE cmd_age=0s

[ 1449.495211] sd 4:0:2:0: [sdc] tag#1417 Sense Key : Aborted Command [current]

[ 1449.495215] sd 4:0:2:0: [sdc] tag#1417 <<vendor>>ASC=0x81 ASCQ=0x0

[ 1449.495218] sd 4:0:2:0: [sdc] tag#1417 CDB: Write(10) 2a 00 00 00 00 01 00 00 05 00

[ 1449.495221] blk_update_request: I/O error, dev sdc, sector 8 op 0x1:(WRITE) flags 0x8800 phys_seg 5 prio class 0

[ 1535.768378] sd 4:0:2:0: [sdc] tag#1433 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE cmd_age=0s

[ 1535.768388] sd 4:0:2:0: [sdc] tag#1433 Sense Key : Aborted Command [current]

[ 1535.768392] sd 4:0:2:0: [sdc] tag#1433 <<vendor>>ASC=0x81 ASCQ=0x0

[ 1535.768396] sd 4:0:2:0: [sdc] tag#1433 CDB: Write(10) 2a 00 00 00 00 01 00 00 05 00

[ 1535.768399] blk_update_request: I/O error, dev sdc, sector 8 op 0x1:(WRITE) flags 0x8800 phys_seg 5 prio class 0

[ 1547.366923] sd 4:0:2:0: [sdc] tag#1418 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE cmd_age=0s

[ 1547.366933] sd 4:0:2:0: [sdc] tag#1418 Sense Key : Aborted Command [current]

[ 1547.366937] sd 4:0:2:0: [sdc] tag#1418 <<vendor>>ASC=0x81 ASCQ=0x0

[ 1547.366940] sd 4:0:2:0: [sdc] tag#1418 CDB: Write(10) 2a 00 00 00 00 01 00 00 05 00

[ 1547.366943] blk_update_request: I/O error, dev sdc, sector 8 op 0x1:(WRITE) flags 0x8800 phys_seg 5 prio class 0

root@pve01:~#

It's like the drive is write protected or something...

These are
HGST DKR5G-J1R8SS

Anyone got some firmware for these and instructions on how to update?
Anyone got an idea what I can do from here?

Posted Jan 28, 2022, 1:29 PM UTC

29
NoWinter5093•

Boot up a live distro (like ubuntu or arch or suse or whatever you like) and try a

wipefs -a -f

Should clean the disks at least so far to nuke the partition table - and then just use any gpt-capable version of fdisk.

If this doesn'T work: Take one of the drives and test it in another system - could be anything from bad power supply, bad cabeling, bad board, host controller ...

2
AngryAdmiOP•

its in a 24 bay chassis with only 16 slots currently ocupied.
I tried a different drive slot. I tried exporting a zpool and unplugging the drives if it was some power failure due to too many disks.

If you vaguely translate the OSI model to storage systems, I've searched the lower levels already :)

1
NoWinter5093•

But have you actually tried one of the drives in an entire different system? What got you back from wipefs?

1
AngryAdmiOP•

They came from a functional Hitachi SAN. However we were unable to obtain login information to the system and essentially had no insight in what it was doing diskwise.
10TB space was online, so, if it was a raid6 of 10 drives 2 might be defunt without us knowing. But the array never failed before we migrated stuff away. So 8-10 drives were working in the SAN out of 10.

To my knowledge that hitachi thing was the only thing we had that could have read the disks natively. We don't have that nomore :) Well, we do, but.

Initially I was trying to repurpose them for company needs. Saw they were 6 years old and thought Nah, in prod environment these are useless due to age. They became further useless being 520. They sat on a shelf for half a year untill I saved them from the trash,
(they would have to be sanitized and tossed) 10x too old for prod. 2tb disks? Tossed?

"Some peoples trash, anothers treasure" (while they last) I figured. I can easily sanitize these disks by adding them to a zpool and filling with data after a 512 reformat. They will be sanitized and contain no Work data by the time they die in 1-2 years and provide me with some needed space for various test-systems I run on my homelab.

These drives have reached or are reaching "the other end" of the bathtub curve.

0
NoWinter5093•

Sorry to down-vote - but you didn'T replied to any of my suggestions / questions.

So again: Have you tried one of the locked up disks in an entirely other system?

Also: Have you tried WIPEFS? did it report back an error? have you tried wipefs on the other system?

Bro - seriously - we try to provide help by asking and suggesting - and you reply back with a story noone asked for. How am I (are we?) supposed to help if you don't reply apropriately?

1
OweH_OweH•

Interesting.

Your sg_format command should have done the trick, at least it did for me when I got disks with 520b sector sizes, so I know you are on the right track here.

1
GiulianoM•

I've also had to go through this process for HGST SAS 8TB drives that supported multiple sector sizes.

Try this:

sg_format -v --format --size 512 --ftmpinfo=0 --pfu=0 --count=-1 /dev/sg#

You can also add the --early parameter to start the format in the background, and then use sg_requests to check the status:

sg_requests --progress /dev/sg#

1
AngryAdmiOP•

I will try this as soon as I get to the server :)

I've seen some people use the switch --six
Something about 10 byte sensecode vs. 6 byte.
And some drives seem to wait 1 second to do something, which makes the host command fail. I dont remember what it is is is is taking 1 second too long to do. Probably a drive ready or something silly.
It did not interest me at the time when I read it, and I have been unable to find it now that I need the info :)

Your additional switches gives me new hope, will return with the results. Thanks for your effort.

1