pearce1340 Posted August 15, 2023 Share Posted August 15, 2023 Hi, I was following a guide in order to convert one of my drives to ZFS. It was previously XFS Encrypted. I erased the disk and changed the type to ZFS Encrypted, however now when I try to format the drive, nothing happens. I've attached a screenshot of how the drive hows in my array. When I format it, it tries to format and the "Formatting devices" appears and shows "Formatting" next to the device... however this only shows briefly and then it reverts back to "Unmountable: Volume not encrypted". Any ideas on how I can re-add this drive to my array and format it? (Disk log below and Diagnostics attached) Thanks Steve DISK LOG: text error warn system array login Aug 14 09:21:20 Unraid kernel: ata5: SATA max UDMA/133 abar m2048@0xfc000000 port 0xfc000100 irq 89 Aug 14 09:21:20 Unraid kernel: ata5: SATA link up 6.0 Gbps (SStatus 133 SControl 300) Aug 14 09:21:20 Unraid kernel: ata5.00: ATA-9: WDC WD60EFRX-68L0BN1, 82.00A82, max UDMA/133 Aug 14 09:21:20 Unraid kernel: ata5.00: 11721045168 sectors, multi 16: LBA48 NCQ (depth 32), AA Aug 14 09:21:20 Unraid kernel: ata5.00: configured for UDMA/133 Aug 14 09:21:20 Unraid kernel: sd 6:0:0:0: [sdb] 11721045168 512-byte logical blocks: (6.00 TB/5.46 TiB) Aug 14 09:21:20 Unraid kernel: sd 6:0:0:0: [sdb] 4096-byte physical blocks Aug 14 09:21:20 Unraid kernel: sd 6:0:0:0: [sdb] Write Protect is off Aug 14 09:21:20 Unraid kernel: sd 6:0:0:0: [sdb] Mode Sense: 00 3a 00 00 Aug 14 09:21:20 Unraid kernel: sd 6:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA Aug 14 09:21:20 Unraid kernel: sd 6:0:0:0: [sdb] Preferred minimum I/O size 4096 bytes Aug 14 09:21:20 Unraid kernel: sdb: sdb1 Aug 14 09:21:20 Unraid kernel: sd 6:0:0:0: [sdb] Attached SCSI removable disk Aug 14 09:22:32 Unraid emhttpd: WDC_WD60EFRX-68L0BN1_WD-WX31D29J50AP (sdb) 512 11721045168 Aug 14 09:22:32 Unraid emhttpd: read SMART /dev/sdb Aug 14 09:27:20 Unraid emhttpd: WDC_WD60EFRX-68L0BN1_WD-WX31D29J50AP (sdb) 512 11721045168 Aug 14 09:27:20 Unraid kernel: mdcmd (2): import 1 sdb 64 5860522532 1 WDC_WD60EFRX-68L0BN1_WD-WX31D29J50AP Aug 14 09:27:20 Unraid kernel: md: import disk1: (sdb) WDC_WD60EFRX-68L0BN1_WD-WX31D29J50AP size: 5860522532 erased Aug 14 09:27:20 Unraid emhttpd: read SMART /dev/sdb Aug 14 09:27:36 Unraid emhttpd: shcmd (356): echo 128 > /sys/block/sdb/queue/nr_requests Aug 14 09:27:58 Unraid emhttpd: writing GPT on disk (sdb), with partition 1 byte offset 32KiB, erased: 0 Aug 14 09:27:58 Unraid emhttpd: shcmd (447): sgdisk -Z /dev/sdb Aug 14 09:27:59 Unraid kernel: sdb: sdb1 Aug 14 09:28:00 Unraid kernel: sdb: sdb1 Aug 14 09:28:00 Unraid emhttpd: shcmd (448): sgdisk -o -a 8 -n 1:32K:0 /dev/sdb Aug 14 09:28:01 Unraid kernel: sdb: sdb1 Aug 14 09:30:42 Unraid emhttpd: shcmd (450): /sbin/wipefs -a /dev/sdb Aug 14 09:30:43 Unraid root: /dev/sdb: 8 bytes were erased at offset 0x00000200 (gpt): 45 46 49 20 50 41 52 54 Aug 14 09:30:43 Unraid root: /dev/sdb: 8 bytes were erased at offset 0x57541e95e00 (gpt): 45 46 49 20 50 41 52 54 Aug 14 09:30:43 Unraid root: /dev/sdb: 2 bytes were erased at offset 0x000001fe (PMBR): 55 aa Aug 14 09:30:43 Unraid root: /dev/sdb: calling ioctl to re-read partition table: Success Aug 14 09:30:43 Unraid emhttpd: writing GPT on disk (sdb), with partition 1 byte offset 32KiB, erased: 0 Aug 14 09:30:43 Unraid emhttpd: shcmd (451): sgdisk -Z /dev/sdb Aug 14 09:30:44 Unraid emhttpd: shcmd (452): sgdisk -o -a 8 -n 1:32K:0 /dev/sdb Aug 14 09:30:45 Unraid kernel: sdb: sdb1 Aug 15 07:45:27 Unraid emhttpd: shcmd (603): /sbin/wipefs -a /dev/sdb Aug 15 07:45:28 Unraid root: /dev/sdb: 8 bytes were erased at offset 0x00000200 (gpt): 45 46 49 20 50 41 52 54 Aug 15 07:45:28 Unraid root: /dev/sdb: 8 bytes were erased at offset 0x57541e95e00 (gpt): 45 46 49 20 50 41 52 54 Aug 15 07:45:28 Unraid root: /dev/sdb: 2 bytes were erased at offset 0x000001fe (PMBR): 55 aa Aug 15 07:45:28 Unraid root: /dev/sdb: calling ioctl to re-read partition table: Success Aug 15 07:45:28 Unraid emhttpd: writing GPT on disk (sdb), with partition 1 byte offset 32KiB, erased: 0 Aug 15 07:45:28 Unraid emhttpd: shcmd (604): sgdisk -Z /dev/sdb Aug 15 07:45:29 Unraid emhttpd: shcmd (605): sgdisk -o -a 8 -n 1:32K:0 /dev/sdb Aug 15 07:45:30 Unraid kernel: sdb: sdb1 Aug 15 07:52:18 Unraid emhttpd: shcmd (622): /sbin/wipefs -a /dev/sdb Aug 15 07:52:18 Unraid root: /dev/sdb: 8 bytes were erased at offset 0x00000200 (gpt): 45 46 49 20 50 41 52 54 Aug 15 07:52:18 Unraid root: /dev/sdb: 8 bytes were erased at offset 0x57541e95e00 (gpt): 45 46 49 20 50 41 52 54 Aug 15 07:52:18 Unraid root: /dev/sdb: 2 bytes were erased at offset 0x000001fe (PMBR): 55 aa Aug 15 07:52:18 Unraid root: /dev/sdb: calling ioctl to re-read partition table: Success Aug 15 07:52:18 Unraid emhttpd: writing GPT on disk (sdb), with partition 1 byte offset 32KiB, erased: 0 Aug 15 07:52:18 Unraid emhttpd: shcmd (623): sgdisk -Z /dev/sdb Aug 15 07:52:19 Unraid emhttpd: shcmd (624): sgdisk -o -a 8 -n 1:32K:0 /dev/sdb Aug 15 07:52:20 Unraid kernel: sdb: sdb1 unraid-diagnostics-20230815-0755.zip Quote Link to comment
JorgeB Posted August 15, 2023 Share Posted August 15, 2023 Do you have a script or something deleting /root/keyfile after array start? 1 1 Quote Link to comment
pearce1340 Posted August 15, 2023 Author Share Posted August 15, 2023 Yes I do. It downloads it from the cloud, unlocks the array and starts the array, then deletes itself. do I need to disable the script to allow formatting? Quote Link to comment
Solution JorgeB Posted August 16, 2023 Solution Share Posted August 16, 2023 13 hours ago, pearce1340 said: do I need to disable the script to allow formatting? Yes, Unraid cannot format an encrypted drive without the encryption key. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.