1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Proxmox VEのデータを救出 (LVM2)

Last updated at Posted at 2023-08-19

Proxmoxを入れてた鯖が壊れて、データ救出したかった時に助けられたやつです。
探しても日本語の記事でこういうのがなかったので...

あらかじめlvscanで論理ボリュームの名前を探しておいてください。

$ sudo lvscan
  inactive          '/dev/pve/hello-everyone-000' [4.00 GiB] inherit

下準備

#/dev/loop の空き探し (記事内では/dev/loop10にします)
losetup -f

マウント

losetup -P /dev/loop10 /dev/pve01/vm-001-disk-0
mkdir /mnt/data01 #/mnt/内に保存するためのディレクトリを作る
mount /dev/loop10p2 /mnt/data01

これでデータを/mnt/data01から開けるようになってるはずです。
やったね!

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?