?
Solved

Citrix XenServer expand local storage

Posted on 2010-09-24
2
Medium Priority
?
3,737 Views
Last Modified: 2013-11-14
Hello,

I want to expand local storage of a citrix xenserver but I don't know how to expand it in the xenserver itself.

I added the disk to the server, expanded the array with 4 extra disks and expanded the logical drive from 2 to 3 TB. Now xenserver still recognizes 2TB and I need to expand it there ... I found one procedure but I would like some more info/experience from other users. detail: SCSI disks

thx

procedure found:

1.  Expand physical disk (add more RAID members, ect).  Use the procedure specific to your RAID card.

2.  Use fdisk to expand the partition your Local Storage resides on:

[root@vps1a ~]# pvscan
PV /dev/sda3 VG VG_XenStorage-4c69467e-0352-5bd4-3dee-e17cc18aee08 lvm2 [923.64 GB / 380.14 GB free]
Total: 1 [923.64 GB] / in use: 1 [923.64 GB] / in no VG: 0 [0 ]

Note the bold type to the left, /dev/sda3 is the partition we want to expand by deleting and re-adding to the maximum size in fdisk.  After you do this, you need to reboot so the OS will recognize the larger partition.  The bold type to the right is the UUID we need later.

3.  After rebooting, now we can expand the physical LVM volume:

pvresize /dev/sda3

4.  Now we tell XenServer that we increased the size, so you can actually use your extra space:

xe sr-scan uuid=4c69467e-0352-5bd4-3dee-e17cc18aee08

Note:  The UUID was discovered in step 2.

5.  All done!
0
Comment
Question by:Cr0n0s
2 Comments
 
LVL 5

Accepted Solution

by:
allan_jardine earned 500 total points
ID: 33806040
Hi Paul
There is a similar query and solution here http://forums.citrix.com/message.jspa?messageID=1457609. This references this document http://support.citrix.com/article/ctx120865 which basically instructs you on how to unplug and plug the volume in Xenserver. While I have not done this on local storage but i do this frequently on my iSCSI storage.
Allan
0
 

Author Closing Comment

by:Cr0n0s
ID: 33929535
very good info provided
0

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
How much do you know about the future of data centers? If you're like 50% of organizations, then it's probably not enough. Read on to get up to speed on this emerging field.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question