LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 08-01-2011, 12:41 AM   #1
arnold1070
LQ Newbie
 
Registered: Jul 2011
Posts: 16

Rep: Reputation: Disabled
How to re-mount the RAID5 HDDs


Dear all:

I'm the Linux beginner. This is my frist linux server. My FTP server is using Centos5 and a 500GB HDD for a sys (included:/, /boot, SWAP)。The 6pcs 2TB HDD's used the on board RAID function to set a RAID 5 Database (included: /home). The 500GB HDD had failure. After replace the new HDD and re-install the Centos 5 how can I re-mount the RAID 5 HDDs (there are 6TB data in it now)and using the user login again because the /home had in it.
 
Old 08-01-2011, 11:16 AM   #2
tshikose
Member
 
Registered: Apr 2010
Location: Kinshasa, Democratic Republic of Congo
Distribution: RHEL, Fedora, CentOS
Posts: 326

Rep: Reputation: 67
Hi arnold1070,

The best way whould have been you had taking the precaution of keeping a copy of the original /etc/fstab.
I guess you didn't before resintalling your Centos.

Fist give us the ouptuts of the commands below.

cat /etc/fstab
df -h
fdisk -l


Regards,
 
Old 08-01-2011, 11:59 AM   #3
dafydd2277
Member
 
Registered: Mar 2010
Posts: 58

Rep: Reputation: 5
Hi, Arnold,

Can you also go into more detail about "on board RAID function?" Are you talking about an OS/SW RAID controller, or a BIOS RAID controller? If it's a BIOS RAID controller, your solution may be simpler.

Regards,
dafydd
 
Old 08-01-2011, 11:48 PM   #4
arnold1070
LQ Newbie
 
Registered: Jul 2011
Posts: 16

Original Poster
Rep: Reputation: Disabled
Dear all(Tshimanga/dafydd):

Thanks for your taught. Before the Centos down, I didn't copy the "/etc/fstab" because I don't know it is so important.

The "on board RAID function" mean "BIOS RAID controller". Thie is the build in function of the motherboard. The server didn't install any RAID controller card.

So what can I do?

Best regards
Arnold.
 
Old 08-02-2011, 12:14 AM   #5
gregvp
LQ Newbie
 
Registered: Dec 2006
Distribution: ARCH Linux
Posts: 12

Rep: Reputation: 2
What can you do?

As tsihkose said,
First give us the outputs of the commands below.

cat /etc/fstab
df -h
fdisk -l
 
Old 08-02-2011, 12:16 AM   #6
dafydd2277
Member
 
Registered: Mar 2010
Posts: 58

Rep: Reputation: 5
Hi, Arnold,

The good news is that the data is probably still available. The bad news is we're going to have to try to walk you through reattaching it without destroying the data.

Step 1 is to, very briefly, run "parted" as the root user. All I want to see is the output from "print all". After that, do "quit" to exit the utility. DON'T DO ANYTHING ELSE WHILE PARTED IS RUNNING. This utility will wipe your disks and not bother to kiss you afterwards. Hopefully, the output of "print all" will tell us how your OS is seeing the RAID device, and we can come up with a game plan from there. Step 2, and while you're waiting for the next step, is to do "man fstab" to read the manual page for the FileSystem TABle. That's where we'll tell your OS how to see that RAID device, when we know where to find it.

Cheers!
dafydd
 
Old 08-13-2011, 03:16 AM   #7
arnold1070
LQ Newbie
 
Registered: Jul 2011
Posts: 16

Original Poster
Rep: Reputation: Disabled
Dear dafydd2277:

I tried your method. The result was as the following. I can't see the RAID 5 HDD's. Now, what can I do.


[root@localhost ~]# parted
GNU Parted 1.8.1
使用 /dev/hdf
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print all

Model: Hitachi HCP725050GLAT80 (ide)
Disk /dev/hdf: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system 旗標
1 32.3kB 206MB 206MB 主分割區 ext3 啟動
2 206MB 21.2GB 21.0GB 主分割區 ext3
3 21.2GB 23.3GB 2097MB 主分割區 linux-swap
4 23.3GB 500GB 477GB 擴充分割區
5 23.3GB 500GB 477GB 邏輯分割區 ext3


Backtrace has 10 calls on stack:
10: /usr/lib/libparted-1.8.so.0(ped_assert+0x3b) [0xca5f3b]
9: /usr/lib/libparted-1.8.so.0 [0xce96a7]
8: /usr/lib/libparted-1.8.so.0(ped_disk_new+0xa3) [0xcaebb3]
7: parted [0x804d21b]
6: parted [0x804dd78]
5: parted [0x804d2ca]
4: parted(interactive_mode+0x11c) [0x8053adc]
3: parted(main+0x88) [0x8050f88]
2: /lib/libc.so.6(__libc_start_main+0xdc) [0x2dae9c]
1: parted [0x804b521]


You found a bug in GNU Parted! Here's what you have to do:

Don't panic! The bug has most likely not affected any of your data.
Help us to fix this bug by doing the following:

Check whether the bug has already been fixed by checking
the last version of GNU Parted that you can find at:

http://ftp.gnu.org/gnu/parted/

Please check this version prior to bug reporting.

If this has not been fixed yet or if you don't know how to check,
please visit the GNU Parted website:

http://www.gnu.org/software/parted

for further information.

Your report should contain the version of this release (1.8.1)
along with the error message below, the output of

parted DEVICE unit co print unit s print

and additional information about your setup you consider important.

Assertion ((PedSector) PED_LE64_TO_CPU (gpt->AlternateLBA) <= disk->dev->length - 1) at gpt.c:815 in function gpt_read() failed.

忽略/Ignore/取消/Cancel?
 
Old 08-14-2011, 12:54 PM   #8
dafydd2277
Member
 
Registered: Mar 2010
Posts: 58

Rep: Reputation: 5
Hi, Arnold,

Unfortunately, this likely means you need to find a Linux guru nearby who can actually put hands on your keyboard. This needs more expertise and assistance than you can get from a bulletin board.

The good news is that if the device it found was sdh, that means sda through sdg are still out there, somewhere. The bad news is, wherever they are, they're so unstable that they crashed parted.

So, the other thing you should do is report this bug, like parted asks you to, and ask the parted folks is they can give you context about why this bug appears. That might give you a clue as to what is happening to your disks.

Good luck!

dafydd
 
Old 08-23-2011, 09:18 PM   #9
arnold1070
LQ Newbie
 
Registered: Jul 2011
Posts: 16

Original Poster
Rep: Reputation: Disabled
Dear All:

Thank you very much for their. Finally, I found 2 HDDs have damaged so I think all the data lost. So, I only rebuilt my FTP server.

Best Refgards
Arnold
 
Old 08-29-2011, 04:27 AM   #10
arnold1070
LQ Newbie
 
Registered: Jul 2011
Posts: 16

Original Poster
Rep: Reputation: Disabled
Now, I 'm rebuilt my FTP server. I changed to use a LSI RAID controller card for 8pcs HDDs. I used 7pcs HDDs with RAID 6 and 1pc for hotspare. There are 9TB volume now. In the past, I can set the size of /home have 8TB space in CENTOS5.5. But I can't set the big vol(8TB or 9TB)under CENTOS6 x64. The max.partition size is only 2TB.

In centos 5.5 my partion setting is:
/boot ext3 200MB
/ ext3 20000MB
SWAP 2000MB
/home ext3 8TB

But I can't use this /home partition size in centos 6.

How can I set the max volume size(9TB) partition fot /home

Thanks

Best Ragards.
Arnold
 
Old 08-29-2011, 07:22 PM   #11
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,247

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
Are you saying the partition tool you are using won't let you create a partition that big, or you can't create a filesystem that size?
According to this, (assuming ext3/4) the filesystem size is allowable https://www.redhat.com/rhel/compare/
What partition tool are you using; exactly what did you do and what msgs did you get when you tried to create it.
 
Old 09-01-2011, 01:03 AM   #12
arnold1070
LQ Newbie
 
Registered: Jul 2011
Posts: 16

Original Poster
Rep: Reputation: Disabled
Dear Chris:

I didn't use other tool. When I new installed the Centos6. One of the step in create partition. After it automatic created the partition table(see the following). I tried to increase the size of the /home. But I was unsuccessfully.

LVM
VolGroup 2096648
lv_root 51200 / ext4
lv_home 2039512 /home ext4
lv_swap 5936 SWAP
HDD
sad
sad1 500 /boot ext4
sad2 2096651 VolGroup phycical volume(LVM)
free space 7438848

I tried to manually create the partition table. After created the /boot, / and SWAP. I could not create /home because there had 3 primary partition. In the centos5.6 the forth partition will automatic created the extended partition with the /home. But the centos 6 did not have this function. So how can I make a 9TB partition for the /home directory?

Thanks
 
Old 09-01-2011, 10:03 PM   #13
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,247

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
Can you post the outputs for
Code:
cat /etc/fstab

df -h

fdisk -l  #lowercase 'L' there
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to add additional hdds & mount in linux zakiwar Linux - Software 1 10-19-2009 03:26 AM
HELP: mdadm raid5 from redhat to sles can't mount ron7000 Linux - Distributions 0 05-08-2008 04:54 PM
RAID5 using mdadm, how to mount /dev/md0? ggduff Linux - Software 4 11-14-2007 02:59 AM
Mount Raid5 on Re-Installed System twac SUSE / openSUSE 1 12-12-2006 12:26 PM
is there a way to mount knoppix on multiple hdds? bosewicht Linux - Newbie 1 11-04-2003 11:06 PM


All times are GMT -5. The time now is 08:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration