精華區beta FB_stable 關於我們 聯絡資訊
Dear colleagues, [I'm under 4-STABLE] What is the correct sequence to delete existing vinum module (for example, raid10) and do *not* use -f flags for vinum? in my case t is raid10 vovume: vinum -> l -r t V t State: up Plexes: 2 Size: 8191 MB P t.p0 S State: up Subdisks: 2 Size: 8191 MB P t.p1 S State: up Subdisks: 2 Size: 8191 MB S t.d0 State: up PO: 0 B Size: 4095 MB S t.d8 State: up PO: 260 kB Size: 4095 MB S t.d2 State: up PO: 0 B Size: 4095 MB S t.d10 State: up PO: 260 kB Size: 4095 MB umount /dev/vinum/t vinum stop t (ok) vinum stop t.p0 <- this operation silently puts t up, and sets t.p0 faulty vinum stop t (ok) vinum stop t.p1 Last comment leads to error Can't stop t.p1: Device busy (16) Final state of objects are vinum -> l -r t V t State: down Plexes: 2 Size: 8191 MB P t.p0 S State: faulty Subdisks: 2 Size: 8191 MB P t.p1 S State: up Subdisks: 2 Size: 8191 MB S t.d0 State: down PO: 0 B Size: 4095 MB S t.d8 State: down PO: 260 kB Size: 4095 MB S t.d2 State: up PO: 0 B Size: 4095 MB S t.d10 State: up PO: 260 kB Size: 4095 MB Any suggestions? should I dig into vinum sources to track this down? Thanks in advance. Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------ _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -------------------------------------------------------------------------- < 發信人: mike@pcmedx.com ("Mike Maltese"), 看板: FB_stable 標 題: Re: vinum question: how could one correctly delete vinum module? 發信站: NCTU CSIE FreeBSD Server (Thu Nov 6 08:49:13 2003) 轉信站: ptt!FreeBSD.csie.NCTU!not-for-mail > Dear colleagues, > > [I'm under 4-STABLE] > > What is the correct sequence to delete existing vinum module (for example, > raid10) and do *not* use -f flags for vinum? > > in my case t is raid10 vovume: > > vinum -> l -r t > V t State: up Plexes: 2 Size: 8191 MB > P t.p0 S State: up Subdisks: 2 Size: 8191 MB > P t.p1 S State: up Subdisks: 2 Size: 8191 MB > S t.d0 State: up PO: 0 B Size: 4095 MB > S t.d8 State: up PO: 260 kB Size: 4095 MB > S t.d2 State: up PO: 0 B Size: 4095 MB > S t.d10 State: up PO: 260 kB Size: 4095 MB > > > umount /dev/vinum/t > vinum stop t (ok) > vinum stop t.p0 <- this operation silently puts t up, and sets t.p0 faulty > vinum stop t (ok) > vinum stop t.p1 > > Last comment leads to error > > Can't stop t.p1: Device busy (16) > > > Final state of objects are > > vinum -> l -r t > V t State: down Plexes: 2 Size: 8191 MB > P t.p0 S State: faulty Subdisks: 2 Size: 8191 MB > P t.p1 S State: up Subdisks: 2 Size: 8191 MB > S t.d0 State: down PO: 0 B Size: 4095 MB > S t.d8 State: down PO: 260 kB Size: 4095 MB > S t.d2 State: up PO: 0 B Size: 4095 MB > S t.d10 State: up PO: 260 kB Size: 4095 MB > > > Any suggestions? should I dig into vinum sources to track this down? You want to wipe out your configuration completely? Use "vinum resetconfig". You will loose all of your data, but if I understand your question correctly, this is the command to use. If you want to remove individual objects, use the rm command. Take a look at the vinum man page, it is quite useful. _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -------------------------------------------------------------------------- < 發信人: grog@lemis.com (Greg Lehey), 看板: FB_stable 標 題: Re: vinum question: how could one correctly delete vinum module? 發信站: NCTU CSIE FreeBSD Server (Thu Nov 6 08:49:13 2003) 轉信站: ptt!FreeBSD.csie.NCTU!not-for-mail On Friday, 31 October 2003 at 15:41:42 +0300, Dmitry Morozovsky wrote: > Dear colleagues, > > [I'm under 4-STABLE] > > What is the correct sequence to delete existing vinum module (for example, > raid10) and do *not* use -f flags for vinum? I think your terminology is incorrect. To delete an existing Vinum module under release 4, you would normally do: # rm /modules/vinum.ko To unload the module from the kernel, you would first quiesce the Vinum system and then do: # vinum stop But I'd guess that this isn't what you want to do. > in my case t is raid10 vovume: > > vinum -> l -r t > V t State: up Plexes: 2 Size: 8191 MB > P t.p0 S State: up Subdisks: 2 Size: 8191 MB > P t.p1 S State: up Subdisks: 2 Size: 8191 MB > S t.d0 State: up PO: 0 B Size: 4095 MB > S t.d8 State: up PO: 260 kB Size: 4095 MB > S t.d2 State: up PO: 0 B Size: 4095 MB > S t.d10 State: up PO: 260 kB Size: 4095 MB These subdisk names are very confusing. > umount /dev/vinum/t > vinum stop t (ok) > vinum stop t.p0 <- this operation silently puts t up, and sets t.p0 faulty > vinum stop t (ok) > vinum stop t.p1 > > Last comment leads to error > > Can't stop t.p1: Device busy (16) Why do you want to stop a plex? > Final state of objects are > > vinum -> l -r t > V t State: down Plexes: 2 Size: 8191 MB > P t.p0 S State: faulty Subdisks: 2 Size: 8191 MB > P t.p1 S State: up Subdisks: 2 Size: 8191 MB > S t.d0 State: down PO: 0 B Size: 4095 MB > S t.d8 State: down PO: 260 kB Size: 4095 MB > S t.d2 State: up PO: 0 B Size: 4095 MB > S t.d10 State: up PO: 260 kB Size: 4095 MB > > Any suggestions? should I dig into vinum sources to track this down? Well, I think you know the answer: use the -f flag. But maybe I'm misunderstanding the question. On Friday, 31 October 2003 at 8:30:38 -0800, Mike Maltese wrote: >> Any suggestions? should I dig into vinum sources to track this down? > > You want to wipe out your configuration completely? I don't think so. > Use "vinum resetconfig". You will loose all of your data, but if I > understand your question correctly, this is the command to use. If > you want to remove individual objects, use the rm command. Take a > look at the vinum man page, it is quite useful. As far as I can tell, he doesn't want to remove anything. Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -------------------------------------------------------------------------- < 發信人: marck@rinet.ru (Dmitry Morozovsky), 看板: FB_stable 標 題: Re: vinum question: how could one correctly "disassemble" vinum 發信站: NCTU CSIE FreeBSD Server (Thu Nov 6 08:49:13 2003) 轉信站: ptt!FreeBSD.csie.NCTU!not-for-mail On Sun, 2 Nov 2003, Greg Lehey wrote: GL> On Friday, 31 October 2003 at 15:41:42 +0300, Dmitry Morozovsky wrote: GL> > Dear colleagues, GL> > GL> > [I'm under 4-STABLE] GL> > GL> > What is the correct sequence to delete existing vinum module (for example, GL> > raid10) and do *not* use -f flags for vinum? GL> GL> I think your terminology is incorrect. To delete an existing Vinum GL> module under release 4, you would normally do: Urgh. Yeah, sure, something clouden my mind: s/module/volume/g of course ;-) But not only, see below. GL> > in my case t is raid10 vovume: GL> > GL> > vinum -> l -r t GL> > V t State: up Plexes: 2 Size: 8191 MB GL> > P t.p0 S State: up Subdisks: 2 Size: 8191 MB GL> > P t.p1 S State: up Subdisks: 2 Size: 8191 MB GL> > S t.d0 State: up PO: 0 B Size: 4095 MB GL> > S t.d8 State: up PO: 260 kB Size: 4095 MB GL> > S t.d2 State: up PO: 0 B Size: 4095 MB GL> > S t.d10 State: up PO: 260 kB Size: 4095 MB GL> GL> These subdisk names are very confusing. They are temporary, suffixes are derived from ata disk numbers, and I do *NOT* plan to use such names in production -- just for testing (made attaching/detaching a bit easier) GL> > umount /dev/vinum/t GL> > vinum stop t (ok) GL> > vinum stop t.p0 <- this operation silently puts t up, and sets t.p0 faulty This is my main question. Why *stopping* object (plex) puts aggregate object (volume) up silently, and finishes without an error? Seems lika a bug for me... GL> > vinum stop t (ok) GL> > vinum stop t.p1 GL> > GL> > Last comment leads to error GL> > GL> > Can't stop t.p1: Device busy (16) GL> GL> Why do you want to stop a plex? To _correctly_ (without -f and without harm to other objects in volume) detach plex from volume. GL> > Final state of objects are GL> > GL> > vinum -> l -r t GL> > V t State: down Plexes: 2 Size: 8191 MB GL> > P t.p0 S State: faulty Subdisks: 2 Size: 8191 MB GL> > P t.p1 S State: up Subdisks: 2 Size: 8191 MB GL> > S t.d0 State: down PO: 0 B Size: 4095 MB GL> > S t.d8 State: down PO: 260 kB Size: 4095 MB GL> > S t.d2 State: up PO: 0 B Size: 4095 MB GL> > S t.d10 State: up PO: 260 kB Size: 4095 MB GL> > GL> > Any suggestions? should I dig into vinum sources to track this down? GL> GL> Well, I think you know the answer: use the -f flag. But maybe I'm GL> misunderstanding the question. And I did failed to specify what I think, sorry ;-))) Parallel/aggregate question: let's assume we have raid10 volume, hence 4 sd's: volume v plex org striped 260k sd drive a sd drive b plex org striped 260k sd drive c sd drive d Is there procedure to rearrange subdisks in v (surely, stopping volume and re-newfs'ing required) to made raid0 volume *without* using -f (well, not exactly, as you can not attach sd to striped plex without it)? For me, it would be logical to: stop v stop v.p0 stop v.p1 detach v.p1.s0 detach v.p1.s1 attach -f v.p.s0 v.p0 rename attach -f v.p.s1 v.p0 rename Comments? Anyway, thank you very much for cooperation. Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------ _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"