How To Repair Vinum Subdisk?

Drew Tomlinson drew at mykitchentable.net
Fri Apr 25 05:51:01 PDT 2003


----- Original Message -----
From: "Greg 'groggy' Lehey" <grog at FreeBSD.org>
To: "Drew Tomlinson" <drew at mykitchentable.net>
Cc: "FreeBSD Questions" <freebsd-questions at freebsd.org>
Sent: Thursday, April 24, 2003 5:55 PM
Subject: Re: How To Repair Vinum Subdisk?

I'm using a mail client that will wrap the output that you request, thus
I've attached the output and reply.  I hope it will make it to your desktop
in a readable format.

Thanks for your help!

Drew
-------------- next part --------------
----- Original Message ----- 
From: "Greg 'groggy' Lehey" <grog at FreeBSD.org>
To: "Drew Tomlinson" <drew at mykitchentable.net>
Cc: "FreeBSD Questions" <freebsd-questions at freebsd.org>
Sent: Thursday, April 24, 2003 5:55 PM

On Thursday, 24 April 2003 at 17:12:28 -0700, Drew Tomlinson wrote:
>> I recently added a new drive to a concatenated plex in vinum on a
>> 4.8-RELEASE machine.  I edited the disklabel to type 'vinum' and then
>> defined the drive as a subdisk in the plex.  The vinum 'list' command showed
>> everything up and running so I used growfs to expand the file system.
>> Everything appeared to finish OK.
>>
>> However upon my first reboot of the system, the vinum volume won't mount and
>> the newly added subdisk shows a state of 'crashed'.  If I stop and restart
>> the subdisk, then it shows a state of 'up' but the volume still won't mount
>> as it is 'dirty' and needs to be fsck'ed.  But when I fsck the volume, the
>> system core dumps on a signal 6.
>>
>> This particular volume consists of 3 80GB IDE drives.  The first two drives
>> I've had running successfully in the machine for about a year.  Then when
>> the volume filled, I bought an additional drive, put it in a firewire
>> enclosure (I was out of space in the machine case), made the necessary mods
>> to the kernel, and then plugged the drive into the machine.  Because I
>> haven't added any additional data to the volume, there is nothing on the new
>> subdisk to lose but I do want to preserve the data on the first two
>> subdisks.  I also mention the firewire in case it makes a difference.
>>
>> Please let me know if there's any other information I can provide.  I
>> attempted to go to www.vinumvm.org to find the details required for
>> assistance but the site is unreachable as of 17:10 Pacific Daylight Time on
>> April 24.

> I see accesses round this time in the web log.  Anyway, I've checked,
> and it's accessible now.  Take a look at
> http://www.vinumvm.org/vinum/how-to-debug.html.

Well then it may have been some problem with one of the hops between us.  Who knows
but I was able to access it now.  

It is the 'ftp' volume I am having trouble with.  I checked /var/log/messages but 
there is nothing other than the dmesg output that gets written on boot.  I also don't
have a vinum dump as it is fsck that crashes the kernel when run on this volume.  Please
let me know if you need anything else.

Thanks for your help!

Drew

---------------------------------------------------
Here is the rest of the info requested on the page:

FreeBSD version:
blacklamb# uname -v
FreeBSD 4.8-RC #12: Mon Mar 10 16:37:49 PST 2003

vinum -> list
8 drives:
D ftp0                  State: up       Device /dev/ad0h        Avail: 76318/76319 MB (100%)
D ftp1                  State: up       Device /dev/ad1h        Avail: 76318/76319 MB (100%)
D disk1                 State: up       Device /dev/da0h        Avail: 8583/8583 MB (100%)
D disk2                 State: up       Device /dev/da1h        Avail: 8583/8583 MB (100%)
D ftp2                  State: referenced       Device  Avail: 0/0 MB

2 volumes:
V data                  State: up       Plexes:       1 Size:         16 GB
V ftp                   State: up       Plexes:       1 Size:        223 GB

2 plexes:
P data.p0             S State: up       Subdisks:     2 Size:         16 GB
P ftp.p0              C State: corrupt  Subdisks:     3 Size:        223 GB

5 subdisks:
S data.p0.s0            State: up       PO:        0  B Size:       8582 MB
S data.p0.s1            State: up       PO:     1152 kB Size:       8582 MB
S ftp.p0.s0             State: up       PO:        0  B Size:         74 GB
S ftp.p0.s1             State: up       PO:       74 GB Size:         74 GB
S ftp.p0.s2             State: crashed  PO:      149 GB Size:         74 GB


I went back to the point where I added the new subdisk in case there are any clues there.
/var/log/vinum_history:

13 Apr 2003 14:02:16.736182 *** vinum started ***
13 Apr 2003 14:02:18.556945 ? 
13 Apr 2003 14:02:21.195697 help 
13 Apr 2003 14:02:49.970468 printconfig 
13 Apr 2003 14:04:31.340977 dumpconfig 
13 Apr 2003 14:05:10.633254 list 
13 Apr 2003 14:46:34.011972 help 
13 Apr 2003 14:47:02.827259 create -f ftp2.conf 
13 Apr 2003 14:47:15.645795 create -f /home/tomlinson_dr/ftp2.conf 
drive ftp2 device /dev/da2s1h
subdisk length 0 plex ftp.p0 drive ftp2
13 Apr 2003 14:47:15.646981 *** Created devices ***
13 Apr 2003 14:48:31.530595 create -f /home/tomlinson_dr/ftp2.conf 
drive ftp2 device /dev/da2s1h
subdisk length 0 plex ftp.p0 drive ftp2
13 Apr 2003 14:48:31.531811 *** Created devices ***
13 Apr 2003 14:49:01.812607 help 
13 Apr 2003 14:49:41.521299 l 
13 Apr 2003 14:49:47.255179 rm ftp.p0.s3 
13 Apr 2003 14:50:16.032052 rm ftp2 
13 Apr 2003 14:50:17.958314 l 
13 Apr 2003 14:50:29.766584 rm ftp.p0.s3 
13 Apr 2003 14:51:26.221051 rm -f ftp.p0.s3 
13 Apr 2003 14:51:29.613349 l 
13 Apr 2003 14:51:36.819566 rm -f ftp.p0.s2 
13 Apr 2003 14:51:39.668687 l 
13 Apr 2003 14:51:49.383664 rm ftp2 
13 Apr 2003 14:51:52.273655 l 
13 Apr 2003 14:52:09.286556 create -f /home/tomlinson_dr/ftp2.conf 
drive ftp2 device /dev/da2s1h
subdisk length 0 plex ftp.p0 drive ftp2
13 Apr 2003 14:52:09.289986 *** Created devices ***
13 Apr 2003 14:52:38.357878 rm -f ftp.p0.s2 
13 Apr 2003 14:52:40.326415 l 
13 Apr 2003 14:52:45.811545 help 
13 Apr 2003 14:53:44.327569 ld 
13 Apr 2003 15:01:26.424027 stop ftp2 
13 Apr 2003 15:01:28.517719 l 
13 Apr 2003 15:01:34.253484 rm ftp2 
13 Apr 2003 15:01:35.509440 l 
13 Apr 2003 15:01:49.420092 create -f /home/tomlinson_dr/ftp2.conf 
drive ftp2 device /dev/da2s1h
subdisk length 0 plex ftp.p0 drive ftp2
13 Apr 2003 15:01:49.423630 *** Created devices ***
13 Apr 2003 15:02:01.860266 stop ftp2 
13 Apr 2003 15:02:06.926277 rm ftp2 
13 Apr 2003 15:02:08.182229 l 
13 Apr 2003 15:02:17.142072 rm ftp.p0.s2 
13 Apr 2003 15:02:25.099763 stop ftp.p0.s2 
13 Apr 2003 15:02:29.247876 l 
13 Apr 2003 15:03:14.703888 stop ftp.p0.s2 
13 Apr 2003 15:03:15.918266 l 
13 Apr 2003 15:03:32.879442 rm ftp.p0.s2 
13 Apr 2003 15:03:45.150822 stop ftp.p0.s2 
13 Apr 2003 15:03:47.539297 l 
13 Apr 2003 15:03:53.699533 rm -f ftp.p0.s2 
13 Apr 2003 15:03:55.040534 l 
13 Apr 2003 15:08:54.734693 ld 
13 Apr 2003 15:09:27.770243 create drive ftp2 /dev/da2s1h 
13 Apr 2003 15:10:07.910201 create 
# Vinum configuration of blacklamb.mykitchentable.net, saved at Sun Apr 13 15:10:07 2003
# Current configuration:
# drive ftp0 device /dev/ad0s1h
# drive ftp1 device /dev/ad1s1h
# drive disk1 device /dev/da0s1h
# drive disk2 device /dev/da1s1h
# volume data
# volume ftp
# plex name data.p0 org striped 2304s vol data 
# plex name ftp.p0 org concat vol ftp 
# sd name data.p0.s0 drive disk1 plex data.p0 len 17577216s driveoffset 265s plexoffset 0s
# sd name data.p0.s1 drive disk2 plex data.p0 len 17577216s driveoffset 265s plexoffset 2304s
# sd name ftp.p0.s0 drive ftp1 plex ftp.p0 len 156301223s driveoffset 265s plexoffset 0s
# sd name ftp.p0.s1 drive ftp0 plex ftp.p0 len 156301223s driveoffset 265s plexoffset 156301223s
13 Apr 2003 15:10:28.732111 *** Created devices ***
13 Apr 2003 15:10:38.992114 drive ftp2 /dev/da2s1h 
13 Apr 2003 15:10:42.846761 help 
13 Apr 2003 15:14:38.928251 l 
13 Apr 2003 15:14:41.862927 stop ftp 
13 Apr 2003 15:15:07.172436 stop ftp 
13 Apr 2003 15:15:08.847737 l 
13 Apr 2003 15:15:17.982067 stop ftp.p0 
13 Apr 2003 15:15:28.708137 stop ftp.p0.s1 
13 Apr 2003 15:15:32.101791 stop ftp.p0.s0 
13 Apr 2003 15:15:45.515348 create drive ftp2 /dev/da2s1h 
13 Apr 2003 15:16:03.966238 create /home/tomlinson_dr/ftp2.conf 
drive ftp2 device /dev/da2s1h
subdisk length 0 plex ftp.p0 drive ftp2
13 Apr 2003 15:16:03.969878 *** Created devices ***
13 Apr 2003 15:17:04.616106 rm -f ftp.p0.s2 
13 Apr 2003 15:17:06.729195 l 
13 Apr 2003 15:24:25.814563 l 
13 Apr 2003 15:25:49.271943 q 
13 Apr 2003 15:25:51.743294 quit 
14 Apr 2003 18:47:35.818962 *** vinum started ***
14 Apr 2003 18:47:37.495689 l 
14 Apr 2003 18:47:42.064572 stop ftp 
14 Apr 2003 18:47:54.503763 l 
14 Apr 2003 18:47:59.784071 stop ftp 
14 Apr 2003 18:48:02.298312 l 
14 Apr 2003 18:48:16.629891 stop ftp.p0 
14 Apr 2003 18:48:22.452597 stop ftp.p0.s0 
14 Apr 2003 18:48:25.343154 stop ftp.p0.s1 
14 Apr 2003 18:48:28.817185 start ftp 
14 Apr 2003 18:48:30.324890 l 
14 Apr 2003 18:48:34.264448 stop ftp.p0.s1 
14 Apr 2003 18:48:40.215376 stop ftp.p0.s0 
14 Apr 2003 18:48:56.051880 ld 
14 Apr 2003 18:49:11.343794 rm ftp2 
14 Apr 2003 18:49:13.061645 ld 
14 Apr 2003 18:49:24.536511 rm -f ftp2 
14 Apr 2003 18:49:26.546469 ld 
14 Apr 2003 18:49:31.532288 help 
14 Apr 2003 18:51:08.638218 subdisk length 
14 Apr 2003 18:51:37.290385 create ftp2.conf 
drive ftp2 device /dev/da2s1h
subdisk length 0 plex ftp.p0 drive ftp2
14 Apr 2003 18:51:37.291537 *** Created devices ***
14 Apr 2003 18:52:07.565041 start ftp.p0.s2 
14 Apr 2003 18:52:13.491441 ld 
14 Apr 2003 18:53:45.610927 rm ftp2 
14 Apr 2003 18:53:47.873548 ld 
14 Apr 2003 18:53:53.655293 l 
14 Apr 2003 18:54:01.780077 rm ftp.p0.s2 
14 Apr 2003 18:54:07.563818 rm -f ftp.p0.s2 
14 Apr 2003 18:54:15.232488 l 
14 Apr 2003 18:54:20.135261 ld 
14 Apr 2003 18:56:00.606576 create ftp2.conf 
drive ftp2 device /dev/da2s1h
subdisk length 0 plex ftp.p0 drive ftp2
14 Apr 2003 18:56:00.608697 *** Created devices ***
14 Apr 2003 18:56:08.569749 ld 
14 Apr 2003 18:56:39.739762 start ftp 
14 Apr 2003 18:56:46.150344 stop ftp 
14 Apr 2003 18:56:48.622794 start ftp 
14 Apr 2003 18:56:49.962778 l 
14 Apr 2003 18:57:13.384074 stop ftp.p0 
14 Apr 2003 18:57:23.651135 l 
14 Apr 2003 18:57:29.305568 stop ftp 
14 Apr 2003 18:57:35.381745 stop ftp.p0 
14 Apr 2003 18:57:39.988570 start ftp 
14 Apr 2003 18:57:42.084195 stop ftp.p0 
14 Apr 2003 18:57:47.697435 stop ftp.p0.s2 
14 Apr 2003 18:57:53.607920 stop -f ftp.p0.s2 
14 Apr 2003 18:57:58.383697 stop -f ftp.p0 
14 Apr 2003 18:58:10.785534 stop -f ftp.p0.s1 
14 Apr 2003 18:58:13.676029 stop -f ftp.p0.s0 
14 Apr 2003 18:58:15.351170 l 
14 Apr 2003 19:08:56.165532 *** vinum started ***
14 Apr 2003 19:08:57.085427 l 
14 Apr 2003 19:17:22.687606 start ftp.p0.s2 
14 Apr 2003 19:17:29.699294 start ftp2 
14 Apr 2003 19:17:33.008698 l 
14 Apr 2003 19:17:55.799210 ld 
14 Apr 2003 19:18:40.460057 l 
14 Apr 2003 19:20:16.393219 help 
14 Apr 2003 19:20:32.274600 quit 
14 Apr 2003 19:20:55.395914 *** vinum started ***
14 Apr 2003 19:20:55.396521 stop 
14 Apr 2003 19:21:46.803497 *** vinum started ***
14 Apr 2003 19:21:48.310125 help 
14 Apr 2003 19:22:05.988950 l -r 
14 Apr 2003 19:22:20.818148 l -r ftp 
14 Apr 2003 19:22:33.578887 stop -f ftp.p0.s2 
14 Apr 2003 19:22:35.985645 l -r ftp 
14 Apr 2003 19:24:20.761878 rm -f ftp.p0.s2 
14 Apr 2003 19:24:23.066868 l -r ftp 
14 Apr 2003 19:24:28.220195 ld 
14 Apr 2003 19:24:42.629661 create ftp2.conf 
drive ftp2 device /dev/da2s1h
subdisk length 0 plex ftp.p0 drive ftp2
14 Apr 2003 19:24:42.673623 *** Created devices ***
14 Apr 2003 19:29:36.360320 ld 
14 Apr 2003 19:29:49.265440 l 
14 Apr 2003 19:29:59.090641 start ftp.p0.s2 
14 Apr 2003 19:30:01.308141 l 
14 Apr 2003 19:32:07.103096 q 
14 Apr 2003 19:32:09.788166 quit 
18 Apr 2003 01:22:05.731758 *** vinum started ***
18 Apr 2003 01:22:05.736842 start 
18 Apr 2003 01:22:06.353281 *** Created devices ***
18 Apr 2003 02:31:41.714688 *** vinum started ***
18 Apr 2003 02:31:41.736407 start 
18 Apr 2003 02:31:42.361088 *** Created devices ***
18 Apr 2003 09:33:34.961148 *** vinum started ***
18 Apr 2003 09:33:36.676718 l 
18 Apr 2003 09:34:15.838408 stop ftp.p0.s2 
18 Apr 2003 09:34:20.739391 stop -f ftp.p0.s2 
18 Apr 2003 09:34:26.016011 l 
18 Apr 2003 09:34:31.587329 quit 
18 Apr 2003 09:37:09.979590 *** vinum started ***
18 Apr 2003 09:37:10.941170 l 
18 Apr 2003 02:50:33.094904 *** vinum started ***
18 Apr 2003 02:50:33.140919 start 
18 Apr 2003 02:50:33.791180 *** Created devices ***


More information about the freebsd-questions mailing list