18
14

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.

qcow2イメージのマウント

Last updated at Posted at 2015-06-23

参考

手順

マウント場所作成
mkdir ./a/
nbdモジュールの読み込み
modprobe nbd max_part=63
qemu-nbd -c /dev/nbd0 ファイル.qcow2
fdisk -l /dev/nbd0
mount -o ro /dev/nbd0p2 ./a/
umount
umount ./a/
killall qemu-nbd
losetup -d /dev/nbd0
nbd0の削除
modprobe -r nbd

LVMの場合

LVMパーティションの有効化,/のマウント
vgscan
vgchange -ay
# mount /dev/VolGroupName/LogVolName ./a/
mount /dev/wwwsrv/root ./a/
LVMの場合
# vgchange -an VolGroupName
vgchange -an wwwsrv

P2V

rsync -ah \
  --exclude dev \
  --exclude mnt \
  --exclude tmp \
  --exclude proc \
  --exclude sys \
  --exclude usr/src \
  . ../bkup/
転送量を調べる方法(毎分出力)
for i in `seq 1 200`
do
  echo -n $i; df -h . | grep G ; sleep 60
done
18
14
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
18
14

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?