Thin provisioning in XS7
-
I've heard that XS7 support thin provisioning storage also for local SR; does anyone know how to enable it?
By now, I stick to thick-LVM SR… -
When you are installing XS, one of the installation options is to configure thin-provisioning for the Storage repository you're creating.
It's during install. I'm not sure if you can enable it afterwards.
-
it is a check box on install
-
Something I find interesting (and confusing) is that you can create thin provisioned SRs after install, but they MUST be EXT3.
Because apparently LVM SRs (which is the default) cannot be thin provisioned.
Yet, the default SR is LVM and thin provisioned. Can anyone explain that?
See this thread:
https://discussions.citrix.com/topic/363142-adding-a-new-thin-provisioned-storage-to-xen-server-65/ -
I take that back. The local storage says it is EXT3. But doesn't it show up as LVM on the system?
-
@BRRABill said in Thin provisioning in XS7:
I take that back. The local storage says it is EXT3. But doesn't it show up as LVM on the system?
You need to go back and ready my LVM papers. LVM is not a filesystem.
https://mangolassi.it/topic/9767/linux-the-role-of-the-logical-volume-manager-lvm/
https://mangolassi.it/topic/9766/logical-volume-manager/ -
@scottalanmiller said
You need to go back and ready my LVM papers. LVM is not a filesystem.
https://mangolassi.it/topic/9767/linux-the-role-of-the-logical-volume-manager-lvm/
https://mangolassi.it/topic/9766/logical-volume-manager/You keep saying that, and it isn't helping!!
I was going to ask if it was a confusion on my part about LVM.
-
Yes, you are thinking of LVM as "what's on top" but you can't use LVM, it's just an abstraction layer in the middle. It replaces the partitioning layer. So LVM instead of MBR, for example.
LVM is what provides abilities like thin provisioning, snapshots and resizing. Without LVM, you can't have those. LVM sits on top of the final block devices as presented to the OS. Then the filesystem (EXT3 in this case) goes onto the logical volume(s) created by LVM.
You can't use LVM directly, just like you can't use a partition directly.
So if you look at the block device (drive) and ask what is on it, it seems LVM. If you look from the top down you look at the filesystem (EXT3.) If you look at the stack, LVM is the piece in the middle. EXT3 is on LVM, LVM is on the RAID array.
-
@scottalanmiller said in Thin provisioning in XS7:
Yes, you are thinking of LVM as "what's on top" but you can't use LVM, it's just an abstraction layer in the middle. It replaces the partitioning layer. So LVM instead of MBR, for example.
LVM is what provides abilities like thin provisioning, snapshots and resizing. Without LVM, you can't have those. LVM sits on top of the final block devices as presented to the OS. Then the filesystem (EXT3 in this case) goes onto the logical volume(s) created by LVM.
You can't use LVM directly, just like you can't use a partition directly.
So if you look at the block device (drive) and ask what is on it, it seems LVM. If you look from the top down you look at the filesystem (EXT3.) If you look at the stack, LVM is the piece in the middle. EXT3 is on LVM, LVM is on the RAID array.
This is perfectly clear to me, I'm a Linux sysadmin. But I still don't get how to get a thin provisioned LOCAL SR on XS, LVM-based.
-
@Francesco-Provino said in Thin provisioning in XS7:
This is perfectly clear to me, I'm a Linux sysadmin. But I still don't get how to get a thin provisioned LOCAL SR on XS, LVM-based.
It's because of a funky terminology that they use. It's all LVM based. But thin provisioning is done by putting EXT3 on top of LVM and then making files representing the block devices for the individual VMs. The "LVM way" is exposing LVs directly to the VMs and letting them consume them as block devices, so it is more like a local SAN. The VMs put a filesystem directly onto the LVs in the case where they say "using LVM."
XS is very bad at being clear about what they are saying.
-
I really think that is what has thrown me for a loop.
@scottalanmiller has been working with my on LVM, and then I try to figure it out the XS inplmentation of it and it is very confusing. (To me.)
-
@BRRABill provided a link to this command that allows for thin provisioning...
xe sr-create host-uuid=$host_uuid content-type=user name-label="SR name" shared=false device-config:device=/dev/sdX type=ext
-
Here's a link to the whole article.
http://techblog.danielpellarini.com/sysadmin/how-to-enable-thin-provisioning-on-xenserver/
-
@BRRABill said in Thin provisioning in XS7:
Here's a link to the whole article.
http://techblog.danielpellarini.com/sysadmin/how-to-enable-thin-provisioning-on-xenserver/
So, nothing has changed in XS7 about thin provisioning… sadly, a plain KVM or XEN (so, the full Linux storage backend) is way ahead in flexibility, with thin-lvm, external and internal qcow (or raw) snapshot, etc.
-
@Francesco-Provino said in Thin provisioning in XS7:
@BRRABill said in Thin provisioning in XS7:
Here's a link to the whole article.
http://techblog.danielpellarini.com/sysadmin/how-to-enable-thin-provisioning-on-xenserver/
So, nothing has changed in XS7 about thin provisioning… sadly, a plain KVM or XEN (so, the full Linux storage backend) is way ahead in flexibility, with thin-lvm, external and internal qcow (or raw) snapshot, etc.
Yes, and will likely always remain so. Xen has always been vastly more powerful and flexible than XenServer, but lacks the distro model. XenServer is about making it packaged and easy.
-
@scottalanmiller said in Thin provisioning in XS7:
@Francesco-Provino said in Thin provisioning in XS7:
@BRRABill said in Thin provisioning in XS7:
Here's a link to the whole article.
http://techblog.danielpellarini.com/sysadmin/how-to-enable-thin-provisioning-on-xenserver/
So, nothing has changed in XS7 about thin provisioning… sadly, a plain KVM or XEN (so, the full Linux storage backend) is way ahead in flexibility, with thin-lvm, external and internal qcow (or raw) snapshot, etc.
Yes, and will likely always remain so. Xen has always been vastly more powerful and flexible than XenServer, but lacks the distro model. XenServer is about making it packaged and easy.
Uhm, I haven't found XS7 any easier than a plain linux distro until now, Its only big advantage is the great API that provide a nice and encapsulated method to backup VMs. But IMHO is both harder and less powerful than libvirt (with both Xen and KVM).
-
@Francesco-Provino said in Thin provisioning in XS7:
@scottalanmiller said in Thin provisioning in XS7:
@Francesco-Provino said in Thin provisioning in XS7:
@BRRABill said in Thin provisioning in XS7:
Here's a link to the whole article.
http://techblog.danielpellarini.com/sysadmin/how-to-enable-thin-provisioning-on-xenserver/
So, nothing has changed in XS7 about thin provisioning… sadly, a plain KVM or XEN (so, the full Linux storage backend) is way ahead in flexibility, with thin-lvm, external and internal qcow (or raw) snapshot, etc.
Yes, and will likely always remain so. Xen has always been vastly more powerful and flexible than XenServer, but lacks the distro model. XenServer is about making it packaged and easy.
Uhm, I haven't found XS7 any easier than a plain linux distro until now, Its only big advantage is the great API that provide a nice and encapsulated method to backup VMs. But IMHO is both harder and less powerful than libvirt (with both Xen and KVM).
have you played with XenOrchestra?
-
@scottalanmiller said in Thin provisioning in XS7:
@Francesco-Provino said in Thin provisioning in XS7:
@scottalanmiller said in Thin provisioning in XS7:
@Francesco-Provino said in Thin provisioning in XS7:
@BRRABill said in Thin provisioning in XS7:
Here's a link to the whole article.
http://techblog.danielpellarini.com/sysadmin/how-to-enable-thin-provisioning-on-xenserver/
So, nothing has changed in XS7 about thin provisioning… sadly, a plain KVM or XEN (so, the full Linux storage backend) is way ahead in flexibility, with thin-lvm, external and internal qcow (or raw) snapshot, etc.
Yes, and will likely always remain so. Xen has always been vastly more powerful and flexible than XenServer, but lacks the distro model. XenServer is about making it packaged and easy.
Uhm, I haven't found XS7 any easier than a plain linux distro until now, Its only big advantage is the great API that provide a nice and encapsulated method to backup VMs. But IMHO is both harder and less powerful than libvirt (with both Xen and KVM).
have you played with XenOrchestra?
Not yet, but in truth I really prefer a solid CLI and documentation to another fancy GUI…
-
@Francesco-Provino said in Thin provisioning in XS7:
@scottalanmiller said in Thin provisioning in XS7:
@Francesco-Provino said in Thin provisioning in XS7:
@scottalanmiller said in Thin provisioning in XS7:
@Francesco-Provino said in Thin provisioning in XS7:
@BRRABill said in Thin provisioning in XS7:
Here's a link to the whole article.
http://techblog.danielpellarini.com/sysadmin/how-to-enable-thin-provisioning-on-xenserver/
So, nothing has changed in XS7 about thin provisioning… sadly, a plain KVM or XEN (so, the full Linux storage backend) is way ahead in flexibility, with thin-lvm, external and internal qcow (or raw) snapshot, etc.
Yes, and will likely always remain so. Xen has always been vastly more powerful and flexible than XenServer, but lacks the distro model. XenServer is about making it packaged and easy.
Uhm, I haven't found XS7 any easier than a plain linux distro until now, Its only big advantage is the great API that provide a nice and encapsulated method to backup VMs. But IMHO is both harder and less powerful than libvirt (with both Xen and KVM).
have you played with XenOrchestra?
Not yet, but in truth I really prefer a solid CLI and documentation to another fancy GUI…
XO isn't just a gui, it's a single pane of glass for everything XS.
Backup, VM management and Host control.
-
@Francesco-Provino said in Thin provisioning in XS7:
@scottalanmiller said in Thin provisioning in XS7:
@Francesco-Provino said in Thin provisioning in XS7:
@scottalanmiller said in Thin provisioning in XS7:
@Francesco-Provino said in Thin provisioning in XS7:
@BRRABill said in Thin provisioning in XS7:
Here's a link to the whole article.
http://techblog.danielpellarini.com/sysadmin/how-to-enable-thin-provisioning-on-xenserver/
So, nothing has changed in XS7 about thin provisioning… sadly, a plain KVM or XEN (so, the full Linux storage backend) is way ahead in flexibility, with thin-lvm, external and internal qcow (or raw) snapshot, etc.
Yes, and will likely always remain so. Xen has always been vastly more powerful and flexible than XenServer, but lacks the distro model. XenServer is about making it packaged and easy.
Uhm, I haven't found XS7 any easier than a plain linux distro until now, Its only big advantage is the great API that provide a nice and encapsulated method to backup VMs. But IMHO is both harder and less powerful than libvirt (with both Xen and KVM).
have you played with XenOrchestra?
Not yet, but in truth I really prefer a solid CLI and documentation to another fancy GUI…
Solid CLI is good, but if you are using CLI, XenServer is the wrong product for you. XenServer's purpose is the XAPI and the only good XAPI implementation is XenOrchestra.
Nothing wrong with the all CLI approach, but XenServer really has no value in that case. Xen will kick its butt.