Nov 28
You can add more space to Xen storage repository. In this example I use local lvm storage repository.
Find the one you want to resize:
[root@xen ~]# xe vdi-list name-label=Pool\ Metadata\ Backup sr-name-label=Local\ storage
uuid ( RO) : c73d9724-a284-4caa-9da9-167a8b8b9389
name-label ( RW): Pool Metadata Backup
name-description ( RW):
sr-uuid ( RO): 243a9532-0a89-d406-d813-855a0350ebeb
virtual-size ( RO): 262144000
sharable ( RO): false
read-only ( RO): false
Resize the VDI:
[root@xen ~]# xe vdi-resize uuid=c73d9724-a284-4caa-9da9-167a8b8b9389 disk-size=524288000
See that the size has changed:
[root@xen ~]# xe vdi-list name-label=Pool\ Metadata\ Backup sr-name-label=Local\ storage
uuid ( RO) : c73d9724-a284-4caa-9da9-167a8b8b9389
name-label ( RW): Pool Metadata Backup
name-description ( RW):
sr-uuid ( RO): 243a9532-0a89-d406-d813-855a0350ebeb
virtual-size ( RO): 524288000
sharable ( RO): false
read-only ( RO): false
Mount it:
[root@xen ~]# xe-backup-metadata -d -u 243a9532-0a89-d406-d813-855a0350ebeb
Using SR: Local storage
Mounted backup VDI on: /var/run/pool-backup-c73d9724-a284-4caa-9da9-167a8b8b9389
Press ^D to exit shell and safely detach it.
Verify it:
[root@xen ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 3.8G 2.2G 1.5G 61% /
none 376M 0 376M 0% /dev/shm
/dev/xvda 243M 6.8M 223M 3% /var/run/pool-backup-c73d9724-a284-4caa-9da9-167a8b8b9389
Resize it:
[root@xen ~]# resize2fs /dev/xvda
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/xvda is mounted on /var/run/pool-backup-c73d9724-a284-4caa-9da9-167a8b8b9389; on-line resizing required
Performing an on-line resize of /dev/xvda to 512000 (1k) blocks.
The filesystem on /dev/xvda is now 512000 blocks long.
And you are done:
[root@xen ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 3.8G 2.2G 1.5G 61% /
none 376M 0 376M 0% /dev/shm
/dev/xvda 485M 7.1M 453M 2% /var/run/pool-backup-c73d9724-a284-4caa-9da9-167a8b8b9389