Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Restore backup from a local drive

Discussion in 'Data Protection' started by Don D., Feb 28, 2017.

Tags:
  1. Don D.

    Don D. Member

    Joined:
    Nov 18, 2016
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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
     
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    569
    Likes Received:
    40
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Please post the output for the df -h command.
     
  3. Don D.

    Don D. Member

    Joined:
    Nov 18, 2016
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    California
    cPanel Access Level:
    Website Owner
    Good morning SysSachin,

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


    [root@ns519638 /]# 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
    [root@ns519638 /]#

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

    [root@ns519638 /]# 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

    [root@ns519638 /]#


    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
     
  4. Don D.

    Don D. Member

    Joined:
    Nov 18, 2016
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    California
    cPanel Access Level:
    Website Owner
    I mean the two /dev/sdd and /dev/sdc in my last statement
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  6. Don D.

    Don D. Member

    Joined:
    Nov 18, 2016
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    California
    cPanel Access Level:
    Website Owner
    Thanks Michael,

    I will call OVH now to have them mount those drives in our server and I will report back to you.

    Thanks so much for your help!

    Don
     
  7. Don D.

    Don D. Member

    Joined:
    Nov 18, 2016
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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:

    [root@ns519638 /]# 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:

    [root@ns519638 /]# 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
    [root@ns519638 /]# 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

    [root@ns519638 /]#
     
    #7 Don D., Feb 28, 2017
    Last edited by a moderator: Feb 28, 2017
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page