cloudstack-users-cn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ningning Li <liningn...@wandoujia.com>
Subject 如何挂载qcow2 镜像文件中的的 lvm 分区
Date Fri, 28 Jun 2013 10:49:41 GMT
一个qcow2格式的文件vm07.qcow2 ,里面有lVM分区,如果挂载呢?

# modprobe nbd max_part=16

# qemu-nbd -c /dev/nbd0 vm07.qcow2

# partprobe /dev/nbd0

# fdisk -ul /dev/nbd0

Disk /dev/nbd0: 180.4 GB, 180388626432 bytes

255 heads, 63 sectors/track, 21931 cylinders, total 352321536 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x0007e2d5


     Device Boot      Start         End      Blocks   Id  System

/dev/nbd0p1   *        2048     1050623      524288   83  Linux

Partition 1 does not end on cylinder boundary.

/dev/nbd0p2         1050624     9439231     4194304   82  Linux swap /
Solaris

Partition 2 does not end on cylinder boundary.

/dev/nbd0p3         9439232    37748735    14154752   8e  Linux LVM


求教,thx.






-- 
Ningning Li | wateer
sa | Wandou Labs
qq 468032221
tel 186 1220 6308

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message