태그 보관물: partition

partition

Luks 파티션을 닫을 수 없습니다 failed after

백업 목적으로 LVM 파티션을 “스냅 샷”했습니다. 이 파티션은 암호화되었으므로 백업을 수행하기 위해이 Luks 파티션 (스냅 샷)을 열었습니다.

문제는 스냅 샷을 삭제하는 것을 잊어 버렸으므로 100 % 사용에 도달한다는 것입니다.

스냅 샷을 삭제하려고 할 때 :

lvremove /dev/mapper/vgx-LogVolDBSnapshot
/dev/vgx/LogVolDBSnapshot: read failed after 0 of 4096 at 375809572864: Input/output error
/dev/vgx/LogVolDBSnapshot: read failed after 0 of 4096 at 375809630208: Input/output error
/dev/vgx/LogVolDBSnapshot: read failed after 0 of 4096 at 0: Input/output error
/dev/vgx/LogVolDBSnapshot: read failed after 0 of 4096 at 4096: Input/output error
/dev/mapper/SnapshotDecrypted: read failed after 0 of 4096 at 375807475712: Input/output error
/dev/mapper/SnapshotDecrypted: read failed after 0 of 4096 at 375807533056: Input/output error
/dev/mapper/SnapshotDecrypted: read failed after 0 of 4096 at 0: Input/output error
/dev/mapper/SnapshotDecrypted: read failed after 0 of 4096 at 4096: Input/output error
Logical volume vgx/LogVolDBSnapshot is used by another device.

그것은 정상적인 현상입니다. 먼저 Luks 파티션을 닫아야합니다.

cryptsetup -v luksClose /dev/mapper/SnapshotDecrypted
Cannot read device /dev/mapper/vgx-LogVolDBSnapshot.
Command failed with code 15: Cannot read device /dev/mapper/vgx-LogVolDBSnapshot.

스냅 샷을 삭제하려면 Luks 파티션을 닫거나 삭제하려면 어떻게해야합니까?

“dmsetup remove / dev / mapper / SnapshotDecrypted”를 사용한 다음 “lvremove / dev / vgx / LogVolDBSnapshot”을 사용할 수 있습니까?

dmsetup 출력

dmsetup ls
SnapshotDecrypted (253:17)
vgx-LogVolDBSnapshot (253:14)

dmsetup table
SnapshotDecrypted: 0 733999104 crypt aes-cbc-essiv:sha256 0...0 0 253:14 4096
vgx-LogVolDBSnapshot: 0 734003200 snapshot 253:15 253:16 P 8


답변

문제에 대한 한 가지 해결책은 다음과 같습니다.

  1. USB 드라이브를 연결하거나 문제의 시스템에 물리적 스토리지를 연결하십시오.
  2. VG를 USB로 확장하십시오.
  3. 이제 luks에게 충분한 공간이 있습니다
  4. 스냅 샷을 닫습니다. 제거
  5. vgreduce를 사용하여 볼륨 그룹에서 임시 장치를 제거하십시오.

답변