Re: Why can't I stop these arrays? PATCH

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>> Any advice?  Probably I've missed something obvious..

Yes, of course I did. :)  (To other poster, I checked lsof immediately.)

> Do they have volume groups on them?

Yes, I do.  I should know, since I created them.  I've been fooling
around all day with lvm, but somehow completely forget it would keep the
array active..

> I would "vgdisplay" and if they show up in there they will need to be 
> turned off there before they can be unmounted (vgchange -a y device).

I'm fairly certain here you mean: "vgchange -a n <vg_name>".

Thanks Roger!

Since this has come up on the mailing before, is there any interest in
this trivial one liner?  (Perhaps it needs to go elsewhere in the code
as well.)

diff -u -r mdadm-2.6.7/Manage.c mdadm-2.6.7-local/Manage.c
--- mdadm-2.6.7/Manage.c        2008-06-05 22:11:04.000000000 -0400
+++ mdadm-2.6.7-local/Manage.c  2008-06-22 20:35:25.000000000 -0400
@@ -115,6 +115,7 @@
                        if (quiet==0)
                                fprintf(stderr, Name ": fail to stop array %s: %s\n",
                                        devname, strerror(errno));
+                               fprintf(stderr, "Perhaps a running process, mounted filesystem or active volume group?\n");
                        return 1;
                }
                if (quiet <= 0)


Regards,
Richard
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux