LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-30-2008, 04:27 AM   #1
TorinGnom
LQ Newbie
 
Registered: Jul 2008
Posts: 5

Rep: Reputation: 0
Unhappy fedora 8 can't use more than 1.2 TB


Hi everybody! Can you help me?
We got a new server and made a RAID-5 out of 6 HDDs 700GB each, totalling in 3.4 TB. When I tried to install Fedora 8 with a default layout (LVM with one partition / for 3.2 TB) it didn't want to boot for the first time at all. An error appeared:
init[1]: segfault at ... rip ... rsp ...
error 4

Second time I tried to install fedora I made two partitions: / and /home with 20 and 100 GB, the rest of the disk space was left unused.
Installation and booting went smoothly. Now Fedora is up and running. Then I tried to use system-config-lvm (GUI for managing LVM with pvcreate, lvcreate, etc) for creating another partition /data with 3.2 TB. It gave an error:
lvcreate: device-mapper: reload ioctl failed: Invalid argument
Then I tried to make a small partition /data00 with 1TB - that worked OK. But when I tried to make another small partition /data01 with 1TB it gave the same error! Even when I tried to make a tiny partition with only 500 GB it gave the same error

So currently only 1.2 TB is allocated and about 2.2 TB is left unused.
I'm desperate in fixing that problem!

What can be the reason for that error? Disk problems? Bad drivers for RAID? Old kernel or other Fedora components?

I checked at the adaptec website, its said there that the drivers for the Adaptec RAID controler are not provided for fedora 7 and higher since they are embedded into the distribution.
 
Old 07-30-2008, 05:33 AM   #2
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 999

Rep: Reputation: 142Reputation: 142
From another thread:

Quote:
Now look in your kernel message log for a slightly more detailed error message.
and

Quote:
...provide the output of 'pvs -o +dev_size'
 
Old 07-30-2008, 05:55 AM   #3
TorinGnom
LQ Newbie
 
Registered: Jul 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Srry for stupid questions, I'm quite a newbie.

Where can I get the kernel meassge log?


[root@jupiter antonk]# pvs -o +dev_size
bash: pvs: command not found
 
Old 07-30-2008, 06:12 AM   #4
TorinGnom
LQ Newbie
 
Registered: Jul 2008
Posts: 5

Original Poster
Rep: Reputation: 0
I think I got the kernel message log:

Jul 30 12:45:06 jupiter kernel: device-mapper: table: device 8:2 too small for target
Jul 30 12:45:06 jupiter kernel: device-mapper: table: 253:5: linear: dm-linear: Device lookup failed
Jul 30 12:45:06 jupiter kernel: device-mapper: ioctl: error adding target to table

and here is output from pvs:

[root@jupiter ~]# pvs -o +dev_size
PV VG Fmt Attr PSize PFree DevSize
/dev/sda2 RAID00 lvm2 a- 3.41T 2.30T 1.41T
 
Old 07-30-2008, 08:35 AM   #5
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 999

Rep: Reputation: 142Reputation: 142
Looks like you have exactly the same problem this guy has - what do you think?
Quote:
Jul 30 12:45:06 jupiter kernel: device-mapper: table: device 8:2 too small for target
Yes, the kernel log is shown (at least with the Gentoo distribution) with "less /var/log/messages") and/or with the command "dmesg".

Last edited by Pearlseattle; 07-30-2008 at 08:36 AM.
 
Old 07-30-2008, 11:49 PM   #6
TorinGnom
LQ Newbie
 
Registered: Jul 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Hi Pearlseattle! Thanx for the hint!!

It looks like I have the same problem.

My pvs gives the following output

Code:
PV VG Fmt Attr PSize PFree DevSize
/dev/sda2 RAID00 lvm2 a- 3.41T 2.30T 1.41T
Does that mean that Devise Size is 1.4 T only? But that's not true!!
I have a raid out of 6 HDDs, total 3.4 TB.
And there is no solution to that problem on the page you gave
And the partition table was not edited of course. I wish I knew hot to do that...

Finally, is that a problem of the device-mapper?
The version is
Library version: 1.02.22 (2007-08-21)
Driver version: 4.13.0
I'm trying to find a newer one...
 
Old 07-31-2008, 02:10 AM   #7
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 999

Rep: Reputation: 142Reputation: 142
Cool - that's already a step ahead.
Hmm, I don't think the problem is related to the version of the device-mapper. Usually they work fine and there are only few changes from version to version.
I think we need more informations:

What about "fdisk -l" as mentioned here? Does it list for all the drives that are involved a nice partition type "83" / Linux? Perhaps during the creation of the partitions something went wrong the correct partition type was set only on 3 out of 7 HDDs, leaving you with 2x700MB capacity + 1x parity HDDs?

What about the output of "cat /proc/mdadm"? By the way here a guy mentions that "linear" is supposed to be mentioned in its output - but I wouldn't be so sure.

And you're really not the only one having this problem.
 
Old 07-31-2008, 02:17 AM   #8
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 999

Rep: Reputation: 142Reputation: 142
And sorry, which kernel version are you using?
 
Old 07-31-2008, 03:16 AM   #9
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Maybe a silly question, but is your raid card(the hardware) able to handle this big of an array?
 
Old 07-31-2008, 05:35 AM   #10
TorinGnom
LQ Newbie
 
Registered: Jul 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Weeehaaa! I got it!

But first replies to your questions:

RAID can handle this array

Kernel:
Linux jupiter.niersc.spb.ru 2.6.23.1-42.fc8 #1 SMP Tue Oct 30 13:18:33 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux

bash: fdisk: command not found

cat: /proc/mdadm: No such file or directory


We installed another drive (on IDE bus) with 180GB and installed linux (also fedora 8) on it. After that we had four devices

/dev/cda1 - /boot partition on small IDE HDD (actually ~10 MB)
/dev/cda2 - / partition on small IDE HDD (actually ~160 GB)
/dev/cdb1 - /boot partition on RAID (actually ~10 MB)
/dev/cdb2 - / partition on RAID (actually ~3.4 TB)

and with this configuration also only 1.4T was accessible at /dev/cdb2
Only after we removed the boot partition /dev/cdb1 we managed to allocate all 3.4 TB on this device.

After that I created another volume group, and created a volume based only on /dev/cdb/ and created logical volume of 3TB without a probelm!

Similar problem is known in MS Windows. The disk which contains the MBR (master boot record, located on the 0 track, equal to the linux /boot) cannot be used to more than ~2TB. If the disk doesnt contain MBR it can be used to full extent.

Thank you guys for your interest and for your prompt replies/questions!
 
Old 07-31-2008, 08:51 AM   #11
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 999

Rep: Reputation: 142Reputation: 142
Uh? But even my grandmother has fdisk - weird.
Ok, nice that you found out that think with the boot partition - I would have never thought about it.
Cheers.
 
Old 08-17-2008, 01:21 AM   #12
us_ed
Member
 
Registered: Nov 2006
Posts: 54

Rep: Reputation: 15
Hi all!
Fedora8
After update kernel 2.6.24.10-47 to 2.6.25.14.69
in time boot
"
uncompressing.........
init[1]:segfault at 6 ip 0000..6 sp bfd782b8 error 4 in ld--2.7.so[110000+1b000]
.........
.........
"
 
  


Reply

Tags
fedora 8, lvm2, raid5



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
http://download.fedora.us/fedora/fedora/3/i386/RPMS.os broken! caps_phisto Fedora 3 02-05-2005 04:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:18 AM.

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
Open Source Consulting | Domain Registration