From owner-freebsd-questions Sun Jun 3 7:44:41 2001 Delivered-To: freebsd-questions@freebsd.org Received: from core.usrlib.org (CC2-861.charter-stl.com [24.217.115.99]) by hub.freebsd.org (Postfix) with ESMTP id D3C1A37B407 for ; Sun, 3 Jun 2001 07:44:35 -0700 (PDT) (envelope-from ajh3@core.usrlib.org) Received: by core.usrlib.org (Postfix, from userid 1001) id BA7F6A859; Sun, 3 Jun 2001 09:42:54 -0500 (CDT) Date: Sun, 3 Jun 2001 09:42:54 -0500 From: Andrew Hesford To: FreeBSD-questions Subject: Swap partition format Message-ID: <20010603094254.A64190@core.usrlib.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Loop: Andrew Hesford Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG When I installed FreeBSD, I created a 100M swap partition using sysinstall. Just last night, I decided to add another 512M swap partition. Not knowing what format the other swap partition used, I set out a partition in the disklabel, added the partition name to /etc/fstab, and ran `swapon -a`. Now that both swap partitions are up, here is the output of pstat(8): Device 1K-blocks [...] Type /dev/ad0s2b 102272 Interleaved /dev/rad0s1b 524160 Interleaved The fact that it uses /dev/rad0s1b, when I specified ad0s1b in /etc/fstab, tells me it is using the raw device because it can't recognize any format on the partition. On the other hand, ad0s2b, which is specified in /etc/fstab, is not being accessed through a raw device. This behavior suggests that sysinstall puts some sort of format on a swap partition during installation. I was wondering what this format is, if there is a way to make the format on a partition, and if that method has any advantages over using a raw device. In addition, what does "Interleaved" mean? What are other values that can exist in the "Type" field? Perhaps it simple means that swap activity is divided between the two devices, but I would swear ad0s2b had the same type before I added another device. Thanks, -- Andrew Hesford ajh3@usrlib.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message