Koozali.org: home of the SME Server

mounting a raid1 configured drive to new system

Offline kryptos

  • *****
  • 245
  • +0/-0
mounting a raid1 configured drive to new system
« on: July 04, 2011, 08:19:58 AM »
Hello all,

We had a very old server 5.6 and just recently bug down due to bad blocks and now it won't start anymore and make matter worst we only realize that it was running on degraded mode for a couple of weeks and have left with one updated drive and now it also broken. But I was able to run sme rescue from SME 7.5 disc on it and do e2fs2ck to be able fix some files but still doesn't boot anymore. Just decided to buy a new server for this since also it's really a long overdue to upgrade the unit. Now my concern is how do I mount this old drive to the new unit? The configuration of the old drive is raid1. And just want to mount the this unto the new system. how can do this? I need to extract all the files on it. any help would be appropriated.

Im running now a new system using SME 7.5.
 

Regards,
Rocel

Offline calisun

  • *
  • 620
  • +0/-1
Re: mounting a raid1 configured drive to new system
« Reply #1 on: July 06, 2011, 07:47:03 AM »
I am assuming that the data you want to save is in i-bays.
I would take that bad drive and put it into a PC, start that pc from a CD using KNOPPIX, or something similar, and see what you can rescue from that drive.

Do a fresh install of SME 7.x or 8b6 on the new server and just transfer rescued data to the new i-bays.
SME user and community member since 2005.
Want to install Wordpress in iBay of SME Server?
See my step-by-step How-To wiki here:
http://wiki.contribs.org/Wordpress_Multisite

Offline kryptos

  • *****
  • 245
  • +0/-0
Re: mounting a raid1 configured drive to new system
« Reply #2 on: July 06, 2011, 07:57:09 AM »
Hello,

I just manually transfer all the files using sme rescue with scp. I need to mount the drive to the new server before because I have encounter very large files which I think is a bad files because one of the file has 25gb size and takes me awhile to finish everything. So what I did is to find the large files and just delete it manually then do scp again. The difficult thing is to search that large files on each folders and delete it. But now works normal already I was able to transfer all the files except those I have deleted.

Regards,
Rocel

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: mounting a raid1 configured drive to new system
« Reply #3 on: July 06, 2011, 06:04:46 PM »
So what I did is to find the large files and just delete it manually then do scp again.
A tip for the future: use find to do this for you:
Code: [Select]
find / -type f -size +25G
You could even delete it immediately if you want to (but be carefull):
Code: [Select]
find / -type f -size +25G -exec rm -rf {} \;
See also the find man pages (online) or from the command line using:
Code: [Select]
man find
« Last Edit: July 06, 2011, 06:06:58 PM by cactus »
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline kryptos

  • *****
  • 245
  • +0/-0
Re: mounting a raid1 configured drive to new system
« Reply #4 on: July 07, 2011, 03:30:53 AM »
A tip for the future: use find to do this for you:
Code: [Select]
find / -type f -size +25G
You could even delete it immediately if you want to (but be carefull):
Code: [Select]
find / -type f -size +25G -exec rm -rf {} \;
See also the find man pages (online) or from the command line using:
Code: [Select]
man find


I did use this command but it didn't find the large file. I assume it is because of the corruption of the file that FIND cannot determine the correct file size.

Regards,
Rocel