Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: kryptos on July 04, 2011, 08:19:58 AM

Title: mounting a raid1 configured drive to new system
Post by: kryptos 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
Title: Re: mounting a raid1 configured drive to new system
Post by: calisun 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.
Title: Re: mounting a raid1 configured drive to new system
Post by: kryptos 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
Title: Re: mounting a raid1 configured drive to new system
Post by: cactus 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 (http://linux.die.net/man/1/find)) or from the command line using:
Code: [Select]
man find
Title: Re: mounting a raid1 configured drive to new system
Post by: kryptos 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 (http://linux.die.net/man/1/find)) 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