December 15th, 2023, 19:12
sdparm -a /dev/sdX --long[cha: y,sdparm -s WCE=0 -S /dev/sdXsdparm -s WCE=1 -S /dev/sdXSeptember 15th, 2024, 12:36
stefan wrote:fzabkar wrote:What differences have you found?
- Code:
[0:0:0:0] disk SEAGATE DKS2F-H6R0SS 7FA6 /dev/sdc /dev/sg2
[0:0:1:0] disk SEAGATE DKS2F-H6R0SS 7FA6 /dev/sdd /dev/sg3
[0:0:2:0] disk SEAGATE DKS2F-H6R0SS 7FA6 /dev/sdg /dev/sg6
[0:0:3:0] disk SEAGATE DKS2F-H6R0SS 7FA6 /dev/sdh /dev/sg7
[5:0:0:0] disk ATA Samsung SSD 870 3B6Q /dev/sda /dev/sg0
[6:0:0:0] disk ATA Samsung SSD 870 3B6Q /dev/sdb /dev/sg1
[15:0:0:0] disk SEAGATE DKS2F-H6R0SS 7FA6 /dev/sde /dev/sg4
[15:0:1:0] disk SEAGATE DKS2F-H6R0SS 7FA6 /dev/sdf /dev/sg5
[15:0:2:0] disk SEAGATE DKS2F-H6R0SS 7FA6 /dev/sdi /dev/sg8
[15:0:3:0] disk SEAGATE DKS2F-H6R0SS 7FA6 /dev/sdj /dev/sg9
See attached. First 4 drives highlighted green (sg2-sg5) are the ones that work (allowed writing GPT and data), last 4 highlighted red (sg6-sg9) are the ones that throw write error. Out of 4 non-working ones 3 have Write Cache Enabled (I can disable it with smartctl but it is a volatile change: as soon as drive is pulled out, it goes back to enabled). So I believe most of the diffs are related to this option enabled. Each working - non-working pair uses separate sff cable between the backplane and HBA and I have 2 HBAs to eliminate any connectivity questions.
HOWEVER, there is one difference that matches the working - non-working pattern: Mode Page 0x38, line 0x14. I need to see if I can change it and if it helps.
BTW the thing that I find unusual is every drive has a different number of cylinders. Not sure if this is normal.
root@temp:~# sg_modes -p 0x38 -c 1 /dev/sg1
SEAGATE DKS2F-H6R0SS 7FA6 peripheral_type: disk [0x0]
Mode parameter header from MODE SENSE(10):
Mode data length=88, medium type=0x00, WP=0, DpoFua=1, longlba=0
Block descriptor length=8
> Direct access device block descriptors:
Density code=0x0
00 ff ff ff ff 00 00 02 00
>> page_code: 0x38, page_control: changeable
00 b8 46 ff ff ff ff ff ff ff ff ff ff ff ff ff ff
10 ff 00 00 1b 01 00 00 00 ff ff ff ff ff ff ff ff
20 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
40 00 00 00 00 00 00 00 00November 10th, 2025, 3:38
November 22nd, 2025, 17:47
November 22nd, 2025, 19:02
Powered by phpBB © phpBB Group.