LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-30-2008, 01:27 AM   #1
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336

Rep: Reputation: 54
system locks up while formatting md software raid hdd


For some reason everytime I try to format a md device on one of my servers it just halts the whole machine. This is how far it gets:


[root@extsrv ~]# mkfs.ext3 /dev/md0
mke2fs 1.40.8 (13-Mar-2008)
Warning: 256-byte inodes not usable on older systems
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
61054976 inodes, 244190624 blocks
12209531 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
7453 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848

Writing inode tables: 142/7453




I tried to create a partition on the md device but I get an error (it's always done this on all servers I've setup) so I just ignored it and formatted the drive directly, I've done this many times no issues till now.

I also get this error at startup, could it be bad ram?

PCI: Error while updating region 0000:00:0d,1.1 (e2040000 != (missed the rest - had to be fast with the camera)

Last edited by Red Squirrel; 12-30-2008 at 07:20 PM.
 
Old 12-30-2008, 10:29 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
I see nobody's jumping in so maybe I can offer some ideas if not The Answer. Let's see if I understand the situation.
- This is happening on several different machines.
- All of the machines are running the same distribution and version of Linux.

This reminds me of when True Crypt released version 5.x. It caused exactly the same problem. The True Crypt people blamed the kernel. They also claimed that the problem was fixed in v2.6.24 of the kernel. I never tested to see if it was true.

You may be asking why the computer processes eventually freeze. If the physical disk drive that you are formatting also contains one or more partitions that are mounted by Linux then this is what happens.
- Your mkfs process issues a blocking i/o to write to the disk. For some reason that hangs. Then as each process attempts to read or write to the same physical disk, regardless of what partition, Linux puts those i/o requests behind the one from mkfs that is hung. Thus as each process tries to access the disk it will be put in a permanent wait state.

What Linux kernel version are you running? If you are running a version prior to 2.6.24 then you may want to upgrade or just stop using mkfs on the running system. You could boot a live CD and format your partitions that way. That would be a good diagnostic technique to test my blocking i/o theory.

Last edited by stress_junkie; 12-30-2008 at 10:31 PM.
 
Old 12-30-2008, 10:42 PM   #3
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336

Original Poster
Rep: Reputation: 54
I'm doing memtest now and going to leave it overnight.

(only doing this on one machine)

I'm running whatever kernel comes with FC9. I was thinking maybe the system was getting confused as the disks were previously used in a raid5 and now I'm using them in a raid 1 so I did a dd, it crashed durring the dd too but this time I got this error:

Code:
[root@extsrv ~]# dd if=/dev/zero of=/dev/sdc

Message from syslogd@extsrv at Dec 30 22:00:52 ...
kernel: do_IRQ: 0.46 No irq handler for vector
tomorrow I'll try the live cd route. Guess I should probably use another one then the FC9 one to rule out that kernel. I think I may have an ubuntu disc around.

Last edited by Red Squirrel; 12-30-2008 at 10:47 PM.
 
Old 12-31-2008, 06:04 PM   #4
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336

Original Poster
Rep: Reputation: 54
ok I doubt it's the drive. Did self test using smartctl and they came clean. I also tried to format them individually with ext3, they BOTH freeze. This makes no sense. It even does it if I use a boot CD. Anything that writes to it basically locks up the entire system. That machine was my old server, so it can't be the controller either, or I would of had problems before.


Edit: I can confirm it's not the drives. I tested both in another system and they format fine. I'm really at loss here. I tried plugging them into the other sata ports (I have 2 red ones and two black ones) but it would only see 1 drive. Is my motherboard screwed? I really hope not, as it's an older one and will be very hard to replace, I really can't afford to build a whole new system. I already spent enough money on this project, but now it's falling in the water. Would it work if I got a pci sata controller card?

Last edited by Red Squirrel; 12-31-2008 at 07:46 PM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
hard locks and freezing after creative repartitioning and formatting. NosLycn Linux - Hardware 1 09-27-2006 10:00 PM
Formatting a Partition - No Such Device or Address shadin Slackware 4 07-25-2006 09:26 PM
Xine locks up system mykrob Linux - Software 6 11-08-2004 07:24 AM
system locks joseph_1970 Linux - Hardware 4 12-10-2003 10:04 PM
System locks up on boot tied2 Linux - General 3 06-19-2003 07:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:31 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