Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
11
Help us understand the problem. What is going on with this article?
@tukiyo3

qcow2イメージのマウント

More than 3 years have passed since last update.

参考

手順

マウント場所作成
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
11
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
tukiyo3
最近はC#とBusyBox好き

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
11
Help us understand the problem. What is going on with this article?