All of lore.kernel.org
 help / color / mirror / Atom feed
* trouble creating array
@ 2007-02-25 22:33 jahammonds prost
  2007-02-25 22:35 ` Justin Piszcz
  0 siblings, 1 reply; 11+ messages in thread
From: jahammonds prost @ 2007-02-25 22:33 UTC (permalink / raw)
  To: linux-raid

Just built a new FC6 machine, with 5x 320Gb drives and 1x 300Gb drive. Made a 300Gb partition on all the drives /dev/hd{c,d,e} and /dev/sd{a,b,c}... Trying to create an array gave me an error, since it thought there was already an array on some of the disks (and there was an old one).

I decided to clear off the superblock on the drives with mdadm --zero-superblock on all the drives. It worked fine on all drives, except for /dev/sd{b,c)1, which returns an error "mdadm: Couldn't open /dev/sdb1 for write - not zeroing". There doesn't seem to be a problem with the drive, as I've run a non destructive badblocks on it, and also done a dd if=/dev/zero of=/dev/sdb1 on it, and Ive written out 300Gb onto the partition.

When I try and create an array using these 2 partitions, I get an error

mdadm: Cannot open /dev/sdb1: Device or resource busy
mdadm: Cannot open /dev/sdc1: Device or resource busy

and it aborts. I've double checked that the drives aren't mounted anywhere. There's nothing in /var/log/messages either...

Any suggestions where to check next?



Graham


		
___________________________________________________________ 
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: trouble creating array
  2007-02-25 22:33 trouble creating array jahammonds prost
@ 2007-02-25 22:35 ` Justin Piszcz
  0 siblings, 0 replies; 11+ messages in thread
From: Justin Piszcz @ 2007-02-25 22:35 UTC (permalink / raw)
  To: jahammonds prost; +Cc: linux-raid



On Sun, 25 Feb 2007, jahammonds prost wrote:

> Just built a new FC6 machine, with 5x 320Gb drives and 1x 300Gb drive. Made a 300Gb partition on all the drives /dev/hd{c,d,e} and /dev/sd{a,b,c}... Trying to create an array gave me an error, since it thought there was already an array on some of the disks (and there was an old one).
>
> I decided to clear off the superblock on the drives with mdadm --zero-superblock on all the drives. It worked fine on all drives, except for /dev/sd{b,c)1, which returns an error "mdadm: Couldn't open /dev/sdb1 for write - not zeroing". There doesn't seem to be a problem with the drive, as I've run a non destructive badblocks on it, and also done a dd if=/dev/zero of=/dev/sdb1 on it, and Ive written out 300Gb onto the partition.
>
> When I try and create an array using these 2 partitions, I get an error
>
> mdadm: Cannot open /dev/sdb1: Device or resource busy
> mdadm: Cannot open /dev/sdc1: Device or resource busy
>
> and it aborts. I've double checked that the drives aren't mounted anywhere. There's nothing in /var/log/messages either...
>
> Any suggestions where to check next?
>
>
>
> Graham
>
>
>
> ___________________________________________________________
> To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
> -
> 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
>

Do you have an active md array?

mdadm -S /dev/md0
mdadm -S /dev/md1
mdadm -S /dev/md2

.. etc

lsof | egrep '(sdb|sdc)'

Something thinks its in use, that is why you cannot format it/make it part 
of a new array, a reboot would also fix the problem.

Justin.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: trouble creating array
@ 2007-02-28 21:26 jahammonds prost
  0 siblings, 0 replies; 11+ messages in thread
From: jahammonds prost @ 2007-02-28 21:26 UTC (permalink / raw)
  To: jahammonds prost, Neil Brown; +Cc: Justin Piszcz, linux-raid

So anyways, I created my RAID device, and waited about 4 hours for it to sync, and all was happy with the world, so I went to bed. This morning, I made an ext3 file system on it, set up some directories, set the acls, added to my smb.conf file, mapped a drive, and after about 4Gb copied onto it, I got an error. Checking in the logs, there was an error about trying to access past the physical extent.

I did a quick check of mdstat, and one of the array disks was down, and an dm device had shown up in the array configuration. A quick dmsetup -C info again shows that mpath0p1 has returned again.

Does anyone know why it keeps appearing, and more importantly, is there any way of persuading it not to...?

Thanks again for any help and pointers people can give...


Graham


----- Original Message ----
From: jahammonds prost <gmitch64@yahoo.com>
To: Neil Brown <neilb@suse.de>
Cc: Justin Piszcz <jpiszcz@lucidpixels.com>; linux-raid@vger.kernel.org
Sent: Tuesday, 27 February, 2007 8:10:36 PM
Subject: Re: trouble creating array


Just an update for everyone on this (and for the archives), Did some digging, and had a look at the device mapper config

# dmsetup -C info

Name             Maj Min Stat Open Targ Event  UUID
mpath0           253   0 L--w    1    1      0 
VolGroup00-LogVol01 253   3 L--w    1    1      0 LVM-2sahQifzg9s9k0xSkpnzpGCYd7JNVXzUof6XmQ0fhzJ6jIbQLciAbm6lJLwK0Aex
VolGroup00-LogVol00 253   2 L--w    1    1      0 LVM-2sahQifzg9s9k0xSkpnzpGCYd7JNVXzUt3sJ3nwvJF8cr6ebv5AdnY0j4Ajl6U0I
mpath0p1         253   1 L--w    0    1      0 


Those 2 multipath devices shouldn't have been there, and indeed mpath0p1 were my 2 recalcitrant disks.

# dmsetup -C remove mpath0p1
# dmsetup -C remove mpath0

And they were both gone (you need to start at the bottom of the tree when removing them).

A quick fdisk of my disks to create sdb1 and sdc1 partitions, and my array will be synched in 204 mins...:)

Thanks to everyones help for pointing me in the right direction.. It was a trip I would have preferred not to have made, but like all trips like that, it's been illuminating.

Thanks again.


Graham



----- Original Message ----
From: Neil Brown <neilb@suse.de>
To: jahammonds prost <gmitch64@yahoo.com>
Cc: Justin Piszcz <jpiszcz@lucidpixels.com>; linux-raid@vger.kernel.org
Sent: Sunday, 25 February, 2007 11:40:26 PM
Subject: Re: trouble creating array


On Sunday February 25, gmitch64@yahoo.com wrote:
> 
> 
> Any ideas how to find out what has it open? I can happily write all over the disk with dd... I can create and delete the partition, and it's all good... I will try deleting the sd{b,c}1 partitions, reboot, and see what happens.
> 

ls -l /sys/block/*/holders/* ??

NeilBrown


    
    
        
___________________________________________________________ 
New Yahoo! Mail is the ultimate force in competitive emailing. Find out more at the Yahoo! Mail Championships. Plus: play games and win prizes. 
http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk 
-
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


		
___________________________________________________________ 
Copy addresses and emails from any email account to Yahoo! Mail - quick, easy and free. http://uk.docs.yahoo.com/trueswitch2.html

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: trouble creating array
@ 2007-02-28  1:10 jahammonds prost
  0 siblings, 0 replies; 11+ messages in thread
From: jahammonds prost @ 2007-02-28  1:10 UTC (permalink / raw)
  To: Neil Brown; +Cc: Justin Piszcz, linux-raid

Just an update for everyone on this (and for the archives), Did some digging, and had a look at the device mapper config

# dmsetup -C info

Name             Maj Min Stat Open Targ Event  UUID
mpath0           253   0 L--w    1    1      0 
VolGroup00-LogVol01 253   3 L--w    1    1      0 LVM-2sahQifzg9s9k0xSkpnzpGCYd7JNVXzUof6XmQ0fhzJ6jIbQLciAbm6lJLwK0Aex
VolGroup00-LogVol00 253   2 L--w    1    1      0 LVM-2sahQifzg9s9k0xSkpnzpGCYd7JNVXzUt3sJ3nwvJF8cr6ebv5AdnY0j4Ajl6U0I
mpath0p1         253   1 L--w    0    1      0 


Those 2 multipath devices shouldn't have been there, and indeed mpath0p1 were my 2 recalcitrant disks.

# dmsetup -C remove mpath0p1
# dmsetup -C remove mpath0

And they were both gone (you need to start at the bottom of the tree when removing them).

A quick fdisk of my disks to create sdb1 and sdc1 partitions, and my array will be synched in 204 mins...:)

Thanks to everyones help for pointing me in the right direction.. It was a trip I would have preferred not to have made, but like all trips like that, it's been illuminating.

Thanks again.


Graham



----- Original Message ----
From: Neil Brown <neilb@suse.de>
To: jahammonds prost <gmitch64@yahoo.com>
Cc: Justin Piszcz <jpiszcz@lucidpixels.com>; linux-raid@vger.kernel.org
Sent: Sunday, 25 February, 2007 11:40:26 PM
Subject: Re: trouble creating array


On Sunday February 25, gmitch64@yahoo.com wrote:
> 
> 
> Any ideas how to find out what has it open? I can happily write all over the disk with dd... I can create and delete the partition, and it's all good... I will try deleting the sd{b,c}1 partitions, reboot, and see what happens.
> 

ls -l /sys/block/*/holders/* ??

NeilBrown


	
	
		
___________________________________________________________ 
New Yahoo! Mail is the ultimate force in competitive emailing. Find out more at the Yahoo! Mail Championships. Plus: play games and win prizes. 
http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk 

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: trouble creating array
  2007-02-26 11:40 jahammonds prost
@ 2007-02-27 22:23 ` Luca Berra
  0 siblings, 0 replies; 11+ messages in thread
From: Luca Berra @ 2007-02-27 22:23 UTC (permalink / raw)
  To: linux-raid

On Mon, Feb 26, 2007 at 03:40:32AM -0800, jahammonds prost wrote:
>Ah ha....
>
># ls -l /sys/block/*/holders/*
>lrwxrwxrwx 1 root root 0 Feb 26 06:28 /sys/block/sdb/holders/dm-0 -> ../../../block/dm-0
>lrwxrwxrwx 1 root root 0 Feb 26 06:28 /sys/block/sdc/holders/dm-0 -> ../../../block/dm-0
>
>which I am assuming is dmraid? I did a quick check, and

no, it is device-mapper

># dmraid -r
>No RAID disks
>
use "dmsetup ls"

L.

-- 
Luca Berra -- bluca@comedia.it
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: trouble creating array
@ 2007-02-26 14:16 jahammonds prost
  0 siblings, 0 replies; 11+ messages in thread
From: jahammonds prost @ 2007-02-26 14:16 UTC (permalink / raw)
  To: Neil Brown; +Cc: Justin Piszcz, linux-raid

Rebooted and checked that there were no arrays defined. I have 2 cards in the server - one is a VIA based card, with a single Maxtor, the other this a Promise based card, with 2 Maxtors by Seagate on it. I've been into the config utilites on both cards, and none of them have arrays defined on them.

----- Original Message ----
From: Neil Brown <neilb@suse.de>
To: jahammonds prost <gmitch64@yahoo.com>
Cc: Justin Piszcz <jpiszcz@lucidpixels.com>; linux-raid@vger.kernel.org
Sent: Sunday, 25 February, 2007 11:40:26 PM
Subject: Re: trouble creating array


On Sunday February 25, gmitch64@yahoo.com wrote:
> 
> 
> Any ideas how to find out what has it open? I can happily write all over the disk with dd... I can create and delete the partition, and it's all good... I will try deleting the sd{b,c}1 partitions, reboot, and see what happens.
> 

ls -l /sys/block/*/holders/* ??

NeilBrown


		
___________________________________________________________ 
The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: trouble creating array
@ 2007-02-26 11:40 jahammonds prost
  2007-02-27 22:23 ` Luca Berra
  0 siblings, 1 reply; 11+ messages in thread
From: jahammonds prost @ 2007-02-26 11:40 UTC (permalink / raw)
  To: Neil Brown; +Cc: Justin Piszcz, linux-raid

Ah ha....

# ls -l /sys/block/*/holders/*
lrwxrwxrwx 1 root root 0 Feb 26 06:28 /sys/block/sdb/holders/dm-0 -> ../../../block/dm-0
lrwxrwxrwx 1 root root 0 Feb 26 06:28 /sys/block/sdc/holders/dm-0 -> ../../../block/dm-0

which I am assuming is dmraid? I did a quick check, and

# dmraid -r
No RAID disks

Doesn't look like there is anything defined.  I know that both sdb and sdc (as well as sda) are connected to SATA cards which support RAID under windows... However, I know there is no arrays defined on them on the cards (at least not by me)... I will bounce the server again and check.


Graham



----- Original Message ----
From: Neil Brown <neilb@suse.de>
To: jahammonds prost <gmitch64@yahoo.com>
Cc: Justin Piszcz <jpiszcz@lucidpixels.com>; linux-raid@vger.kernel.org
Sent: Sunday, 25 February, 2007 11:40:26 PM
Subject: Re: trouble creating array


On Sunday February 25, gmitch64@yahoo.com wrote:
> 
> 
> Any ideas how to find out what has it open? I can happily write all over the disk with dd... I can create and delete the partition, and it's all good... I will try deleting the sd{b,c}1 partitions, reboot, and see what happens.
> 

ls -l /sys/block/*/holders/* ??

NeilBrown


		
___________________________________________________________ 
The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: trouble creating array
  2007-02-26  2:56 jahammonds prost
  2007-02-26  3:01 ` Mark Hahn
@ 2007-02-26  4:40 ` Neil Brown
  1 sibling, 0 replies; 11+ messages in thread
From: Neil Brown @ 2007-02-26  4:40 UTC (permalink / raw)
  To: jahammonds prost; +Cc: Justin Piszcz, linux-raid

On Sunday February 25, gmitch64@yahoo.com wrote:
> 
> 
> Any ideas how to find out what has it open? I can happily write all over the disk with dd... I can create and delete the partition, and it's all good... I will try deleting the sd{b,c}1 partitions, reboot, and see what happens.
> 

ls -l /sys/block/*/holders/* ??

NeilBrown

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: trouble creating array
@ 2007-02-26  3:13 jahammonds prost
  0 siblings, 0 replies; 11+ messages in thread
From: jahammonds prost @ 2007-02-26  3:13 UTC (permalink / raw)
  To: Mark Hahn; +Cc: linux-raid

I hadn't thought of that, but it doesn't seem to be it...

# pvs
  PV         VG         Fmt  Attr PSize  PFree 
  /dev/hda2  VolGroup00 lvm2 a-   18.97G 32.00M

FC6 created that for my / and /boot and swap... Thanks for the suggestion tho - something I had not considered.


Graham


----- Original Message ----
From: Mark Hahn <hahn@mcmaster.ca>
To: jahammonds prost <gmitch64@yahoo.com>
Cc: linux-raid@vger.kernel.org
Sent: Sunday, 25 February, 2007 10:01:06 PM
Subject: Re: trouble creating array


> Any ideas how to find out what has it open? I can happily write all over

I think I've heard of other cases like this where it's lvm that's 
glommed onto the partition.  I don't use lvm, but perhaps 'lvdisplay'?


		
___________________________________________________________ 
All New Yahoo! Mail – Tired of unwanted email come-ons? Let our SpamGuard protect you. http://uk.docs.yahoo.com/nowyoucan.html
-
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] 11+ messages in thread

* Re: trouble creating array
  2007-02-26  2:56 jahammonds prost
@ 2007-02-26  3:01 ` Mark Hahn
  2007-02-26  4:40 ` Neil Brown
  1 sibling, 0 replies; 11+ messages in thread
From: Mark Hahn @ 2007-02-26  3:01 UTC (permalink / raw)
  To: jahammonds prost; +Cc: linux-raid

> Any ideas how to find out what has it open? I can happily write all over

I think I've heard of other cases like this where it's lvm that's 
glommed onto the partition.  I don't use lvm, but perhaps 'lvdisplay'?

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: trouble creating array
@ 2007-02-26  2:56 jahammonds prost
  2007-02-26  3:01 ` Mark Hahn
  2007-02-26  4:40 ` Neil Brown
  0 siblings, 2 replies; 11+ messages in thread
From: jahammonds prost @ 2007-02-26  2:56 UTC (permalink / raw)
  To: Justin Piszcz; +Cc: linux-raid

> Do you have an active md array?
>
> mdadm -S /dev/md0

Nothing was showing up in /proc/mdstat, but when I try and stop md0, I get this

# mdadm -S /dev/md0
mdadm: stopped /dev/md0

> lsof | egrep '(sdb|sdc)'

I had tried that before, and nothing is showing. A reboot didn't help, but something is definately keeping it open. I tried an mkfs

]# mkfs.ext3  /dev/sdb1
mke2fs 1.39 (29-May-2006)
/dev/sdb1 is apparently in use by the system; will not make a filesystem here!


Any ideas how to find out what has it open? I can happily write all over the disk with dd... I can create and delete the partition, and it's all good... I will try deleting the sd{b,c}1 partitions, reboot, and see what happens.


Graham




----- Original Message ----
From: Justin Piszcz <jpiszcz@lucidpixels.com>
To: jahammonds prost <gmitch64@yahoo.com>
Cc: linux-raid@vger.kernel.org
Sent: Sunday, 25 February, 2007 5:35:33 PM
Subject: Re: trouble creating array


On Sun, 25 Feb 2007, jahammonds prost wrote:

> Just built a new FC6 machine, with 5x 320Gb drives and 1x 300Gb drive. Made a 300Gb partition on all the drives /dev/hd{c,d,e} and /dev/sd{a,b,c}... Trying to create an array gave me an error, since it thought there was already an array on some of the disks (and there was an old one).
>
> I decided to clear off the superblock on the drives with mdadm --zero-superblock on all the drives. It worked fine on all drives, except for /dev/sd{b,c)1, which returns an error "mdadm: Couldn't open /dev/sdb1 for write - not zeroing". There doesn't seem to be a problem with the drive, as I've run a non destructive badblocks on it, and also done a dd if=/dev/zero of=/dev/sdb1 on it, and Ive written out 300Gb onto the partition.
>
> When I try and create an array using these 2 partitions, I get an error
>
> mdadm: Cannot open /dev/sdb1: Device or resource busy
> mdadm: Cannot open /dev/sdc1: Device or resource busy
>
> and it aborts. I've double checked that the drives aren't mounted anywhere. There's nothing in /var/log/messages either...
>
> Any suggestions where to check next?
>
>
>
> Graham
>
>
>
> ___________________________________________________________
> To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
> -
> 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
>

Do you have an active md array?

mdadm -S /dev/md0
mdadm -S /dev/md1
mdadm -S /dev/md2

.. etc

lsof | egrep '(sdb|sdc)'

Something thinks its in use, that is why you cannot format it/make it part 
of a new array, a reboot would also fix the problem.

Justin.


		
___________________________________________________________ 
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2007-02-28 21:26 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-25 22:33 trouble creating array jahammonds prost
2007-02-25 22:35 ` Justin Piszcz
2007-02-26  2:56 jahammonds prost
2007-02-26  3:01 ` Mark Hahn
2007-02-26  4:40 ` Neil Brown
2007-02-26  3:13 jahammonds prost
2007-02-26 11:40 jahammonds prost
2007-02-27 22:23 ` Luca Berra
2007-02-26 14:16 jahammonds prost
2007-02-28  1:10 jahammonds prost
2007-02-28 21:26 jahammonds prost

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.