- Thread Starter
- #26
Thanks for your replies, everyone!
If you're interested, see below for problems I encountered when trying mjollnir's suggestions to the same effect.
Interestingly, this disk shows support for "power-up in Standby", but that that feature is disabled. Can I enable it in some way or is it just disabled because I've set APM level 254?
/dev/diskid/DISK-20190615006211F seems to be /dev/da2, the Toshiba disk, as that's what shows up in
I've also done a possibly weird thing in that I've not partitioned the USB disks, but just added them to zpools as-is, i.e.:
...which means that glabel(8) gets confused:
Thank you for the pointers, I'll RTFM.Yes there is. Refer totunefs
and section 18.7 of the handbook: Disk Labels. This is generally how you would handle USB detachable disks, anyway.
If you're interested, see below for problems I encountered when trying mjollnir's suggestions to the same effect.
It seems that neither drive uses SMR:Also, about your Seagate issue, I would presume/assume this drive is SMR, so can you runzonectl
on it and report back the results?
Code:
# zonectl -d /dev/da0 -c params
Zone Mode: None
Command support: None
Unrestricted Read in Sequential Write Required Zone (URSWRZ): No
Optimal Number of Open Sequential Write Preferred Zones: Not Set
Optimal Number of Non-Sequentially Written Sequential Write Preferred Zones: Not Set
Maximum Number of Open Sequential Write Required Zones: Not Set
# zonectl -d /dev/da0 -c rz
zonectl: DIOCZONECMD ioctl failed: Invalid argument
# zonectl -d /dev/da2 -c params
Zone Mode: None
Command support: None
Unrestricted Read in Sequential Write Required Zone (URSWRZ): No
Optimal Number of Open Sequential Write Preferred Zones: Not Set
Optimal Number of Non-Sequentially Written Sequential Write Preferred Zones: Not Set
Maximum Number of Open Sequential Write Required Zones: Not Set
# zonectl -d /dev/da2 -c rz
zonectl: DIOCZONECMD ioctl failed: Input/output error
Nope, sorry! Here's theHave your previously provided the results ofcamcontrol identify
on this drive to the forum?
camcontrol identify
output for the Seagate drive:
Code:
# camcontrol identify da0
pass2: <ST4000DM000-1F2168 CC54> ACS-2 ATA SATA 3.x device
pass2: 400.000MB/s transfers
protocol ACS-2 ATA SATA 3.x
device model ST4000DM000-1F2168
firmware revision CC54
serial number [REDACTED]
WWN [REDACTED]
additional product id
cylinders 16383
heads 16
sectors/track 63
sector size logical 512, physical 4096, offset 0
LBA supported 268435455 sectors
LBA48 supported 7814037168 sectors
PIO supported PIO4
DMA supported WDMA2 UDMA6
media RPM 5900
Zoned-Device Commands no
Feature Support Enabled Value Vendor
read ahead yes yes
write cache yes yes
flush cache yes yes
Native Command Queuing (NCQ) yes 32 tags
NCQ Priority Information no
NCQ Non-Data Command no
NCQ Streaming no
Receive & Send FPDMA Queued no
NCQ Autosense no
SMART yes yes
security yes no
power management yes yes
microcode download yes yes
advanced power management yes yes 254/0xFE
automatic acoustic management no no
media status notification no no
power-up in Standby yes no
write-read-verify yes no 0/0x0
unload no no
general purpose logging yes yes
free-fall no no
sense data reporting no no
extended power conditions no no
device statistics notification no no
Data Set Management (DSM/TRIM) no
Trusted Computing no
encrypts all user data no
Sanitize no
Host Protected Area (HPA) yes no 7814037168/7814037167
HPA - Security yes no
Accessible Max Address Config no
Interestingly, this disk shows support for "power-up in Standby", but that that feature is disabled. Can I enable it in some way or is it just disabled because I've set APM level 254?
Here's the output ofls /dev/{diskid,gpt{,id},label,msdosfs,ufs,zvol/t450s}
These are filesystem labels, partition labels, and under /dev/label IIRC geom labels (RTFM glabel(8)). I find it handy to give the zpool(8) name like the machine model or name, or disk model, or some other unique name like bob or mary or functional like dmz-host. I.e. give a unique name to avoid getting confused when moving disks between machines. In case you have equal disk models, pin a written label onto them, numbered and/or otherwise uniquely named. I recommend to use functional partition labels in fstab(5).Code:ls: /dev/diskid: No such file or directory ls: /dev/label: No such file or directory ls: /dev/ufs: No such file or directory ls: /dev/ufsid: No such file or directory /dev/gpt: DUMP IRST efiboot0 gptboot0 /dev/gptid: 3354896e-ab2e-11ea-a908-507b9d666b68 f3587124-b087-11ea-903f-507b9d666b68 33612b8d-ab2e-11ea-a908-507b9d666b68 /dev/msdosfs: EFISYS /dev/zvol/t450s: SWAP
ralphbsz TL;DR
ls -lF /dev/{diskid,gpt{,id},label,msdosfs,ufs,zvol/t450s}
for me:
Code:
ls: /dev/gpt: No such file or directory
ls: /dev/label: No such file or directory
ls: /dev/ufs: No such file or directory
ls: /dev/zvol/t450s: No such file or directory
/dev/diskid:
total 0
crw-r----- 1 root operator 0x7e Aug 23 21:30 DISK-20190615006211F
/dev/gptid:
total 0
crw-r----- 1 root operator 0x7f Aug 23 21:30 6c654b1b-d4b1-11ea-91ef-3085a9a86c56
/dev/msdosfs:
total 0
crw-r----- 1 root operator 0x80 Aug 23 21:30 EFISYS
zpool status -v
. It can't be used interchangably with /dev/da2 though:
Code:
# camcontrol apm /dev/diskid/DISK-20190615006211F -l 254
camcontrol: cam_get_device: unable to find device unit number
I've also done a possibly weird thing in that I've not partitioned the USB disks, but just added them to zpools as-is, i.e.:
Code:
# zpool create pool1 /dev/da0
# zpool create pool2 /dev/da2
Code:
# glabel label -v twilk-server-seagate /dev/da0
glabel: Can't store metadata on /dev/da0: Operation not permitted.
# glabel label -v twilk-server-toshiba /dev/da2
glabel: Can't store metadata on /dev/da2: Operation not permitted.