* Problem Growing Raid 5 Array - Help Needed!
@ 2008-06-02 14:50 Jeremy Leigh
2008-06-02 15:13 ` David Greaves
0 siblings, 1 reply; 5+ messages in thread
From: Jeremy Leigh @ 2008-06-02 14:50 UTC (permalink / raw)
To: linux-raid
Hi Guys, I have just grown my raid 5 from 7 to 8 500Gb drives.
I am now running into this problem.
When I try to run fsck /dev/md0 I get the following:
fsck.ext2: Device or resource busy while trying to open /dev/md0
Filesystem mounted or opened exclusively by another program?
Or when I try to run resize2fs /dev/md0 to make use of new drive, I get the
following:
resize2fs: Device or resource busy while trying to open /dev/md0
Couldnt find valid filesystem superblock.
Cat /proc/mdstat outputs:
Personalities : [raid6] [raid5] [raid4]
md0 : active raid5 sdb1[0] sdi1[7] sdg1[6] sdh1[5] sdf1[4] sde1[3] sdd1[2]
sdc1[1]
3418686208 blocks level 5, 256k chunk, algorithm 2 [8/8] [UUUUUUUU]
unused devices: <none>
However, I can still access and mount my filesystem - I just cannot grow it,
which I find very strange.
I have tried to init 1, to go to single user mode, and I have made sure file
system is unmounted, but this busy error still occurs.
Any ideas? Im kinda stuck. Google is no help!
I am running fedora core 7.
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problem Growing Raid 5 Array - Help Needed!
2008-06-02 14:50 Problem Growing Raid 5 Array - Help Needed! Jeremy Leigh
@ 2008-06-02 15:13 ` David Greaves
2008-06-03 15:03 ` Jeremy Leigh
0 siblings, 1 reply; 5+ messages in thread
From: David Greaves @ 2008-06-02 15:13 UTC (permalink / raw)
To: Jeremy Leigh; +Cc: linux-raid
Jeremy Leigh wrote:
> Hi Guys, I have just grown my raid 5 from 7 to 8 500Gb drives.
> I am now running into this problem.
> When I try to run fsck /dev/md0 I get the following:
What command line?
> fsck.ext2: Device or resource busy while trying to open /dev/md0
> Filesystem mounted or opened exclusively by another program?
>
> Or when I try to run resize2fs /dev/md0 to make use of new drive, I get the
> following:
>
> resize2fs: Device or resource busy while trying to open /dev/md0
> Couldn’t find valid filesystem superblock.
again, what command.
> Cat /proc/mdstat outputs:
>
> Personalities : [raid6] [raid5] [raid4]
> md0 : active raid5 sdb1[0] sdi1[7] sdg1[6] sdh1[5] sdf1[4] sde1[3] sdd1[2]
> sdc1[1]
> 3418686208 blocks level 5, 256k chunk, algorithm 2 [8/8] [UUUUUUUU]
>
> unused devices: <none>
So the resize worked and is complete.
> However, I can still access and mount my filesystem - I just cannot grow it,
> which I find very strange.
> I have tried to init 1, to go to single user mode, and I have made sure file
> system is unmounted, but this ‘busy’ error still occurs.
Have you rebooted? (Question, not suggestion)
What is the output from a mount command.
What is the line in /etc/fstab than normally mounts this filesystem?
Is mdadm running as a monitor daemon?
does lsof | grep <mountpoint> show anything?
David
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Problem Growing Raid 5 Array - Help Needed!
2008-06-02 15:13 ` David Greaves
@ 2008-06-03 15:03 ` Jeremy Leigh
2008-06-03 16:50 ` David Greaves
0 siblings, 1 reply; 5+ messages in thread
From: Jeremy Leigh @ 2008-06-03 15:03 UTC (permalink / raw)
To: 'David Greaves'; +Cc: linux-raid
Hi David,
These commands are being run from root.
[root@FileServer ~]# fsck /dev/md0
fsck 1.40.2 (12-Jul-2007)
e2fsck 1.40.2 (12-Jul-2007)
fsck.ext2: Device or resource busy while trying to open /dev/md0
Filesystem mounted or opened exclusively by another program?
[root@FileServer ~]# resize2fs /dev/md0
resize2fs 1.40.2 (12-Jul-2007)
resize2fs: Device or resource busy while trying to open /dev/md0
Couldn't find valid filesystem superblock.
[root@FileServer ~]# lsof | grep /home
smbd 4674 root cwd DIR 253,0 4096 2 /home
[root@FileServer ~]# umount /home -f
[root@FileServer ~]# lsof | grep /home
[root@FileServer ~]#
[root@FileServer ~]# mdadm --stop --scan
mdadm: fail to stop array /dev/md0: Device or resource busy
Yes, I have rebooted, and rebooted into single user mode with no effect.
Mount works fine for the LVM volume sitting on /dev/md0
[root@FileServer ~]# mount /dev/LVMRAID/LV0 /home
[root@FileServer ~]#
Before sending email to this list I had already commented out the line in
/etc/fstab in case that was the cause. But here it is anyway.
#/dev/LVMRAID/LV0 /home ext3 defaults 1 2
Finally, I can give you output of mdadm --detail, but to be honest, I don't
know what else I can do... This is really frustrating.
[root@FileServer ~]# mdadm --detail /dev/md0
/dev/md0:
Version : 00.90.03
Creation Time : Wed Jul 18 21:10:47 2007
Raid Level : raid5
Array Size : 3418686208 (3260.31 GiB 3500.73 GB)
Used Dev Size : 488383744 (465.76 GiB 500.10 GB)
Raid Devices : 8
Total Devices : 8
Preferred Minor : 0
Persistence : Superblock is persistent
Update Time : Wed Jun 4 00:19:29 2008
State : clean
Active Devices : 8
Working Devices : 8
Failed Devices : 0
Spare Devices : 0
Layout : left-symmetric
Chunk Size : 256K
UUID : 46e9ab9d:c365cd2c:e08c1bc3:73c070ca
Events : 0.988674
Number Major Minor RaidDevice State
0 8 17 0 active sync /dev/sdb1
1 8 33 1 active sync /dev/sdc1
2 8 49 2 active sync /dev/sdd1
3 8 65 3 active sync /dev/sde1
4 8 81 4 active sync /dev/sdf1
5 8 113 5 active sync /dev/sdh1
6 8 97 6 active sync /dev/sdg1
7 8 129 7 active sync /dev/sdi1
I am not sure why it says RAID size, 3500.73 GB? Well it should be 4000 GB -
or maybe that only appears after the resize2fs.
Thanks for your response so far David.
Anyone else want to join in?
Regards.
-----Original Message-----
From: David Greaves [mailto:david@dgreaves.com]
Sent: Tuesday, 3 June 2008 1:13 AM
To: Jeremy Leigh
Cc: linux-raid@vger.kernel.org
Subject: Re: Problem Growing Raid 5 Array - Help Needed!
Jeremy Leigh wrote:
> Hi Guys, I have just grown my raid 5 from 7 to 8 500Gb drives.
> I am now running into this problem.
> When I try to run fsck /dev/md0 I get the following:
What command line?
> fsck.ext2: Device or resource busy while trying to open /dev/md0
> Filesystem mounted or opened exclusively by another program?
>
> Or when I try to run resize2fs /dev/md0 to make use of new drive, I get
the
> following:
>
> resize2fs: Device or resource busy while trying to open /dev/md0
> Couldn't find valid filesystem superblock.
again, what command.
> Cat /proc/mdstat outputs:
>
> Personalities : [raid6] [raid5] [raid4]
> md0 : active raid5 sdb1[0] sdi1[7] sdg1[6] sdh1[5] sdf1[4] sde1[3] sdd1[2]
> sdc1[1]
> 3418686208 blocks level 5, 256k chunk, algorithm 2 [8/8] [UUUUUUUU]
>
> unused devices: <none>
So the resize worked and is complete.
> However, I can still access and mount my filesystem - I just cannot grow
it,
> which I find very strange.
> I have tried to init 1, to go to single user mode, and I have made sure
file
> system is unmounted, but this 'busy' error still occurs.
Have you rebooted? (Question, not suggestion)
What is the output from a mount command.
What is the line in /etc/fstab than normally mounts this filesystem?
Is mdadm running as a monitor daemon?
does lsof | grep <mountpoint> show anything?
David
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problem Growing Raid 5 Array - Help Needed!
2008-06-03 15:03 ` Jeremy Leigh
@ 2008-06-03 16:50 ` David Greaves
2008-06-06 12:39 ` Jeremy Leigh
0 siblings, 1 reply; 5+ messages in thread
From: David Greaves @ 2008-06-03 16:50 UTC (permalink / raw)
To: Jeremy Leigh; +Cc: linux-raid
Jeremy Leigh wrote:
> Hi David,
> Mount works fine for the LVM volume sitting on /dev/md0
> [root@FileServer ~]# mount /dev/LVMRAID/LV0 /home
Ah...
lvm is holding /dev/md0 open.
lvm is layered on top of, and uses, md - just like md uses your hard disks.
Try:
/etc/init.d/lvm2 stop
That should do it.
> Finally, I can give you output of mdadm --detail, but to be honest, I don't
> know what else I can do... This is really frustrating.
It would be nice if something told you what was holding the lock.
I occasionally forget on the server that uses lvm.
> These commands are being run from root.
>
> [root@FileServer ~]# fsck /dev/md0
Yeah - that's a bad idea!!!
your filesystem lives on /dev/LVMRAID/LV0
fsck /dev/LVMRAID/LV0
If you had been really unlucky, fsck could have found a superblock and started
scribbling all over your filesystem with potentially devastating results!
Always run filesystem tools on the device holding the filesystem, rather than
some random component ;)
and similartly
> [root@FileServer ~]# resize2fs /dev/md0
resize2fs /dev/LVMRAID/LV0
HTH
David
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Problem Growing Raid 5 Array - Help Needed!
2008-06-03 16:50 ` David Greaves
@ 2008-06-06 12:39 ` Jeremy Leigh
0 siblings, 0 replies; 5+ messages in thread
From: Jeremy Leigh @ 2008-06-06 12:39 UTC (permalink / raw)
To: 'David Greaves'; +Cc: linux-raid
Hi David, you are right, thankyou!
I have now:
[root@FileServer ~]#pvresize /dev/md0
And then from system-config-lvm I have selected 'Use Remaining' space on the
logical volume.
All done. Good thing LVM keeps a lock on the device ;)
No doubt someone thought there would be users like me :D
-----Original Message-----
From: David Greaves [mailto:david@dgreaves.com]
Sent: Wednesday, 4 June 2008 2:51 AM
To: Jeremy Leigh
Cc: linux-raid@vger.kernel.org
Subject: Re: Problem Growing Raid 5 Array - Help Needed!
Jeremy Leigh wrote:
> Hi David,
> Mount works fine for the LVM volume sitting on /dev/md0
> [root@FileServer ~]# mount /dev/LVMRAID/LV0 /home
Ah...
lvm is holding /dev/md0 open.
lvm is layered on top of, and uses, md - just like md uses your hard disks.
Try:
/etc/init.d/lvm2 stop
That should do it.
> Finally, I can give you output of mdadm --detail, but to be honest, I
don't
> know what else I can do... This is really frustrating.
It would be nice if something told you what was holding the lock.
I occasionally forget on the server that uses lvm.
> These commands are being run from root.
>
> [root@FileServer ~]# fsck /dev/md0
Yeah - that's a bad idea!!!
your filesystem lives on /dev/LVMRAID/LV0
fsck /dev/LVMRAID/LV0
If you had been really unlucky, fsck could have found a superblock and
started
scribbling all over your filesystem with potentially devastating results!
Always run filesystem tools on the device holding the filesystem, rather
than
some random component ;)
and similartly
> [root@FileServer ~]# resize2fs /dev/md0
resize2fs /dev/LVMRAID/LV0
HTH
David
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-06-06 12:39 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-02 14:50 Problem Growing Raid 5 Array - Help Needed! Jeremy Leigh
2008-06-02 15:13 ` David Greaves
2008-06-03 15:03 ` Jeremy Leigh
2008-06-03 16:50 ` David Greaves
2008-06-06 12:39 ` Jeremy Leigh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).