Insufficient virtual machine hard disk

Source: Internet
Author: User

[Email protected] virhost]# qemu-img create-f raw 5g.raw 5GFormatting ' 5g.raw ', Fmt=raw size=5368709120 [email protecte D] virhost]# cp 5g.raw [[email protected] virhost]# CP 5g.raw 5g.raw.bak

[[email protected] virhost]# virsh attach-disk 23lmr/home/virhost/5g.raw vdb--cache Nonedisk attached Successfully[[email protected] lnmp]# fdisk-ldisk/dev/vda:5368 MB, 5368709120 bytes16 heads, Sectors/track, 104 Cylindersunits = Cylinders of 1008 * 516096 bytessector size (logical/physical): bytes/512 bytesi/o size (m Inimum/optimal): bytes/512 bytesdisk identifier:0x000a136a Device Boot Start End Blocks Id S            YSTEM/DEV/VDA1 * 3 1018 512000 Linuxpartition 1 does not end on cylinder BOUNDARY./DEV/VDA2 1018 10403 4729856 8e Linux lvmpartition 2 does not end on cylinder boundary.  disk/dev/mapper/volgroup-lv_root:4303 MB, 4303355904 bytes255 heads, sectors/track, 523 cylindersunits = cylinders of 16065 * 8225280 bytessector size (logical/physical): bytes/512 bytesi/o size (minimum/optimal): BYTES/5 Bytesdisk Identifier:0x00000000disk/dev/mapper/volgroup-lv_swap:536 MB, 536870912 bytes255 heads, sectors/track, cylindersunits = cylinders of 16065 * 8225280 byt Essector size (logical/physical): bytes/512 bytesi/o size (minimum/optimal): bytes/512 bytesdisk identifier:0 x00000000disk/dev/vdb:5368 MB, 5368709120 bytes16 heads, $ sectors/track, 10402 cylindersunits = cylinders of 1008 * 51  2 = 516096 bytessector size (logical/physical): bytes/512 bytesi/o size (minimum/optimal): bytes/512 bytesdisk identifier:0x00000000

 

[[email protected] lnmp]# Fdisk/dev/vdbdevice contains neither a valid DOS Partition table, nor Sun, SGI or OSF disklabelbuilding a new DOS disklabel with disk identifier 0x30dadc82. Changes'll remain in memory only, until the decide to write them. After that, of course, the previous content won ' t is recoverable. Warning:invalid flag 0x0000 of partition Table 4 would be a corrected by W (rite) warning:dos-compatible mode is deprecated. It ' s strongly recommended to switch off the mode (command ' C ') and change display units to sectors (Comman d ' u ').  Command (M for help): Ncommand action E Extended P primary partition (1-4) ppartition number (1-4): 1First cylinder (1-10402, default 1): Using default value 1Last cylinder, +cylinders or +size{k,m,g} (1-10402, default 10402): Using DEFA Ult value 10402Command (M for help): Wthe partition table have been altered! Calling IOCTL () to re-read partition table. Syncing disks. 

[Email protected] lnmp]# mkfs.ext3/dev/vdbmke2fs 1.41.12 (17-may-2010) Filesystem label=os type:linuxblock size=4096 (l og=2) Fragment size=4096 (log=2) stride=0 blocks, Stripe width=0 blocks327680 inodes, 1310720 blocks65536 blocks (5.00%) Res  Erved for the Super Userfirst data block=0maximum filesystem blocks=134217728040 block groups32768 blocks per group, 32768 Fragments per group8192 inodes per groupsuperblock backups stored on blocks:32768, 98304, 163840, 229376, 294912, 819200 , 884736Writing inode tables:done                            Creating Journal (32768 blocks): donewriting superblocks and filesystem accounting Information:donethis filesystem would be automatically checked every Notoginseng mounts or180 days, whichever comes first.  

[Email protected] lnmp]# mount/dev/vdb/root/lnmp/[[email protected] lnmp]# df-hfilesystem            Size  used Avail use % mounted On/dev/mapper/volgroup-lv_root                      3.9G  3.7G     0 100%/tmpfs                 245M     0  245M   0%/dev/ SHM/DEV/VDA1             477M   33M  419M   8%/boot/dev/vdb              5.0G  139M  4.6G   3%/root/lnmp

Insufficient virtual machine hard disk

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.