LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Server admin passed away... Help! (https://www.linuxquestions.org/questions/linux-newbie-8/server-admin-passed-away-help-4175602584/)

AB49K 04-01-2017 02:07 PM

Quote:

Originally Posted by Jay1969 (Post 5691337)
Thanks for your reply, AB49K.

I have found where the VMs are installed. See attachment.

I just came back from the office to try to extract the files from the server. I shutdown the server, plugged in a 2TB USB and booted on latest Knoppix live. I see the datapool partition, but I get an error message when clicking on it. I believe it had something to do with ***/usr.

I tried mounting the USB in order to create a stop backup and saving it directly on the USB and it did not work (cannot find the thread I used for now--will post the link later).

Can I use a command line I can run asking PM to take file vzdump-qemu-100-2016_11_11-09_30_41.vma.lzo and ship it on the USB device? We also have a NAS connected to the server. I assume I would have to mount it before being able to save anything?

I will work on the static IP in the meantime.

Because the backup is not a live disk and nicely compressed for you, just run good ol "rsync -avzc vzdump-qemu-100-2016_11_11-09_30_41.vma.lzo /path/to/externalhdd --progress" and then you'll have a nice backup ready to go. I don't know if proxmox supports a direct backup like that without adding the disk as a datastore and then running the backup targeting it.

Jay1969 04-01-2017 02:13 PM

Quote:

Because the backup is not a live disk and nicely compressed for you, just run good ol "rsync -avzc vzdump-qemu-100-2016_11_11-09_30_41.vma.lzo /path/to/externalhdd --progress" and then you'll have a nice backup ready to go. I don't know if proxmox supports a direct backup like that without adding the disk as a datastore and then running the backup targeting it.
Great! I just need some more info. I should run this exact, generic command?

rsync -avzc vzdump-qemu-100-2016_11_11-09_30_41.vma.lzo /path/to/externalhdd --progress

I do not need to identify the device (i.e. dev/sda1) or the container on the HDD to get this to work? (I feel kind of dumb asking.)

AB49K 04-01-2017 02:24 PM

Quote:

Originally Posted by Jay1969 (Post 5691341)
Great!
rsync -avzc vzdump-qemu-100-2016_11_11-09_30_41.vma.lzo /path/to/externalhdd --progress

Identify the device, then do

"sudo mkdir /externalhdd"
"sudo mount /dev/sdX /externalhdd"
then
"sudo rsync -avzc /datapool/backups-compressed/vzdump-qemu-100-2016_11_11-09_30_41.vma.lzo /externalhdd --progress"

I *think* I'm in the right directory here, if you get an error saying something along the lines as no such file, do
"cd /datapool/backups-compressed" then do "ls" and see what's in that folder. the lzo may just be in a subfolder depending on how the backups are set up.

Jay1969 04-03-2017 05:51 PM

AB49K, you rock!

By following your instructions, I was able to complete the process, and I am ecstatic to see—at this very moment—that the backup is being copied to the XHDD. What a terrific relief!

Next step: I need to get this backup on the Clonezilla'd HD, more specifically in the folder that PM uses to boot the virtual machine. You mentioned: /var/lib/vz/images/<VM ID>. Correct?

May I please ask you to provide the sequence of commands I should input in order to copy this backup from my XHDD onto the Proxmox-powered HDD. Will I need to partition the HDD in any ways?

Can't believe I made it this far! It would have been impossible without your help, AB49K & Rickkkk!

Thanks again!

AB49K 04-03-2017 07:23 PM

Quote:

Originally Posted by Jay1969 (Post 5692155)
AB49K, you rock!

Next step: I need to get this backup on the Clonezilla'd HD, more specifically in the folder that PM uses to boot the virtual machine. You mentioned: /var/lib/vz/images/<VM ID>. Correct?

May I please ask you to provide the sequence of commands I should input in order to copy this backup from my XHDD onto the Proxmox-powered HDD. Will I need to partition the HDD in any ways?

Can't believe I made it this far! It would have been impossible without your help, AB49K & Rickkkk!

Thanks again!

Are you using an different RAID set for your containers like on the old server?

If you are, the commands will be different - you may have to re-set up the storage devices to point to a local folder rather than the ZFS pool that it was on the original server.

Jay1969 04-03-2017 07:25 PM

No, I have one 2TB HDD in the box — that's it! I formatted the HDD, then cloned Proxmox on it using Clonezilla. That's all I did.

AB49K 04-03-2017 08:03 PM

Quote:

Originally Posted by Jay1969 (Post 5692190)
No, I have one 2TB HDD in the box — that's it! I formatted the HDD, then cloned Proxmox on it using Clonezilla. That's all I did.

Alright!
So there is a few things we might need to do.

First make a directory
"sudo mkdir /var/lib/vzbackup"
Then mount the external disk the same way as before.
then do
"sudo rsync -avzc /externalhdd/vzdump-qemu-100-2016_11_11-09_30_41.vma.lzo /var/lib/vzbackup --progress"

Once that's done, you'll have to add the new storage locations to the server.

in the Proxmox panel, go to datacentre -> storage
There should be a storage called "local" there. Double click on that and make sure "Disk Image, ISO Image, Container Template and Container" are highlighted.

Then, go to Add -> directory

For the ID, just put 'backups' or something
directory is "/var/lib/vzbackup"
and for content, set it as "VZDump backup file"

Now under your server list, you should see a new storage location with the ID of the new backup location. Click on that, it should list all the backups copied to /var/lib/vzbackup. And then just highlight the backup and choose "restore"

That should be it. :)

Rickkkk 04-04-2017 12:16 PM

Glad to see you're progressing with AB49K's help. At this point, I have nothing in particular to add since AB49K has much more pertinent experience for your particular situation.

I'll still follow this until the end, mind you :-)

Cheers.

Jay1969 04-04-2017 01:26 PM

OK, backups all have been transferred to my XHDD. Happy camper! Before I go on and proceed to next step, I am sure I need to unmount the XHDD before unplugging the device. I tried to reverse the steps AB49K indicated to mount the XHDD and transfer the files with rsync. It does not work.

What is the command to unmount the external HDD? I tried "unmount /dev/sdXX /externalhdd" without luck.

wpeckham 04-04-2017 03:34 PM

Quote:

Originally Posted by Jay1969 (Post 5692548)
OK, backups all have been transferred to my XHDD. Happy camper! Before I go on and proceed to next step, I am sure I need to unmount the XHDD before unplugging the device. I tried to reverse the steps AB49K indicated to mount the XHDD and transfer the files with rsync. It does not work.

What is the command to unmount the external HDD? I tried "unmount /dev/sdXX /externalhdd" without luck.

The command is not
Code:

unmount
. The command is
Code:

umount
.
I hope that helps.

Jay1969 04-04-2017 05:14 PM

Thanks wpeckham! :o

The backups were not copied the XHDD. I got an error message at the very end, something to do with read-only. I have a WD 2TB Elements, factory formatted. SHould we create a distinct Linux partition on this drive? Or create a folder through Windows (e.g. root/dump) and copy the files in that folder instead of at the disk's root?

Rickkkk 04-04-2017 07:22 PM

Quote:

Originally Posted by Jay1969 (Post 5692650)
Thanks wpeckham! :o

The backups were not copied the XHDD. I got an error message at the very end, something to do with read-only. I have a WD 2TB Elements, factory formatted. SHould we create a distinct Linux partition on this drive? Or create a folder through Windows (e.g. root/dump) and copy the files in that folder instead of at the disk's root?

That's odd. If there was a read-only flag on the file-system, I think you would have gotten a message immediately - not near the end of the copy cycle. Could you run a command on the machine your 2TB drive is plugged into :

Code:

lsblk -fs
Thx.

Jay1969 04-05-2017 11:30 AM

2 Attachment(s)
Retried — does not work. See snapshots.

AB49K 04-05-2017 11:38 AM

Hi Jay,

Try moving it into a different directory in the external HDD?
I can't really see what the rest of the error is due to the flash.
Did the .lzo get moved to the HDD anyway? do "ls -l /externalhdd/"

Jay1969 04-05-2017 11:47 AM

2 Attachment(s)
No, it did not. See screenshots. I created the 'dump' folder yesterday through Windows. What would the command to try to copy in that folder?

I would guess:

sudo rsync -avzc dump/externalhdd/vzdump-qemu-100-2016_11_11-09_30_41.vma.lzo /var/lib/vzbackup --progress

Please confirm.


All times are GMT -5. The time now is 02:46 AM.