How-To clone a Xen USB on Windows
-
@ntoxicator said in How-To clone a Xen USB on Windows:
What about from an SD card? Similar process I presume?
SD cards are actually USB thumb drives. Only difference is where the controller is located. The USB drive has a tiny controller built in. The SD card has the USB controller portion hard wired to the mobo and you only plug and unplug the memory chip portion. They are actually the same devices under the hood.
-
@Dashrender said
wow, that made my head spin.
Me, too.
I'm waiting for sommeone to dumb that down for a rook for when I need it, shortly.
-
@travisdh1 said in How-To clone a Xen USB on Windows:
@Dashrender said in How-To clone a Xen USB on Windows:
I'm wondering, if your server supports two internal USB ports (or willing to use an external one) I wonder if you can dd a running disk to an image, then dd it to the other disk?
XenServer 6.5 is using LVM for the root file system, so no need to do something so gouch as using dd to image drives. Create a physical volume on the backup drive, add the new PV to the system volume group, create a mirror image by making a new snapshot of the system logical volume on the backup PV. Remove the backup PV from the VG. Remove backup USB. Verify it boots, and stash it some where.
Will it boot though? I didn't think the boot partition could use LVM?
Maybe it's something else. I know there is some limitation for /boot.
-
@johnhooks Grub2 can read files from LVM, so it could boot without a problem.
-
@Romo said in How-To clone a Xen USB on Windows:
@johnhooks Grub2 can read files from LVM, so it could boot without a problem.
Does XenServer support grub2? I know even in 7 they still set it up as a separate partition.
-
@johnhooks said in How-To clone a Xen USB on Windows:
@Romo said in How-To clone a Xen USB on Windows:
@johnhooks Grub2 can read files from LVM, so it could boot without a problem.
Does XenServer support grub2? I know even in 7 they still set it up as a separate partition.
After actually looking at my server yesterday, it doesn't look like XenServer puts itself on an LVM partition. wth man, makes no sense. Even ProxMox got that part right.
Google doesn't find any LVM how to things on mangolassi yet. Guess someone should get around to that.
-
@travisdh1 said in How-To clone a Xen USB on Windows:
@johnhooks said in How-To clone a Xen USB on Windows:
@Romo said in How-To clone a Xen USB on Windows:
@johnhooks Grub2 can read files from LVM, so it could boot without a problem.
Does XenServer support grub2? I know even in 7 they still set it up as a separate partition.
After actually looking at my server yesterday, it doesn't look like XenServer puts itself on an LVM partition. wth man, makes no sense. Even ProxMox got that part right.
Google doesn't find any LVM how to things on mangolassi yet. Guess someone should get around to that.
It might be a CentOS 6 limitation, I'll have to look at a RHEL system when I get to my desk.
-
Did anyone ever figure out if you could do this with dual USB slots?
I was trying to think of a way to do this from home via iDRAC as opposed to being in the office.
I guess I could leave the "blank" USB in the other slot, then boot to a Live Windows CD, do the clone, then reboot the server.
-
Was my post so laziness prone it didn't even deserve a response? LOL.
-
@BRRABill said in How-To clone a Xen USB on Windows:
Was my post so laziness prone it didn't even deserve a response? LOL.
Likely.
-
@scottalanmiller said
Likely.
I mean that's a thing, right?
What's the point of iDRAC if I have to come into the office?
Though I know a lot of people can't work from home, so we'll just say this is all theoretical.
-
@travisdh1 said in How-To clone a Xen USB on Windows:
After actually looking at my server yesterday, it doesn't look like XenServer puts itself on an LVM partition. wth man, makes no sense. Even ProxMox got that part right.
And uses EXT4 and VHD!!!!
-
@BRRABill said in How-To clone a Xen USB on Windows:
Did anyone ever figure out if you could do this with dual USB slots?
I was trying to think of a way to do this from home via iDRAC as opposed to being in the office.
I guess I could leave the "blank" USB in the other slot, then boot to a Live Windows CD, do the clone, then reboot the server.
Yes, that should work. iDRAC with the full license should let you do anything that you could do with the keyboard and monitor.
-
@scottalanmiller said
Yes, that should work. iDRAC with the full license should let you do anything that you could do with the keyboard and monitor.
Though I am assuming a "Windows Live CD" is probably against all sorts of licensing rules.
-
@BRRABill said in How-To clone a Xen USB on Windows:
@scottalanmiller said
Yes, that should work. iDRAC with the full license should let you do anything that you could do with the keyboard and monitor.
Though I am assuming a "Windows Live CD" is probably against all sorts of licensing rules.
Correct.
-
@BRRABill said in How-To clone a Xen USB on Windows:
@scottalanmiller said
Yes, that should work. iDRAC with the full license should let you do anything that you could do with the keyboard and monitor.
Though I am assuming a "Windows Live CD" is probably against all sorts of licensing rules.
Right. Just fire up clonezilla from iDRAC, no licensing issues, and it's dd made easy.
-
@travisdh1 said
Right. Just fire up clonezilla from iDRAC, no licensing issues, and it's dd made easy.
I was wondering if Clonezilla would work with booting issues and whatnot. I guess there is only 1 way to find out.
Hmmm, maybe I better do it the Windows way (from this thread) first juuuuuuuuuuuuuuuuuuust in case. I can see myself ending up with two blank USB sticks. Duh.
-
@BRRABill said in How-To clone a Xen USB on Windows:
@travisdh1 said
Right. Just fire up clonezilla from iDRAC, no licensing issues, and it's dd made easy.
I was wondering if Clonezilla would work with booting issues and whatnot. I guess there is only 1 way to find out.
Hmmm, maybe I better do it the Windows way (from this thread) first juuuuuuuuuuuuuuuuuuust in case. I can see myself ending up with two blank USB sticks. Duh.
If you make a backup from XenCenter before that, then all you have to do is reinstall and restore the backup at least.
-
@travisdh1 said
If you make a backup from XenCenter before that, then all you have to do is reinstall and restore the backup at least.
I actually have a question about that. but I will move it to my XS thread.
-
So, just to circle back to this...
Is it correct that Clonezilla can make an exact clone of my current boot USB stick?
So if I plug an identical USB stick into another port, and boot to Clonezilla, I should be ale to make an exact clone, and then boot to the clone?