XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Booting to Dracut (I trusted ChatGPT)

    Scheduled Pinned Locked Moved XCP-ng
    24 Posts 7 Posters 273 Views 6 Watching
    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.
    • N Offline
      nuentes @bvitnik
      last edited by

      @bvitnik I'm still unclear what metadata backs up. I suppose I don't need to know specifically, but I'm assuming it doesn't include initramfs and initrd? So a simple metadata restore would not resolve my issue, presumably?

      I'm worried about doing a reinstall - I'm assuming that would wipe the disk (although I know sometimes that's not the case with Linux reinstalls). I would prefer to preserve my VMs if possible. If I'm expecting to need to wipe the disk, then I'm not 100% certain that I have backups of all of my VMs, so I'd like to clone the disk. I ran into some issues trying to run clonezilla the other night, so I might just pull the SSD and clone it to another SSD bit for bit with a disk cloning enclosure.

      Just to point out - yes, my system has been offline for approaching a week now. But I've recently moved, so I have a lot of other things going on in life right now. I'd like to get it back online asap of course, but life keeps getting in the way. I feel that you are over-estimating how much I've done and mucked about. Anything I've actually performed is pretty full documented in this thread

      P AtaxyaNetworkA B 3 Replies Last reply Reply Quote 0
      • P Offline
        Pilow @nuentes
        last edited by

        @nuentes I explored my pool metadata backups, and I see a "part.1" file, that is a big XML of all the configuration of the pool

        so yeah I don't think there is something else in here like your OS parameters, only pool config.

        I could be wrong, but it's all I can see in here

        1 Reply Last reply Reply Quote 0
        • AtaxyaNetworkA Offline
          AtaxyaNetwork Ambassador @nuentes
          last edited by

          @nuentes You can reinstall without wiping the SR. Just plug the ISO, it will ask you if you want a clean install or a reinstall

          P AtaxyaNetworkA 2 Replies Last reply Reply Quote 0
          • P Offline
            Pilow @AtaxyaNetwork
            last edited by

            @AtaxyaNetwork yeah but if he doesn't have metadata backups, he will have SRs full of disconnected VDIs ? and the need to recreate each VM ?

            1 Reply Last reply Reply Quote 0
            • AtaxyaNetworkA Offline
              AtaxyaNetwork Ambassador @AtaxyaNetwork
              last edited by AtaxyaNetwork

              If I was in your place, I would do:

              • Disconnect all USB used as SR
              • Reinstall XCP-ng
              • if you have only a few VMs, my option would be just to redeploy XOA, REATTACH the SR (not create, REATTACH, be careful, a create will wipe your disk)
                • Recreate VMs, attach the VDI, boot from here
              • if you have to many VM, directly after deploying XOA restore your metadata backup, it should be repluging the SR and create PDB at least (but it's been a while since I didn't use the metadata)

              In any case, backup everything, especially the VDI (.vhd). If you have the VDI, you can work around with the rest

              AtaxyaNetworkA 1 Reply Last reply Reply Quote 1
              • B Online
                bvitnik @nuentes
                last edited by

                @nuentes metadata in this context is just XAPI database. In other words, it only contains information about your VMs, SRs, networks, pools etc. It does not contain anything system level. It is not a backup of the host system.

                As far as I know, but someone from Vates can confirm, metadata backup functionality in XO is based on XAPI pool-dump-database command:

                xe pool-dump-database file-name=dump.xml
                

                There is some info about it here:

                https://docs.xenserver.com/en-us/xenserver/8/dr/backup.html

                P.S. I guess metadata backup is also XML just like XAPI state file (database). I don't know why JSON came to my mind regarding metadata backup.

                P 1 Reply Last reply Reply Quote 0
                • P Offline
                  Pilow @bvitnik
                  last edited by

                  @bvitnik said in Booting to Dracut (I trusted ChatGPT):

                  P.S. I guess metadata backup is also XML just like XAPI state file (database). I don't know why JSON came to my mind regarding metadata backup.

                  Reply

                  perhaps because of other thread discussing metadatabackup.list in audit log

                  there is actually a bug there where the metadata is not only checked to be audited, but also completly dumped in JSON format.

                  1 Reply Last reply Reply Quote 0
                  • AtaxyaNetworkA Offline
                    AtaxyaNetwork Ambassador @AtaxyaNetwork
                    last edited by

                    (BTW you don't have any backup from XOA ? If you have backup, you can just register a new XOA, connect to you remote and restore everything, it will be much simpler)

                    C 1 Reply Last reply Reply Quote 0
                    • C Offline
                      cg @AtaxyaNetwork
                      last edited by

                      @AtaxyaNetwork did you ever think about "upgrading" the system?
                      The installer should be able to detect and backup your current one, installl new and migrate all relevant data.
                      That should exclude whatever home-brew-fiddlydiddly you did to your current installation.
                      The reason you're seeing 2 almost identical partitions is exactly that: The way how upgrades work with XenServer/XCP-ng. One is your current system, the other one may contain a backup of a previous install (which can also be restored by the installer - if existing).

                      As it's been mentioned: Neither trust USB-storage nor any AI without knowing what they suggest you to do. But you may have learned your AI-lesson: It can help, but it can end with a big pile of sh*t if you don't know what it's suggesting you. It's more A than I.

                      N 1 Reply Last reply Reply Quote 0
                      • N Offline
                        nuentes @cg
                        last edited by

                        @cg I've definitely got some things to try. Thanks, guys. Just need to be cautious with how I proceed so I minimize any losses

                        1 Reply Last reply Reply Quote 1
                        • First post
                          Last post