Is my xen hosting tech support misleading me?
Hello.
Attached is a question I've asked my xen hosting provider's technical support and the answer they've supplied.
Sam sais "There is no LVM module available, so you would need to compile LVM by yourself from the Xen kernel sources." but I've no problem loading dm_mod and to my understanding of LVM, this is the only module needed. So is he just wrong?
Thanks.
Hello,
Thank you for your patience.
There is no LVM module available, so you would need to compile LVM by yourself from the Xen kernel sources.
You will then need to activate the module.
You should be able to find the appropriate help online.
I am at your disposal should you need any further information.
Best regards,
Sam
---------------------------------------
Are you satisfied with the quality of the reply you received?
YES: http://www.gandi.net/faq/feedback/yes
NO: http://www.gandi.net/faq/feedback/no
I would like to give more detailed feedback: http://www.gandi.net/faq/feedback
---------------------------------------
Signature · 33 lines
Help about hosting / aide sur l'h�bergement: http://wiki.gandi.net/ GANDI http://www.gandi.net -------------------------------------- Product : hosting Category : Question : FirstName : Shachar LastName : Or CompanyName : Email : [email protected] Domain : DomainNB : Handle : SO866-GANDI Anciennet : Transaction : Message : Hello. This is a technical question about a problem I'm experiencing with LVM on my virtual server. The issue is that logical volumes are not activated on bootup. This prevents me from using /etc/fstab to mount them. root@shacharor:~# lvdisplay | grep 'LV Status' && udevtrigger && udevsettle && lvdisplay | grep 'LV Status' LV Status NOT available LV Status available root@shacharor:~# This shows that udev handles logical volumes correctly and does activate them. But why doesn't it do it on bootup? Thanks.
Quoted 9 lines · Shachar Or
Hello.
Attached is a question I've asked my xen hosting provider's technical support and the answer they've supplied.
Sam sais "There is no LVM module available, so you would need to compile LVM by yourself from the Xen kernel sources." but I've no problem loading
dm_modand to my understanding of LVM, this is the only module needed. So is he just wrong?
Probably, however your going to need to find out if you have the entire dm_* family for the functionality that you want (i.e. snapshots). You should (on your VM) simply be able to install lvm2 via yum, apt-get or whatever packaging mechanism is provided by your distribution.
I use lvm2 on literally hundreds of paravirtualized Xen guests without a problem.
A word of warning, don't make LV's (or their snapshots) a prerequisite to boot .. since you have no control over your initrd. If your provider has given you xvda and xvdb , use xvdb for your pv, keep the root file system on xvda.
Cheers,
--Tim
Quoted 77 lines
Thanks.
email message attachment, "הודעה מועברת - <Ref1876314> DOMAIN :"Quoted 59 lines
-------- Forwarded Message --------
From: Gandi Hosting <[email protected]>
To: [email protected]
Subject: <Ref1876314> DOMAIN :
Date: Mon, 2 Feb 2009 15:09:28 +0100 (CET)Hello,
Thank you for your patience.
There is no LVM module available, so you would need to compile LVM by yourself from the Xen kernel sources.
You will then need to activate the module.
You should be able to find the appropriate help online.
I am at your disposal should you need any further information.
Best regards,
Sam---------------------------------------
Are you satisfied with the quality of the reply you received?
YES: http://www.gandi.net/faq/feedback/yes
NO: http://www.gandi.net/faq/feedback/noI would like to give more detailed feedback:
http://www.gandi.net/faq/feedback
---------------------------------------Help about hosting / aide sur l'hébergement: http://wiki.gandi.net/
GANDI
http://www.gandi.net--------------------------------------
Product : hosting Category : Question : FirstName : Shachar LastName : Or CompanyName : Email : [email protected] Domain : DomainNB : Handle : SO866-GANDIAnciennet :
Transaction :
Message : Hello.This is a technical question about a problem I'm experiencing with LVM on my virtual server.
The issue is that logical volumes are not activated on bootup. This prevents me from using
/etc/fstabto mount them.Quoted 10 lines
root@shacharor:~# lvdisplay | grep 'LV Status' && udevtrigger && udevsettle && lvdisplay | grep 'LV Status' LV Status NOT available LV Status available root@shacharor:~#This shows that udev handles logical volumes correctly and does activate them. But why doesn't it do it on bootup?
Thanks.
_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Sorry to top post, but of course make sure the appropriate modules are loaded on boot (again, emphasis on not needing them to pivot_root) unless you have a VERY cooperative provider.
Cheers,
--Tim
Quoted 112 lines · Tim Post
Quoted 9 lines · Shachar Or
Hello.
Attached is a question I've asked my xen hosting provider's technical support and the answer they've supplied.
Sam sais "There is no LVM module available, so you would need to compile LVM by yourself from the Xen kernel sources." but I've no problem loading
dm_modand to my understanding of LVM, this is the only module needed. So is he just wrong?Probably, however your going to need to find out if you have the entire dm_* family for the functionality that you want (i.e. snapshots). You should (on your VM) simply be able to install lvm2 via yum, apt-get or whatever packaging mechanism is provided by your distribution.
I use lvm2 on literally hundreds of paravirtualized Xen guests without a problem.
A word of warning, don't make LV's (or their snapshots) a prerequisite to boot .. since you have no control over your initrd. If your provider has given you xvda and xvdb , use xvdb for your pv, keep the root file system on xvda.
Cheers,
--TimQuoted 69 lines
Thanks.
email message attachment, "הודעה מועברת - <Ref1876314> DOMAIN :"Quoted 66 lines
-------- Forwarded Message --------
From: Gandi Hosting <[email protected]>
To: [email protected]
Subject: <Ref1876314> DOMAIN :
Date: Mon, 2 Feb 2009 15:09:28 +0100 (CET)Hello,
Thank you for your patience.
There is no LVM module available, so you would need to compile LVM by yourself from the Xen kernel sources.
You will then need to activate the module.
You should be able to find the appropriate help online.
I am at your disposal should you need any further information.
Best regards,
Sam---------------------------------------
Are you satisfied with the quality of the reply you received?
YES: http://www.gandi.net/faq/feedback/yes
NO: http://www.gandi.net/faq/feedback/noI would like to give more detailed feedback:
http://www.gandi.net/faq/feedback
---------------------------------------Help about hosting / aide sur l'hébergement: http://wiki.gandi.net/
GANDI
http://www.gandi.net--------------------------------------
Product : hosting Category : Question : FirstName : Shachar LastName : Or CompanyName : Email : [email protected] Domain : DomainNB : Handle : SO866-GANDIAnciennet :
Transaction :
Message : Hello.This is a technical question about a problem I'm experiencing with LVM on my virtual server.
The issue is that logical volumes are not activated on bootup. This prevents me from using
/etc/fstabto mount them.root@shacharor:~# lvdisplay | grep 'LV Status' && udevtrigger && udevsettle && lvdisplay | grep 'LV Status' LV Status NOT available LV Status available root@shacharor:~#This shows that udev handles logical volumes correctly and does activate them. But why doesn't it do it on bootup?
Quoted 8 lines
Quoted 3 lines
Thanks.
_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Quoted 7 lines
Attached is a question I've asked my xen hosting provider's technical support and the answer they've supplied.
Sam sais "There is no LVM module available, so you would need to compile LVM by yourself from the Xen kernel sources." but I've no problem loading
dm_modand to my understanding of LVM, this is the only module needed. So is he just wrong?
If you're able to activate the volumes after the system has booted (which the discussion below suggests), then the device-mapper modules would already be available so there's no need to compile anything.
Quoted 8 lines
The issue is that logical volumes are not activated on bootup. This prevents me from using
/etc/fstabto mount them.root@shacharor:~# lvdisplay | grep 'LV Status' && udevtrigger && udevsettle && lvdisplay | grep 'LV Status' LV Status NOT available LV Status available root@shacharor:~#This shows that udev handles logical volumes correctly and does activate them. But why doesn't it do it on bootup?
If the volumes aren't created at boot time you're probably missing the relevant stuff in your initial ram disk... usually, if you're root fs is on an LVM volume, the ram disk would contain the relevant dm_* kernel modules and a script that (amongst other things) loads the relevant kernel modules and activates the volumes. Your simplest solution may be to just add "vgscan --mknodes" and "vgchange -ay" to rc.local (its uglier than fixing the initrd, but you may not be able to recreate the initrd in your situation).
--Dave