Date: Wed, 22 Oct 2003 15:19:46 +0930 From: Greg 'groggy' Lehey <grog@FreeBSD.org> To: rtjohan@syspres.com Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Vinum Offset for Swap: 265 or 281? Message-ID: <20031022054946.GJ33152@wantadilla.lemis.com> In-Reply-To: <3F95DA55.7030403@syspres.com> References: <3F92406E.9020205@syspres.com> <20031021023944.GF42029@wantadilla.lemis.com> <3F95DA55.7030403@syspres.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--fLj60tP2PZ34xyqD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tuesday, 21 October 2003 at 18:16:05 -0700, rtjohan@syspres.com wrote: > Greg 'groggy' Lehey wrote: >> On Sunday, 19 October 2003 at 0:42:38 -0700, rtjohan@syspres.com wrote: >>> Sanity check whether the mirrored vinum root drive is setup correctly. >>> Going to setup two more machines the same way, so wanted to make sure the >>> reference machine was setup correctly. >>> >>> Was surprised to see that the vinum dumpconfig shows the offset for the >>> swap partition to be 265. Remember vaguely that it was supposed to be 281. >>> Do I have a misconfigured machine? The bsdlabel reports the offset to be >>> 281. The vinum.conf used driveoffset of 265s for swap - would think it >>> should have been 281s. >>> >>> The machine works, but have had a couple of unexplained reboots. The >>> mirrored drives are ad4s1 and ad8s1. >> >> Vinum uses the first 265 sectors on a drive for configuration >> information. That has never changed. It leaves the first 7 sectors >> free for other stuff and puts the Vinum label in sector 8. >> Unfortunately, this isn't compatible with bootstraps, which use >> sectors 1 to 16. The result is that if you put a Vinum drive exactly >> at the beginning of a bootable disk, you will overwrite the bootstrap. >> Thus the recommendation to put the drive at offset 16, so that nothing >> will get clobbered. This means that the first subdisk in the drive >> will be at offset 281 from the beginning of the disk. The offset of >> the first subdisk in the drive remains the same at 265. That's what >> you have on your system: >> >> >>> b: 4194023 281 swap >>> h: 398283401 16 vinum >>> > > So, my understanding of the bsdlabel process seemed correct: > 1) modify swap partition size to be 281 less than what sysinstall > created the partition as > 2) have the swap offset at 281 instead of 0 > 3) add vinum partition set to the size of "c" minus 16 > 4) have vinum partition offset at 16 Yes, that's about it, making a lot of assumptions which you don't mention here. For the full story, see http://www.vinumvm.org/cfbsd/vinum.pdf. > I might have misunderstood the vinum subdisks settings in the vinum > configuration file though. I thought the process was: > 1) Each vinum subdisks uses the size of the partition it will be > taking over from No, you're confusing it with drives. You shouldn't have more than one drive per spindle. > 2) The subdisk offset is = (partition offset - 16) No. > Should the subdisk offset be equal to the partition offset? It depends on where you're measuring from. Physically, you're just trying to get to the same sectors from different mappings. Take a look at the link above and tell me if anything is unclear. > Again, this is in respect to FreeBSD 5.1 RELEASE with mirrored vinum > boot disks. This is not release dependent. > Are there known major bugs related to the 5.1 RELEASE as well? Not to me. 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. --fLj60tP2PZ34xyqD Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE/lhp6IubykFB6QiMRAs80AJ4od4Mink0NOSblN+wnkkNNCp2JKACgslPm eHbY4Vmq0/KErPjoGTkFDsw= =ktMo -----END PGP SIGNATURE----- --fLj60tP2PZ34xyqD--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031022054946.GJ33152>