ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    XenServer 7.0: clone USB (without removing)

    IT Discussion
    xenserver 7.0 usb cloning virtualization xenserver
    9
    64
    9.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DustinB3403D
      DustinB3403 @FATeknollogee
      last edited by

      @FATeknollogee said in XenServer 7.0: clone USB (without removing):

      @DustinB3403 thread: https://mangolassi.it/topic/8537/how-to-clone-a-xen-usb-on-windows shows how to clone USB.

      How do you clone with zero downtime or without removing the USB?

      You can't, at least not from what I tested (prior to stopping logging). Which is I test that long before I looked into the logging issue.

      1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller
        last edited by

        What does dd do if you try it normally?

        DustinB3403D BRRABillB 2 Replies Last reply Reply Quote 0
        • DustinB3403D
          DustinB3403 @scottalanmiller
          last edited by

          @scottalanmiller said in XenServer 7.0: clone USB (without removing):

          What does dd do if you try it normally?

          dd worked fine if I was cloning an XS USB to another, mounted in a Linux environment.

          scottalanmillerS 1 Reply Last reply Reply Quote 0
          • BRRABillB
            BRRABill @scottalanmiller
            last edited by

            @scottalanmiller said in XenServer 7.0: clone USB (without removing):

            What does dd do if you try it normally?

            I just does not work.

            We decided on the other thread because of /proc but then you said that was ridiculous or something.

            But I think the answer is shut it down, clone the USB on another machine, then restart.

            scottalanmillerS 1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller @DustinB3403
              last edited by

              @DustinB3403 said in XenServer 7.0: clone USB (without removing):

              @scottalanmiller said in XenServer 7.0: clone USB (without removing):

              What does dd do if you try it normally?

              dd worked fine if I was cloning an XS USB to another, mounted in a Linux environment.

              Does Linux not mount the XS boot media in the Dom0? If not, then I see the problem.

              1 Reply Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller @BRRABill
                last edited by

                @BRRABill said in XenServer 7.0: clone USB (without removing):

                @scottalanmiller said in XenServer 7.0: clone USB (without removing):

                What does dd do if you try it normally?

                I just does not work.

                We decided on the other thread because of /proc but then you said that was ridiculous or something.

                Yes, once /proc was mentioned I assumed that the statement that it didn't work was moot because it meant something totally unrelated was attempted as /proc is not on the USB (or on anything) and would not be a factor. So that meant that imaging the USB stick had not been attempted yet.

                BRRABillB 1 Reply Last reply Reply Quote 0
                • BRRABillB
                  BRRABill @scottalanmiller
                  last edited by

                  @scottalanmiller said in XenServer 7.0: clone USB (without removing):

                  @BRRABill said in XenServer 7.0: clone USB (without removing):

                  @scottalanmiller said in XenServer 7.0: clone USB (without removing):

                  What does dd do if you try it normally?

                  I just does not work.

                  We decided on the other thread because of /proc but then you said that was ridiculous or something.

                  Yes, once /proc was mentioned I assumed that the statement that it didn't work was moot because it meant something totally unrelated was attempted as /proc is not on the USB (or on anything) and would not be a factor. So that meant that imaging the USB stick had not been attempted yet.

                  I'm not saying I agreed with it.

                  I'm just saying it did not work.

                  scottalanmillerS 1 Reply Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller @BRRABill
                    last edited by

                    @BRRABill said in XenServer 7.0: clone USB (without removing):

                    I'm just saying it did not work.

                    And I was just saying that it must not have been attempted given the error. Someone tried to dd something else instead of the USB stick.

                    BRRABillB 1 Reply Last reply Reply Quote 0
                    • BRRABillB
                      BRRABill @scottalanmiller
                      last edited by

                      @scottalanmiller said in XenServer 7.0: clone USB (without removing):

                      @BRRABill said in XenServer 7.0: clone USB (without removing):

                      I'm just saying it did not work.

                      And I was just saying that it must not have been attempted given the error. Someone tried to dd something else instead of the USB stick.

                      So, what command would you use to use dd to clone my running XS USB boot device?

                      
                      NAME                                                                                            MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
                      sda                                                                                               8:0    0 447.1G  0 disk
                      └─XSLocalEXT--40f7cced--9587--c38f--e152--057e4ec2b2d0-40f7cced--9587--c38f--e152--057e4ec2b2d0 253:0    0 447.1G  0 lvm  /run/sr-mount/40f7cced-9587-c38f-e152-057e4ec2b2d0
                      sdb                                                                                               8:16   0 149.1G  0 disk
                      ├─sdb1                                                                                            8:17   0    18G  0 part /
                      ├─sdb2                                                                                            8:18   0    18G  0 part
                      ├─sdb3                                                                                            8:19   0   512M  0 part
                      ├─sdb5                                                                                            8:21   0     4G  0 part /var/log
                      └─sdb6                                                                                            8:22   0     1G  0 part [SWAP]
                      sr0                                                                                              11:0    1  1024M  0 rom
                      tda                                                                                             254:0    0   100G  0 disk
                      loop0                                                                                             7:0    0  54.8M  1 loop /var/xen/xc-install
                      [
                      
                      scottalanmillerS 1 Reply Last reply Reply Quote 0
                      • DustinB3403D
                        DustinB3403
                        last edited by DustinB3403

                        I tried using dd on my lab, from /sda to /sdb files were copied, but the drive wasn't bootable.

                        I had to shutdown the host remove the drive and use dd on a separate linux system to create a working clone.

                        BRRABillB 1 Reply Last reply Reply Quote 0
                        • BRRABillB
                          BRRABill @DustinB3403
                          last edited by

                          @DustinB3403 said in XenServer 7.0: clone USB (without removing):

                          I tried using dd on my lab, from /sda to /sdb files were copied, but the drive wasn't bootable.

                          I had to shutdown the host remove the drive and use dd on a separate linux system to create a working clone.

                          This was the thread.

                          https://www.mangolassi.it/topic/9425/cloning-xenserver-on-usb-or-sd/37

                          BRRABillB 1 Reply Last reply Reply Quote 0
                          • BRRABillB
                            BRRABill @BRRABill
                            last edited by

                            @scottalanmiller

                            Said something about the partitioning layer being copied if you use /sda, but we never finished out that thread.

                            1 Reply Last reply Reply Quote 1
                            • scottalanmillerS
                              scottalanmiller @BRRABill
                              last edited by

                              @BRRABill said in XenServer 7.0: clone USB (without removing):

                              @scottalanmiller said in XenServer 7.0: clone USB (without removing):

                              @BRRABill said in XenServer 7.0: clone USB (without removing):

                              I'm just saying it did not work.

                              And I was just saying that it must not have been attempted given the error. Someone tried to dd something else instead of the USB stick.

                              So, what command would you use to use dd to clone my running XS USB boot device?

                              
                              NAME                                                                                            MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
                              sda                                                                                               8:0    0 447.1G  0 disk
                              └─XSLocalEXT--40f7cced--9587--c38f--e152--057e4ec2b2d0-40f7cced--9587--c38f--e152--057e4ec2b2d0 253:0    0 447.1G  0 lvm  /run/sr-mount/40f7cced-9587-c38f-e152-057e4ec2b2d0
                              sdb                                                                                               8:16   0 149.1G  0 disk
                              ├─sdb1                                                                                            8:17   0    18G  0 part /
                              ├─sdb2                                                                                            8:18   0    18G  0 part
                              ├─sdb3                                                                                            8:19   0   512M  0 part
                              ├─sdb5                                                                                            8:21   0     4G  0 part /var/log
                              └─sdb6                                                                                            8:22   0     1G  0 part [SWAP]
                              sr0                                                                                              11:0    1  1024M  0 rom
                              tda                                                                                             254:0    0   100G  0 disk
                              loop0                                                                                             7:0    0  54.8M  1 loop /var/xen/xc-install
                              [
                              

                              Which of those is the USB stick?

                              BRRABillB 1 Reply Last reply Reply Quote 0
                              • DashrenderD
                                Dashrender
                                last edited by

                                can you dd it to a file, then dd that file to a new USB stick?

                                scottalanmillerS 1 Reply Last reply Reply Quote 0
                                • scottalanmillerS
                                  scottalanmiller @Dashrender
                                  last edited by

                                  @Dashrender said in XenServer 7.0: clone USB (without removing):

                                  can you dd it to a file, then dd that file to a new USB stick?

                                  Yes, dd to a file is how ISO files are made.

                                  1 Reply Last reply Reply Quote 0
                                  • BRRABillB
                                    BRRABill @scottalanmiller
                                    last edited by

                                    @scottalanmiller said in XenServer 7.0: clone USB (without removing):

                                    @BRRABill said in XenServer 7.0: clone USB (without removing):

                                    @scottalanmiller said in XenServer 7.0: clone USB (without removing):

                                    @BRRABill said in XenServer 7.0: clone USB (without removing):

                                    I'm just saying it did not work.

                                    And I was just saying that it must not have been attempted given the error. Someone tried to dd something else instead of the USB stick.

                                    So, what command would you use to use dd to clone my running XS USB boot device?

                                    
                                    NAME                                                                                            MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
                                    sda                                                                                               8:0    0 447.1G  0 disk
                                    └─XSLocalEXT--40f7cced--9587--c38f--e152--057e4ec2b2d0-40f7cced--9587--c38f--e152--057e4ec2b2d0 253:0    0 447.1G  0 lvm  /run/sr-mount/40f7cced-9587-c38f-e152-057e4ec2b2d0
                                    sdb                                                                                               8:16   0 149.1G  0 disk
                                    ├─sdb1                                                                                            8:17   0    18G  0 part /
                                    ├─sdb2                                                                                            8:18   0    18G  0 part
                                    ├─sdb3                                                                                            8:19   0   512M  0 part
                                    ├─sdb5                                                                                            8:21   0     4G  0 part /var/log
                                    └─sdb6                                                                                            8:22   0     1G  0 part [SWAP]
                                    sr0                                                                                              11:0    1  1024M  0 rom
                                    tda                                                                                             254:0    0   100G  0 disk
                                    loop0                                                                                             7:0    0  54.8M  1 loop /var/xen/xc-install
                                    [
                                    

                                    Which of those is the USB stick?

                                    I figured you'd know!

                                    /sdb

                                    /sdb1 is the 18GB XenServer host control domain (dom0) partition
                                    /sdb2 is the backup parittion
                                    /sdb3 is the UEFI boot partition
                                    /sdb5 is the logs partition
                                    /sdb6 is the swap partition

                                    BRRABillB DustinB3403D 2 Replies Last reply Reply Quote 0
                                    • BRRABillB
                                      BRRABill @BRRABill
                                      last edited by

                                      @BRRABill said

                                      /sdb6 is the swap partition

                                      Would THIS also cause writing to the USB stick?

                                      1 Reply Last reply Reply Quote 0
                                      • DustinB3403D
                                        DustinB3403 @BRRABill
                                        last edited by

                                        @BRRABill said in XenServer 7.0: clone USB (without removing):

                                        @scottalanmiller said in XenServer 7.0: clone USB (without removing):

                                        @BRRABill said in XenServer 7.0: clone USB (without removing):

                                        @scottalanmiller said in XenServer 7.0: clone USB (without removing):

                                        @BRRABill said in XenServer 7.0: clone USB (without removing):

                                        I'm just saying it did not work.

                                        And I was just saying that it must not have been attempted given the error. Someone tried to dd something else instead of the USB stick.

                                        So, what command would you use to use dd to clone my running XS USB boot device?

                                        
                                        NAME                                                                                            MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
                                        sda                                                                                               8:0    0 447.1G  0 disk
                                        └─XSLocalEXT--40f7cced--9587--c38f--e152--057e4ec2b2d0-40f7cced--9587--c38f--e152--057e4ec2b2d0 253:0    0 447.1G  0 lvm  /run/sr-mount/40f7cced-9587-c38f-e152-057e4ec2b2d0
                                        sdb                                                                                               8:16   0 149.1G  0 disk
                                        ├─sdb1                                                                                            8:17   0    18G  0 part /
                                        ├─sdb2                                                                                            8:18   0    18G  0 part
                                        ├─sdb3                                                                                            8:19   0   512M  0 part
                                        ├─sdb5                                                                                            8:21   0     4G  0 part /var/log
                                        └─sdb6                                                                                            8:22   0     1G  0 part [SWAP]
                                        sr0                                                                                              11:0    1  1024M  0 rom
                                        tda                                                                                             254:0    0   100G  0 disk
                                        loop0                                                                                             7:0    0  54.8M  1 loop /var/xen/xc-install
                                        [
                                        

                                        Which of those is the USB stick?

                                        I figured you'd know!

                                        /sdb

                                        /sdb1 is the 18GB XenServer host control domain (dom0) partition
                                        /sdb2 is the backup parittion
                                        /sdb3 is the UEFI boot partition
                                        /sdb5 is the logs partition
                                        /sdb6 is the swap partition

                                        You have to clone the entire drive though, you can't just pick and chose. Otherwise it's not cloning a working, bootable drive, just a partition on the drive.

                                        BRRABillB 1 Reply Last reply Reply Quote 0
                                        • BRRABillB
                                          BRRABill @DustinB3403
                                          last edited by

                                          @DustinB3403 said in XenServer 7.0: clone USB (without removing):

                                          @BRRABill said in XenServer 7.0: clone USB (without removing):

                                          @scottalanmiller said in XenServer 7.0: clone USB (without removing):

                                          @BRRABill said in XenServer 7.0: clone USB (without removing):

                                          @scottalanmiller said in XenServer 7.0: clone USB (without removing):

                                          @BRRABill said in XenServer 7.0: clone USB (without removing):

                                          I'm just saying it did not work.

                                          And I was just saying that it must not have been attempted given the error. Someone tried to dd something else instead of the USB stick.

                                          So, what command would you use to use dd to clone my running XS USB boot device?

                                          
                                          NAME                                                                                            MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
                                          sda                                                                                               8:0    0 447.1G  0 disk
                                          └─XSLocalEXT--40f7cced--9587--c38f--e152--057e4ec2b2d0-40f7cced--9587--c38f--e152--057e4ec2b2d0 253:0    0 447.1G  0 lvm  /run/sr-mount/40f7cced-9587-c38f-e152-057e4ec2b2d0
                                          sdb                                                                                               8:16   0 149.1G  0 disk
                                          ├─sdb1                                                                                            8:17   0    18G  0 part /
                                          ├─sdb2                                                                                            8:18   0    18G  0 part
                                          ├─sdb3                                                                                            8:19   0   512M  0 part
                                          ├─sdb5                                                                                            8:21   0     4G  0 part /var/log
                                          └─sdb6                                                                                            8:22   0     1G  0 part [SWAP]
                                          sr0                                                                                              11:0    1  1024M  0 rom
                                          tda                                                                                             254:0    0   100G  0 disk
                                          loop0                                                                                             7:0    0  54.8M  1 loop /var/xen/xc-install
                                          [
                                          

                                          Which of those is the USB stick?

                                          I figured you'd know!

                                          /sdb

                                          /sdb1 is the 18GB XenServer host control domain (dom0) partition
                                          /sdb2 is the backup parittion
                                          /sdb3 is the UEFI boot partition
                                          /sdb5 is the logs partition
                                          /sdb6 is the swap partition

                                          You have to clone the entire drive though, you can't just pick and chose. Otherwise it's not cloning a working, bootable drive, just a partition on the drive.

                                          That's what I thought, but @scottalanmiller said that also copies the partitioning scheme. Which I thought you would want, but it sounded negative.

                                          1 Reply Last reply Reply Quote 0
                                          • BRRABillB
                                            BRRABill
                                            last edited by

                                            @scottalanmiller

                                            Can we pick this discussion back up?

                                            Maybe explain what you meant by:
                                            "You have to copy what there is to where you want it. If the filesystem is on /dev/sda1 you don't want /dev/sda or you are copying the partitioning layer with it."

                                            scottalanmillerS 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 2 / 4
                                            • First post
                                              Last post