- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Hot Adding Disk to Virtualized Guest
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2010 09:55 AM
тАО01-21-2010 09:55 AM
Our current traditional server based environment allows me to add disks on the fly, but I haven't seen a Linux virtualization solution that will allow this.
Does anyone know how to add disks hot into a Xen guest, or does the new KVM based virtualization allow you to do this?
Thanks
Eric Singer
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2010 11:51 AM
тАО01-21-2010 11:51 AM
Re: Hot Adding Disk to Virtualized Guest
Every solution I've seen requires you to down the system before adding disk.
If your system has access to a Fiber Channel adapter, a LUN can be presented to the World Wide Name (WWN) of the Fiber Channel adapter and additional space may be able to be added via LVM without a boot.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2010 12:07 PM
тАО01-21-2010 12:07 PM
Re: Hot Adding Disk to Virtualized Guest
We are using Fiber Channel adapters to our servers. Adding and removing disks to Dom0 by way of SCSI bus scans is pretty easy, however adding that disk to a running DomU is problematic.
In today├в s non-virtual environment I do not have to bring down our production environment to add diskspace. Just presented the LUN and scan the scsi bus, no downtime taken and nobody notices a thing. I├в d very much like that in our new virtual environment.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2010 12:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2010 04:23 AM
тАО01-22-2010 04:23 AM
Re: Hot Adding Disk to Virtualized Guest
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2010 05:17 AM
тАО01-22-2010 05:17 AM
Re: Hot Adding Disk to Virtualized Guest
1. Create a new lun, get the WWN and create an entry in /etc/multipath.conf. Use friendly names, easier to keep track of things.
2. Present the new lun to dom0
3. On dom0, scan for the new disk using:
echo "- - -" > /sys/class/scsi_host/host0/scan
echo "- - -" > /sys/class/scsi_host/host1/scan
4. Attach the new disk to the running domU using:
xm block-attach domU_name phy:/dev/mapper/new_disk xvdm w
In this example, the new disk on the domU will be named xvdm. Then you can put it into an existing VG and dynamically grow a filesystem.
There are a couple of gotchas using this method:
1. You need to modify the domU config file and add in the new disk or it won't be there the next time you start it.
2. Attaching the new disk using xm is not very forgiving; i.e. wrong disk name, attach wrong disk etc. You can also do this with virt-manager and also using virsh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2010 05:44 AM
тАО01-22-2010 05:44 AM
Re: Hot Adding Disk to Virtualized Guest
[root@rllxovf5 ~]# xm block-attach 426_rloveric phy:/dev/mapper/Eric_Test_Disk1 sda w
[root@rloveric ~]# mkfs -t ext3 /dev/sda1
[root@rloveric ~]# mkdir /test
[root@rloveric ~]# mount /dev/sda1 /test
[root@rloveric ~]# umount /test
[root@rllxovf5 ~]# xm block-detach 426_rloveric sda
Thank you for all your help!
Eric Singer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2010 05:45 AM
тАО01-22-2010 05:45 AM