Re: Issues mirroring drives with Vinum in FreeBSD 4.8-RELEASE

2003-10-05 Thread aarong
On Saturday, October 4, 2003, at 10:18  PM, Greg 'groggy' Lehey wrote:

On Saturday,  4 October 2003 at 10:36:15 -0700, aarong wrote:
On Saturday, October 4, 2003, at 01:30  AM, Greg 'groggy' Lehey wrote:
fstab: /etc/fstab:9: Inappropriate file type or format
It's probably worth fixing this.
I hosed that particular installation and reinstalled; it complains no 
more.

# fsck -n /dev/vinum/var
...
** Phase 5 - Check Cyl groups
FREE BLK COUNT(S) WRONG IN SUPERBLK
SALVAGE? no
This can be normal.

SUMMARY INFORMATION BAD
SALVAGE? no
So can this.
Then neither of the above would cause a drop into single user mode, I 
gather?

ALLOCATED FRAG 1277319 MARKED FREE
BLK(S) MISSING IN BIT MAPS
SALVAGE? no
ALLOCATED FRAG 1368488 MARKED FREE
...same message until 1368493...
But these suggest something worse.  The problem here is that it found
the superblock, so it's likely that your geometry is correct: you
wouldn't have got this far if you hadn't.
fsck'ing the rest of the volumes produces more of the same; one 
notable
difference is root has a reference count error in addition to missing
bit maps, bad summary information, and incorrect number of block 
counts
in the superblock. The usr volume seems to be fine according to fsck,
however. vinum list correctly notes both drives are up, four volumes
have two plexes, the 8 plexes are up and sized, and the subdisks are
up. fsck -n /dev/vinum/var before mirroring produced no complaints,
otherwise I'd conclude that I just mirrored a corrupt plex but that
doesn't seem to be the case.
It looks something like that.  In single user mode, do an fsck on each
of the component plexes.  My guess is that (at least) one plex of each
volume will be bad.
I was not aware you could fsck individual plexes; I'll definitely try 
that on this fresh installation. Thank you for your time and insight, 
Greg; I'll be sure to send an update when I figure out what went wrong 
the first time.

-aarong

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original 
recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Issues mirroring drives with Vinum in FreeBSD 4.8-RELEASE

2003-10-04 Thread Greg 'groggy' Lehey
On Saturday,  4 October 2003 at 10:36:15 -0700, aarong wrote:
> On Saturday, October 4, 2003, at 01:30  AM, Greg 'groggy' Lehey wrote:
>> I'd like to see the complaints.  This is why I ask for the information
>> in the man page or at http://www.vinumvm.org/vinum/how-to-debug.html.
>
> This is when booting regularly:
>
> ...dmesg...
> vinum: reading configuration from /dev/da0s1h
> vinum: reading configuration from /dev/da1s1h
> vinum: using volume root for root device
> Mounting root from ufs:/dev/vinum/root
> swapon: adding /dev/vinum/swap as swap device
> fstab: /etc/fstab:9: Inappropriate file type or format
> Automatic boot in progress...
> /dev/vinum/root: FILESYSTEM CLEAN; SKIPPING CHECKS
> /dev/vinum/root: clean, 45939 free (633 frags, 5595 blocks, 1.0%
> fragmentation)
> fstab: /etc/fstab:9: Inappropriate file type or format
> fstab: /etc/fstab:9: Inappropriate file type or format

It's probably worth fixing this.

> /dev/vinum/var: UNALLOCATED I=44035 OWNER=root MODE=0
> /dev/vinum/var: SIZE=0 MTIME=Oct  3 22:54 2003
> /dev/vinum/var: NAME=/run/dmesg.boot
>
> /dev/vinum/var: UNEXPECTED SOFT UPDATE INCONSISTENCY; RUN fsck MANUALLY.
>
> Then I'm dropped into single user mode. Line 9 of /etc/fstab is proc, I
> have no idea why its complaining since its valid, and I never changed
> it.
>
> # fsck -n /dev/vinum/var
> ...
> ** Phase 5 - Check Cyl groups
> FREE BLK COUNT(S) WRONG IN SUPERBLK
> SALVAGE? no

This can be normal.

> SUMMARY INFORMATION BAD
> SALVAGE? no

So can this.

> ALLOCATED FRAG 1277319 MARKED FREE
> BLK(S) MISSING IN BIT MAPS
> SALVAGE? no
>
> ALLOCATED FRAG 1368488 MARKED FREE
> ...same message until 1368493...

But these suggest something worse.  The problem here is that it found
the superblock, so it's likely that your geometry is correct: you
wouldn't have got this far if you hadn't.

> fsck'ing the rest of the volumes produces more of the same; one notable
> difference is root has a reference count error in addition to missing
> bit maps, bad summary information, and incorrect number of block counts
> in the superblock. The usr volume seems to be fine according to fsck,
> however. vinum list correctly notes both drives are up, four volumes
> have two plexes, the 8 plexes are up and sized, and the subdisks are
> up. fsck -n /dev/vinum/var before mirroring produced no complaints,
> otherwise I'd conclude that I just mirrored a corrupt plex but that
> doesn't seem to be the case.

It looks something like that.  In single user mode, do an fsck on each
of the component plexes.  My guess is that (at least) one plex of each
volume will be bad.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers.


pgp0.pgp
Description: PGP signature


Re: Issues mirroring drives with Vinum in FreeBSD 4.8-RELEASE

2003-10-04 Thread Dan Nelson
In the last episode (Oct 04), aarong said:
> On Saturday, October 4, 2003, at 01:30  AM, Greg 'groggy' Lehey wrote:
> >[Format recovered--see http://www.lemis.com/email/email-format.html]
> >
> >Computer output unwrapped.
> 
> Having seen that message in many of your replies on the lists, I went
> out of my way to make sure Mail.app (the OS X mailer) would send
> messages text/plain and nothing else. Upon further examination of my
> headers it seems it's adding some 'format=flowed' business to the
> Content-Type. I can't find a work around; perhaps a look at Entourage
> is in order.

This is probably a bug in Mail.app.  It should allow the user to
specify which lines to wrap.  The format=flowed spec allows for mixed
wrapped and unwrapped text, but apparently few wsywig editors add the
user-interface for it.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Issues mirroring drives with Vinum in FreeBSD 4.8-RELEASE

2003-10-04 Thread aarong
On Saturday, October 4, 2003, at 01:30  AM, Greg 'groggy' Lehey wrote:

[Format recovered--see http://www.lemis.com/email/email-format.html]

Computer output unwrapped.
Having seen that message in many of your replies on the lists, I went 
out of my way to make sure Mail.app (the OS X mailer) would send 
messages text/plain and nothing else. Upon further examination of my 
headers it seems it's adding some 'format=flowed' business to the 
Content-Type. I can't find a work around; perhaps a look at Entourage 
is in order.

I'd like to see the complaints.  This is why I ask for the information
in the man page or at http://www.vinumvm.org/vinum/how-to-debug.html.
I completely overlooked that; my apologies, Greg.

This is when booting regularly:

...dmesg...
vinum: reading configuration from /dev/da0s1h
vinum: reading configuration from /dev/da1s1h
vinum: using volume root for root device
Mounting root from ufs:/dev/vinum/root
swapon: adding /dev/vinum/swap as swap device
fstab: /etc/fstab:9: Inappropriate file type or format
Automatic boot in progress...
/dev/vinum/root: FILESYSTEM CLEAN; SKIPPING CHECKS
/dev/vinum/root: clean, 45939 free (633 frags, 5595 blocks, 1.0% 
fragmentation)
fstab: /etc/fstab:9: Inappropriate file type or format
fstab: /etc/fstab:9: Inappropriate file type or format
/dev/vinum/var: UNALLOCATED I=44035 OWNER=root MODE=0
/dev/vinum/var: SIZE=0 MTIME=Oct  3 22:54 2003
/dev/vinum/var: NAME=/run/dmesg.boot

/dev/vinum/var: UNEXPECTED SOFT UPDATE INCONSISTENCY; RUN fsck MANUALLY.

Then I'm dropped into single user mode. Line 9 of /etc/fstab is proc, I 
have no idea why its complaining since its valid, and I never changed 
it.

# fsck -n /dev/vinum/var
** /dev/vinum/var (NO WRITE)
** Last Mounted on /var
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
FREE BLK COUNT(S) WRONG IN SUPERBLK
SALVAGE? no
SUMMARY INFORMATION BAD
SALVAGE? no
ALLOCATED FRAG 1277319 MARKED FREE
BLK(S) MISSING IN BIT MAPS
SALVAGE? no
ALLOCATED FRAG 1368488 MARKED FREE
...same message until 1368493...
74 files, 146 used, 2015829 free (141 frags, 251961 blocks, 0.0% 
fragmentation)

fsck'ing the rest of the volumes produces more of the same; one notable 
difference is root has a reference count error in addition to missing 
bit maps, bad summary information, and incorrect number of block counts 
in the superblock. The usr volume seems to be fine according to fsck, 
however. vinum list correctly notes both drives are up, four volumes 
have two plexes, the 8 plexes are up and sized, and the subdisks are 
up. fsck -n /dev/vinum/var before mirroring produced no complaints, 
otherwise I'd conclude that I just mirrored a corrupt plex but that 
doesn't seem to be the case.

The last lines in /var/log/vinum_messages are *** vinum started *** and 
list shortly there after. /var/log/messages reads exactly like dmesg, 
only with time stamps. Nothing useful pertaining to Vinum in either 
file.

Regards,
-aarong
Send the information I ask for and I might find it.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original 
recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers.
NOTE: Due to the currently active Microsoft-based worms, I am limiting
all incoming mail to 131,072 bytes.  This is enough for normal mail,
but not for large attachments.  Please send these as URLs.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Issues mirroring drives with Vinum in FreeBSD 4.8-RELEASE

2003-10-04 Thread Greg 'groggy' Lehey
[Format recovered--see http://www.lemis.com/email/email-format.html]

Computer output unwrapped.

On Saturday,  4 October 2003 at  0:17:44 -0700, aarong wrote:
> I've successfully installed and converted a FreeBSD 4.8 install into a
> bootable Vinum volume many times; however mirroring that volume onto a
> second identical drive is proving difficult. Per Greg Lehey's
> instructions in chapter 12 of "The Complete FreeBSD 4th Edition", I've
> setup a bootable Vinum volume and then attempted to mirror it by
> creating a second Vinum config file, detailing the second drive and how
> the new volumes should be setup.
>
> This works fine, and Vinum will successfully complete mirroring the all
> the volumes, however fsck will fail everytime. Hence when rebooting,
> everything goes to hell and a hand basket. I can fsck the volumes
> before mirroring without a problem, it's only after Vinum completes
> mirroring the volumes that fsck complains.

I'd like to see the complaints.  This is why I ask for the information
in the man page or at http://www.vinumvm.org/vinum/how-to-debug.html.

> disklabel da0s1:
> ...
> disklabel da1s1:

These look OK.

> /vinum.config:

I specifically ask not to send this.  I can't see anything wrong in it.

> vinum create /vinum.config
> vinum start root.p1
> vinum start var.p1
> vinum start swap.p1
> vinum start usr.p1

That looks OK.

> Obviously I'm missing a vital step here but I'm completely at a loss
> as to what it may be.

Send the information I ask for and I might find it.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers.
NOTE: Due to the currently active Microsoft-based worms, I am limiting
all incoming mail to 131,072 bytes.  This is enough for normal mail,
but not for large attachments.  Please send these as URLs.


pgp0.pgp
Description: PGP signature