Running XenServer from a USB Drive
-
@scottalanmiller : Now something interesting happened, The USB stick got corrupted after multiple testing with the os installation.Getting a new one now
-
@Ajin said in Running Xen Server from a USB Drive.:
@scottalanmiller : Now something interesting happened, The USB stick got corrupted after multiple testing with the os installation.Getting a new one now
That's common if you don't have a solid plan for getting the writes to go elsewhere. The logging kills the USB very quickly. You need to be set up for read only or the USB is not even an option.
-
USB boot is not for the faint of heart. It's a great idea and I promote it heavily, but with Xen it is an expert only option. You want to really know what you are doing before going that route.
-
@Ajin said in Running Xen Server from a USB Drive.:
@scottalanmiller : Now something interesting happened, The USB stick got corrupted after multiple testing with the os installation.Getting a new one now
Common problem with removable flash storage like SD-Cards or USB thumb drives. They often do not feature wear leveling like a modern SSD. The SD card spec does not say a single word about wear leveling for example.
What @scottalanmiller is referring to is that you need some in-depth knowledge about partitioning, filesystems and overall Linux / Unix to create something solid. You would need to redirect logs (rsyslog for example), lock and pid files (ramdisk), /tmp (ramdisk) and a lot more to create a read-only solution that does not kill your flash with little writes. Best would be to implement something like unionfs or squashfs (AFAIK deprecated and replaced by unionfs) where you have a virtual layer between your storage and every write operation. Such a write operation could be mapped to a ramdisk at the filesystem level with unionfs for example.
But even with such a solution, you need to work around some problems. How would you change your configuration for example on a filesystem that is virtually read-only?
-
@thwr : Ok so for executing my plan of running XEN fron USB stick needs some more Reading and R&D as mentioned by @scottalanmiller.
So i am holding it back for now as my main priority is to upgrade Xen Server to 7 , just tried to run it from USB .
Need to invest more time for this USB project .As my priority is upgarding Xen Server , concentrating on it now , I will start a new thread for Upgrading Xen and roll back options if any upgrade error happens..
Thanks a lot for all the valuble suggestions and support for this one .
Wil be back in this thread soon.
-
@Ajin any reason to keep trying to use the USB and not just use the disks?
-
@scottalanmiller : The reason why i thought of going with the USB is that, i had some issues with the previous version of xen server where xapi ,and some other services gave some trouble in connecting to Xen console, xencenter and Xen orchestra. where if i have the os in the USB , i can easily replace the Memory stick if such issues reoccurs again in very less time than working on the whole re-installation and VMS migration. Plus i had read a lot in mangolassi and many other blogs about running these type of virtualisation platforms from portable storage device and thought it would be a best practice to do .
-
@scottalanmiller said in Running Xen Server from a USB Drive.:
@Ajin said in Running Xen Server from a USB Drive.:
@scottalanmiller : Now something interesting happened, The USB stick got corrupted after multiple testing with the os installation.Getting a new one now
That's common if you don't have a solid plan for getting the writes to go elsewhere. The logging kills the USB very quickly. You need to be set up for read only or the USB is not even an option.
If by very quickly you mean several months with a small number of VMs, then I agree. I have two VMs and they have run OK with local logging for several months so far.
I'll agree that there are a lot of factors to consider her, how often you're writing to logs being the biggest one. But if you're still in testing and haven't even booted to the XS yet, I doubt logs are what corrupted your install.
-
If I was doing it over again from scratch, I'd probably not use USB.
That being said, I have not had any issues thus far.
-
@BRRABill said in Running Xen Server from a USB Drive.:
If I was doing it over again from scratch, I'd probably not use USB.
That being said, I have not had any issues thus far.
Are you redirecting logs?
-
@BRRABill said in Running Xen Server from a USB Drive.:
If I was doing it over again from scratch, I'd probably not use USB.
That being said, I have not had any issues thus far.
Yeah I wouldn't either.
-
@Dashrender : I am in the testing stage only , was checking the possibilities .
-
@Dashrender said in Running Xen Server from a USB Drive.:
@BRRABill said in Running Xen Server from a USB Drive.:
If I was doing it over again from scratch, I'd probably not use USB.
That being said, I have not had any issues thus far.
Are you redirecting logs?
Yes.