Restore backup from a local drive

Don D.

Member
Nov 18, 2016
7
0
1
California
cPanel Access Level
Website Owner
Hi guys,

I am a totally newbie, please if you help me, then give me step by step instructions. I am greatly appreciated.

I have a server with 4 hard drives:

(2) 2T drive which I mounted as /backup (raid) in my server before it crashed yesterday. I backed up the server daily "Per Account and Entire MySQL Directory" until yesterday.
and
(2) 430G SSD drive (raid as /dev/md1 and md2). These two drives partitioned into (/dev/sda1, /dev/sda2/, /dev/sda3) and (/dev/sdb1, /dev/sdb2, /dev/sdb3)

The SSD drives failed to reboot yesterday due to problem with Kernel version mismatch prompt me to install the Centos 7 and WHM in the boot drives. I want to restore everything from my back up so I don't miss anything, but here is my problems:

1) When I clicked on restore by date, there is nothing there, neither by account, which explain my second problem
2) I don't see the /backup mount on my new installed Centos 7 and WHM.

I really don't want to accident do wrong mounting of those back up drives and loose all of the months of works on the data in this server.

Would you please walk me slowly thru restoring back the two accounts I have on this server and all of its MariaDB database? I have 2 Magento stores on these two accounts and they are currently down.

Thank you so much in advance for your help!

Don
 

Don D.

Member
Nov 18, 2016
7
0
1
California
cPanel Access Level
Website Owner
Good morning SysSachin,

Thanks so much for your willingness to help me, here is what I have:


[[email protected] /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 48G 7.5G 38G 17% /
devtmpfs 32G 0 32G 0% /dev
tmpfs 32G 0 32G 0% /dev/shm
tmpfs 32G 19M 32G 1% /run
tmpfs 32G 0 32G 0% /sys/fs/cgroup
/dev/md2 392G 72M 372G 1% /home
tmpfs 6.3G 0 6.3G 0% /run/user/0
[[email protected] /]#

When I do fdisk -l as I read online, here is what I have:

[[email protected] /]# fdisk -l

Disk /dev/sda: 480.1 GB, 480103981056 bytes, 937703088 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: dos
Disk identifier: 0x655cdf40

Device Boot Start End Blocks Id System
/dev/sda1 * 4096 102402047 51198976 fd Linux raid autodetect
/dev/sda2 102402048 936648703 417123328 fd Linux raid autodetect
/dev/sda3 936648704 937695231 523264 82 Linux swap / Solaris

Disk /dev/sdb: 480.1 GB, 480103981056 bytes, 937703088 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: dos
Disk identifier: 0x29b7c816

Device Boot Start End Blocks Id System
/dev/sdb1 * 4096 102402047 51198976 fd Linux raid autodetect
/dev/sdb2 102402048 936648703 417123328 fd Linux raid autodetect
/dev/sdb3 936648704 937695231 523264 82 Linux swap / Solaris
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.

Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: gpt


# Start End Size Type Name
1 34 3907029134 1.8T Microsoft basic primary
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.

Disk /dev/sdd: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: gpt


# Start End Size Type Name
1 34 3907029134 1.8T Microsoft basic primary

Disk /dev/md2: 427.1 GB, 427134222336 bytes, 834246528 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/md1: 52.4 GB, 52427685888 bytes, 102397824 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

[[email protected] /]#


Those two /dev/sdb and /dev/sdc were in raid and they should have identical storage of my site

Thanks so much for your help!

Don
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,254
463
2) I don't see the /backup mount on my new installed Centos 7 and WHM.

I really don't want to accident do wrong mounting of those back up drives and loose all of the months of works on the data in this server.
Hello,

I recommend reaching out to your data center or the company you rent the server from to have them assist with mounting the /backup drive to the system. This isn't something you should do on your own without the help of a qualified system administrator or your data center.

Thank you.
 

Don D.

Member
Nov 18, 2016
7
0
1
California
cPanel Access Level
Website Owner
I called them and they sent me back to Cpanel, stating it is Cpanel not recognizing the drive, not hardware....? I went ahead and submitted the support ticket with them any way and hoping they will help.

In the mean time, I tested mounting the drive here and get the following error:

[[email protected] /]# mount -t gpt /dev/sdc /mnt
mount: unknown filesystem type 'gpt'

For some reason gpt is not a recognized filesystem, but we were able to mount and got it to work and stored the backup before it crashed. If we somehow can mount just one of the two drives, we can atleast copy the data into /home directory to carry out the restoration...

Further looking into 1 of the 2 back up drives, here is what I have, and obviously the drive did partition for just 1 partition:

[[email protected] /]# fdisk -l /dev/sdc
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.

Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: gpt


# Start End Size Type Name
1 34 3907029134 1.8T Microsoft basic primary
[[email protected] /]# parted /dev/sdc print
Model: ATA HGST HUS724020AL (scsi)
Disk /dev/sdc: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 17.4kB 2000GB 2000GB primary

[[email protected] /]#
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,254
463
Hello,

Feel free to open a support ticket using the link in my signature if you'd like us to take a closer look. You can post the ticket number here and we will update this thread with the outcome.

Thank you.