XenServer after installation, resolve system disk 4G size limit cannot upload ISO image larger than 4g (method of mounting new disk)

Source: Internet
Author: User

This method is not stable

We all know that xenserver after installation, no matter how big your plate is, there is only 4 g of space.

So the operation is: New LV volume, customizable size

if the ISO warehouse has been created, simply perform steps 1, 2, 3, 4, 5, 7, 8, 9 to mount the new logical volume drive to the/opt/iso file (the original image disappears )

1, Vgdisplay #先查看剩余空间

[Email protected]/]# Vgdisplay

---Volume Group---
VG Name VG_XENSTORAGE-205EECFF-2466-84FE-56D5-81472E44F3C2
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 8
VG Access Read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 0
Max PV 0
Cur PV 1
ACT PV 1
VG Size 11.99 GB
PE Size 4.00 MB
Total PE 3069
Alloc pe/size 1/4.00 MB
Free Pe/size 3068/11.98 GB
VG UUID GDK23O-UGCH-YGEB-WIZC-AOIR-QBTL-XOQQFX


2, Lvdisplay vg_xenstorage-205eecff-2466-84fe-56d5-81472e44f3c2 #查看该区

[Email protected]/]# Lvdisplay vg_xenstorage-205eecff-2466-84fe-56d5-81472e44f3c2

---Logical volume---
LV NAME/DEV/VG_XENSTORAGE-205EECFF-2466-84FE-56D5-81472E44F3C2/MGT
VG Name VG_XENSTORAGE-205EECFF-2466-84FE-56D5-81472E44F3C2
LV UUID qnsqew-gaqu-ieqr-rgsf-jo3j-crwe-enhqx5
LV Write Access Read/write
LV Status Not available
LV Size 4.00 MB
Current LE 1
Segments 1
Allocation inherit
Read ahead Sectors Auto



3, lvcreate-l 20gb-n ISO vg_xenstorage-205eecff-2466-84fe-56d5-81472e44f3c2 #新建20G的lv卷iso

[Email protected]/]# lvcreate-l 20gb-n ISO vg_xenstorage-205eecff-2466-84fe-56d5-81472e44f3c2

Logical volume "Lviso" created

Incidentally, how to add space:


[email protected]/]# lvcreate-n lviso-l +6g vg_xenstorage-205eecff-2466-84fe-56d5-81472e44f3c2

Logical volume "Lviso" created



4, Lvdisplay vg_xenstorage-205eecff-2466-84fe-56d5-81472e44f3c2 #再次查看该区

[Email protected]/]# Lvdisplay vg_xenstorage-205eecff-2466-84fe-56d5-81472e44f3c2

---Logical volume--- BR style= "Background-color:inherit;" >LV name/dev/vg_xenstorage-205eecff-2466-84fe-56d5-81472e44f3c2/mgt
VG Name VG_XENSTORAGE-205EECFF-2466-84FE-56D5-81472E44F3C2
LV UUID QNSQEW-GAQU-IEQR-RGSF-JO3J-CRWE-ENHQX5
lv Write Access read/write
LV Status not available
Current LE 1
segments 1
Allocation INHERIT
read ahead sectors auto

---Logical volume---
LV name/dev/vg_xenstorage-205eecff-2466-84fe-56d5-81472e44f3c2/iso
VG Name VG_XENSTORAGE-205EECFF-2466-84FE-56D5-81472E44F3C2
LV UUID LMJMYH-OIRW-GQLE-NCJK-Y9M9-ZVEV-JGVRQK
lv Write Access read/write
LV Status available
LV Size 20.00 GB
Segments 1
allocation inherit
read ahead sectors auto
-currently set to 1024
Block device 252:1



5, Mkfs.ext3/dev/vg_xenstorage-205eecff-2466-84fe-56d5-81472e44f3c2/iso #格式化为ext3格式

Mkfs.ext3/dev/vg_xenstorage-205eecff-2466-84fe-56d5-81472e44f3c2/iso


6, Mkdir/opt/iso #在/opt set up ISO folder, for the ISO image file mount


7, vgchange-a y #激活所有卷组


8. Mount/dev/vg_xenstorage-205eecff-2466-84fe-56d5-81472e44f3c2/lviso/iso #挂载 the ISO image file under the/iso folder


9, Df-h #查看容量

[Email protected]/]# df-h

Filesystem Size used Avail use% mounted on
/DEV/SDA1 4.0G 1.7G 2.1G 46%/
None 380M 0 380M 0%/dev/shm
/opt/xensource/packages/iso/xencenter.iso
44M 44M 0 100%/var/xen/xc-install
/dev/mapper/xslocalext--5983fa21--42bd--0cd6--aafd--78534a7908f7-5983fa21--42bd--0cd6--aafd--78534a7908f7
9.9G 911M 8.5G 10%/var/run/sr-mount/5983fa21-42bd-0cd6-aafd-78534a7908f7
/dev/mapper/vg_xenstorage--205eecff--2466--84fe--56d5--81472e44f3c2-lviso
6.0G 141M 5.5G 3%/iso


10, through the XFTP software will download a good ISO image file uploaded to the/opt/iso directory note change the file permissions 755

In this, you can go to the Xencenter client operation.


This article is from the "Black Time" blog, so be sure to keep this source http://blacktime.blog.51cto.com/11722918/1811663

XenServer after installation, resolve system disk 4G size limit cannot upload ISO image larger than 4g (method of mounting new 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.