Elliott
Dabbler
- Joined
- Sep 13, 2019
- Messages
- 40
I'm creating several pools with different settings for testing and I noticed some disks won't let me create a zpool. Apparently the OS thinks the drive is busy, but how can I find out what's holding it?
Code:
root@freenas ~ # zpool create fred da14 cannot create 'fred': no such pool or dataset root@freenas ~ # gpart show da14 => 40 19532873648 da14 GPT (9.1T) 40 88 - free - (44K) 128 4194304 1 freebsd-swap (2.0G) 4194432 19528679256 2 freebsd-zfs (9.1T) root@freenas ~ # gpart destroy -F da14 gpart: Device busy root@freenas ~ # dd if=/dev/zero of=/dev/da14 dd: /dev/da14: Operation not permitted root@freenas ~ # smartctl -a /dev/da14 smartctl 6.6 2017-11-05 r4594 [FreeBSD 11.2-STABLE amd64] (local build) Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Vendor: HGST Product: HUH721010AL5200 Revision: A384 Compliance: SPC-4 User Capacity: 10,000,831,348,736 bytes [10.0 TB] Logical block size: 512 bytes Physical block size: 4096 bytes LU is fully provisioned Rotation Rate: 7200 rpm Form Factor: 3.5 inches Logical Unit id: 0x5000cca2674cb104 Serial number: JEHB5HPN Device type: disk Transport protocol: SAS (SPL-3) Local Time is: Tue Oct 1 18:01:25 2019 PDT SMART support is: Available - device has SMART capability. SMART support is: Enabled Temperature Warning: Enabled === START OF READ SMART DATA SECTION === SMART Health Status: OK Current Drive Temperature: 42 C Drive Trip Temperature: 85 C Manufactured in week 47 of year 2018 Specified cycle count over device lifetime: 50000 Accumulated start-stop cycles: 52 Specified load-unload count over device lifetime: 600000 Accumulated load-unload cycles: 99 Elements in grown defect list: 0 Vendor (Seagate) cache information Blocks sent to initiator = 385835031592960 Error counter log: Errors Corrected by Total Correction Gigabytes Total ECC rereads/ errors algorithm processed uncorrected fast | delayed rewrites corrected invocations [10^9 bytes] errors read: 0 0 0 0 7891 583.598 0 write: 0 0 0 0 2551 4672.373 0 verify: 0 0 0 0 324 0.007 0 Non-medium error count: 0 No self-tests have been logged root@freenas ~ # zpool status pool: double state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM double ONLINE 0 0 0 da2 ONLINE 0 0 0 da3 ONLINE 0 0 0 errors: No known data errors pool: freenas-boot state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM freenas-boot ONLINE 0 0 0 ada0p2 ONLINE 0 0 0 errors: No known data errors pool: quad state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM quad ONLINE 0 0 0 da4 ONLINE 0 0 0 da5 ONLINE 0 0 0 da6 ONLINE 0 0 0 da7 ONLINE 0 0 0 errors: No known data errors pool: single state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM single ONLINE 0 0 0 da1 ONLINE 0 0 0 errors: No known data errors