0
2

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 5 years have passed since last update.

XFSファイルシステムでrmしたファイルについて

Posted at

経緯

SSDのディスクを3台使用し、LVMを組んでいた。その内、1台をノートパソコンで使うために、LVMから削除を行う。
しかし、XFSでフォーマットしていたため、resizeが出来ないwww

LVMを構築しなおす

xfs_dumpコマンドを使用しダンプを取る。その後、LVMを構築しなおしxfsrestoreコマンドでリストアを行う。
これでリストアしたと勝手に思い込み、xfs_dumpで作成したファイルをrmコマンドで削除。

...リストアされていなかったwww

色々と調べたけど、XFSフォーマットはファイルの復元が出来ないようだ。
これからは、ちゃんとxfsrestoreで復元されているのを確認した後に、rmコマンドを使用しよう。

自宅サーバの仮想イメージが入ったディレクトリだから、まだ良かったけど、仕事でやったら始末書もんだ。
また一つ、いい経験になった。

0
2
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
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?