1&1 Linux server totally down how to recover data ?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,645
Rep:
I don't have any experience with RAID, but AFAIK you cannot mount sda1 etc. like a normal partition, but have to use /dev/md0 and so on.
I guess it would be worth to search for a good Linux RAID HowTo or threads about that here on linuxquestions.org.
I see that it's very hard just to try to recover some data :-(
All i want to know is if there's a (quite) simple way to download my date before reinstalling a new OS on the hard drives.
If i'm right, i must mount a partition in rescue mode and then backup the data inside /home (in fact all the files in www, the mysql bases and so on...)
but my server has 2 hard drives in RAID, and i don't have a clue about on which drive are stored my date and how to recover them '
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,645
Rep:
From what I found in the net (http://www.linuxhomenetworking.com/w..._Software_RAID) the command to see the status of your RAID devices should be "cat /proc/mdstat". Your fdisk output leaves the suspicion that you are using RAID 1, disk mirroring.
Another call to see the current setup seems to be "mdadm --detail --scan --verbose". This should give you the mdX device, for example md0 (according to the site linked above). Then you could create a mount point (it's in the link, too), for example "mkdir /mnt/raid" and call "mount /dev/md0 /mnt/raid" and hope the file system type (ext3, reiserfs, xfs etc.) will be autodetected.
If this is not enough info I would file a new thread -- it's basically mounting the RAID device I think and maybe remote copying the files (to your home machine?). With an appropriate title your chances to get the needed help are much better I think. Good luck
I could finally mount /dev/md1 ... md7 and now I can access the files I want to save.
Could you just now tell me how can I retrieve all those files and save them for example on my local PC or on another FTP server and how to retrieve all the databases and their content too ??
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,645
Rep:
Sorry, no experience with that other than a simple "get <filename>" over ftp. And that probably depends on how you are connected to the box, but again, no real clue
The thing I would try is to tar (*) the files and then (if you have a telnet or ssh connection) to transfer the tar file to your local box. If you have ftp access to the server (unsecure), you could simply connect to it and do "get <filename>", that copies the tar file to your local box. If you have ssh access to the server this might be helpful: http://www.saha.ac.in/cs/www/adware/001_SecureCopy.pdf (see the section "Using FTP over SSH to transfer files"), but I have never tried this. As it seems that not many others are reading this thread now please consider posting a new thread about "copying files to local box with ssh connection" or something like this.
(*) tar: Go to the root folder "/", then do "tar cjvf name-of-archive.tar.bz2 file1-to-save file2-to-save /folder/one/to/save /folder/two/to/save" to put all files and folders in one archive file.
I only have a ssh access to the server, nothing else. The server isn't reachable via a FTP client, web or anything else but SSH (and no physical access to it of course).
So for now, as I could finally mount the disks and found what specific folders i want to backup, I just need to tar the folders and sql bases, and then find a way to send them to another server i guess (if there's no other solution to download them in local).
I had a look at your pdf file but it shows how to connect using a FTP client, not in SSH.
I also tried to tar a folder : /mnt/md7/www/vhosts/domain_name.com but it doesn't seem to work.
Maybe you noticed that I had to quote the spaces. If I gave the trailing "/" with a folder had no influence at all, both are backed up.
To remote copy a file via ssh I think "scp" is one solution. It's even part of the "PuTTY" package which is available for Windows too. I don't know how simple it is to use. I guess if you have the "scp" command on your server it's worth a try from my short glimpse on the program. PuTTY is available at http://www.chiark.greenend.org.uk/~sgtatham/putty/. Read in the documentation chapter 5 (http://the.earth.li/~sgtatham/putty/...ter5.html#pscp), it looks straight forward.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.