LVMのLUKS - 外付けハードドライブで一時停止/再開を管理する方法は?

LVMのLUKS - 外付けハードドライブで一時停止/再開を管理する方法は?

外付けハードドライブのLVMの上にLUKSを設定しました。ただし、ハードドライブを1時間アイドル状態にしてからドライブを再回転すると、dmesgでI / Oエラーが発生します。

[170969.546887] usb-storage 2-1.4:1.0: USB Mass Storage device detected
[170969.547330] scsi host2: usb-storage 2-1.4:1.0
[170970.574026] scsi 2:0:0:0: Direct-Access     WD       Elements 25A3    1031 PQ: 0 ANSI: 6
[170970.576113] sd 2:0:0:0: [sdc] Spinning up disk...
[170971.585872] ................ready
[170986.787020] sd 2:0:0:0: [sdc] Very big device. Trying to use READ CAPACITY(16).
[170986.787243] sd 2:0:0:0: [sdc] 27344699392 512-byte logical blocks: (14.0 TB/12.7 TiB)
[170986.787250] sd 2:0:0:0: [sdc] 4096-byte physical blocks
[170986.787647] sd 2:0:0:0: [sdc] Write Protect is off
[170986.787654] sd 2:0:0:0: [sdc] Mode Sense: 47 00 10 08
[170986.788024] sd 2:0:0:0: [sdc] No Caching mode page found
[170986.788027] sd 2:0:0:0: [sdc] Assuming drive cache: write through
[170986.852342]  sdc: sdc1
[170986.852831] sd 2:0:0:0: [sdc] Attached SCSI disk
[171028.865016] EXT4-fs (dm-1): mounted filesystem a01e267a-b9ac-4b68-9f6d-1191504bd141 r/w with ordered data mode. Quota mode: none.
[171151.811261]  sdb:
[171151.819727]  sdb:
[171157.798163]  sdb: sdb1
[171269.797792]  sdb:
[171274.365828]  sdb: sdb1
[171689.034275] EXT4-fs (dm-3): VFS: Can't find ext4 filesystem
[171689.034831] EXT4-fs (dm-3): VFS: Can't find ext4 filesystem
[171689.035315] EXT4-fs (dm-3): VFS: Can't find ext4 filesystem
[171689.035853] FAT-fs (dm-3): invalid media value (0xe0)
[171689.035856] FAT-fs (dm-3): Can't find a valid FAT filesystem
[171796.570016] EXT4-fs (dm-3): mounted filesystem 87a2af07-31cb-48ac-ab39-27df18e3cdf7 r/w with ordered data mode. Quota mode: none.
[171806.585146] EXT4-fs (dm-3): unmounting filesystem 87a2af07-31cb-48ac-ab39-27df18e3cdf7.
[171820.969008] EXT4-fs (dm-1): unmounting filesystem a01e267a-b9ac-4b68-9f6d-1191504bd141.
[171834.824288] EXT4-fs (dm-1): mounted filesystem a01e267a-b9ac-4b68-9f6d-1191504bd141 r/w with ordered data mode. Quota mode: none.
[171883.325483] EXT4-fs (dm-3): mounted filesystem 87a2af07-31cb-48ac-ab39-27df18e3cdf7 r/w with ordered data mode. Quota mode: none.
[176366.299170] usb 2-1.4: reset SuperSpeed USB device number 7 using xhci_hcd
[176366.318571] sd 2:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK cmd_age=0s
[176366.318582] sd 2:0:0:0: [sdc] tag#0 CDB: Read(16) 88 00 00 00 00 00 46 0c a0 00 00 00 02 00 00 00
[176366.318585] I/O error, dev sdc, sector 1175232512 op 0x0:(READ) flags 0x80700 phys_seg 5 prio class 2
[176483.369356] usb 2-1.4: reset SuperSpeed USB device number 7 using xhci_hcd
[176483.388842] sd 2:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK cmd_age=0s
[176483.388858] sd 2:0:0:0: [sdc] tag#0 CDB: Read(16) 88 00 00 00 00 00 48 2c 9e 00 00 00 01 00 00 00
[176483.388879] I/O error, dev sdc, sector 1210883584 op 0x0:(READ) flags 0x80700 phys_seg 3 prio class 2
[223800.442702] usb 2-1.4: reset SuperSpeed USB device number 7 using xhci_hcd
[223800.461991] sd 2:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK cmd_age=0s
[223800.462002] sd 2:0:0:0: [sdc] tag#0 CDB: Read(16) 88 00 00 00 00 02 d6 98 81 00 00 00 01 00 00 00
[223800.462005] I/O error, dev sdc, sector 12190253312 op 0x0:(READ) flags 0x80700 phys_seg 3 prio class 2

この外付けハードドライブがサーバーに接続されており、データにアクセスせずに数時間ハードドライブを残すことが多いため、これは間違いなく問題になります。

これArch Linux Wikiにはこれに関する記事があります。しかし、別のものがありますコメントWikiのソリューションは、LVMのLUKSなどのより複雑な設定では機能しません。

この問題を解決する方法についてのアイデアはありますか?

関連情報