How to (correctly!) mount a LOCAL ISO repo in XS7?
-
Every time I reboot the host after the configuration of a local ISO SR (in a mounted filesystem, XFS) I got the "mantainance mode" in startup…
I've created the ISO SR withxe sr-create type=iso device-config:legacy_mode=true
device-config:location=/path/to/mntpointand after that I mount the LVM logical volume (formatted in XFS) in /path/to/mntpoint, so I copied the appropriate row from /etc/mtab to /etc/fstab… standard procedure with Linux, really a mess with XS7!
The host would not start until I remove that row from /etc/fstab.
Is there a better way to mount the ISO SR in XS7 than doing it manually after startup?
@scottalanmiller -
Any reason you're not using XenCenter or XenOrchestra to create the SR?
-
@travisdh1 my storage is just an mdadm raid 10, so how can I create an LVM-based ISO repo with XenCenter? Maybe I missed that option…
-
The problem here is that the standard tools for doing this assume that the ISO repo will be remote, not local. If you want a local one, you are stuck without using the XenCenter tools. Not sure if XenOrchestra will allow for this in an automated way, have not looked into that and don't have one at the ready right at the moment. Maybe @DustinB3403 knows?
-
I have not tried to do this with XenServer before. The "standard" way to do this is to make a Samba server or similar in a VM and mount from that. Not the best answer, but it is what people typically do.
-
@scottalanmiller said in How to (correctly!) mount a LOCAL ISO repo in XS7?:
The problem here is that the standard tools for doing this assume that the ISO repo will be remote, not local. If you want a local one, you are stuck without using the XenCenter tools. Not sure if XenOrchestra will allow for this in an automated way, have not looked into that and don't have one at the ready right at the moment. Maybe @DustinB3403 knows?
XO does. You can just create a local repo the same as a remote repo. However, I've never had to go through the issues explained here. I just used the cli to create a local repo and it showed up in XenCenter. I didn't need to mount anything afterwards.
-
@stacksofplates said in How to (correctly!) mount a LOCAL ISO repo in XS7?:
@scottalanmiller said in How to (correctly!) mount a LOCAL ISO repo in XS7?:
The problem here is that the standard tools for doing this assume that the ISO repo will be remote, not local. If you want a local one, you are stuck without using the XenCenter tools. Not sure if XenOrchestra will allow for this in an automated way, have not looked into that and don't have one at the ready right at the moment. Maybe @DustinB3403 knows?
XO does. You can just create a local repo the same as a remote repo. However, I've never had to go through the issues explained here. I just used the cli to create a local repo and it showed up in XenCenter. I didn't need to mount anything afterwards.
@stacksofplates how do you exactly mount (permanently!) the ISO filesystem? I have tried to mount every combination of ext3/xfs and lvm volume/standard partition in /etc/fstab with common options, but every time XS7 stuck on boot and go in maintenance mode. Of course, the problem appears only when the host is rebooted...
-
So I haven't done this with XS7 as of yet.
The guide I followed on XS6.5 can be found here, everything is performed through the console.
Xen Orchestra has a guide that just uses the web console to create a local ISO SR.