From owner-freebsd-questions Wed Jan 17 12: 6:57 2001 Delivered-To: freebsd-questions@freebsd.org Received: from apocalypse.cdsnet.net (apocalypse.cdsnet.net [63.163.68.5]) by hub.freebsd.org (Postfix) with ESMTP id 627C437B69C for ; Wed, 17 Jan 2001 12:06:23 -0800 (PST) Received: (from mrcpu@localhost) by apocalypse.cdsnet.net (8.11.1/8.11.1) id f0HKBG416448 for questions@FreeBSD.ORG; Wed, 17 Jan 2001 12:11:16 -0800 (PST) (envelope-from mrcpu) Date: Wed, 17 Jan 2001 12:11:13 -0800 From: Jaye Mathisen To: questions@FreeBSD.ORG Subject: Re: VN issues, 4.2-stable Message-ID: <20010117121113.A16392@apocalypse.cdsnet.net> References: <20010117115728.B14550@apocalypse.cdsnet.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010117115728.B14550@apocalypse.cdsnet.net>; from mrcpu@internetcds.com on Wed, Jan 17, 2001 at 11:57:28AM -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Found my own answer, from vm_swap.c #define NSWAPDEV 4 Crap, crap, crap. Oh well, another kernel, another reboot. On Wed, Jan 17, 2001 at 11:57:28AM -0800, Jaye Mathisen wrote: > > Color me stupefied, but vnconfig seems to use bizarre umasks to create > files. > > (Please cc replies to me, although I read -questions, I'm about > 10000 messages behind. :)) > > > newsfeed-inn2# umask > 22 > newsfeed-inn2# vnconfig -s labels -S 1g -T -Z -v -c vn0c swap1 > vnconfig: /dev/vn0c: Device not configured > newsfeed-inn2# ls -l > total 1049096 > --wx--xr-- 1 root wheel 1073741824 Jan 17 11:44 swap1 > > > Ignoring the bogus vn0c, which should've been vn0. > > > > Then: > > after a little disklabeling: > > newsfeed-inn2# disklabel -r vn0 > # /dev/vn0c: > type: unknown > disk: amnesiac > label: > flags: > bytes/sector: 512 > sectors/track: 32 > tracks/cylinder: 64 > sectors/cylinder: 2048 > cylinders: 1024 > sectors/unit: 2097152 > rpm: 3600 > interleave: 1 > trackskew: 0 > cylinderskew: 0 > headswitch: 0 # milliseconds > track-to-track seek: 0 # milliseconds > drivedata: 0 > > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > b: 2096128 1024 swap # (Cyl. 0*- 1023*) > c: 2097152 0 unused 0 0 # (Cyl. 0 - 1023) > newsfeed-inn2# swapon /dev/vn0b > swapon: /dev/vn0b: Invalid argument > newsfeed-inn2# pstat -s > Device 1K-blocks Used Avail Capacity Type > /dev/rad0s1b 262016 512 261504 0% Interleaved > /dev/rad1s1b 262016 504 261512 0% Interleaved > /dev/rad2s1b 262016 512 261504 0% Interleaved > /dev/rad3s1b 262016 440 261576 0% Interleaved > Total 1048064 1968 1046096 0% > > > Basically, I have a need for about 2GB of temporary swap for a few hours, but ain't nothing I'm > doing going to let me add it. I do not have any other plain partitions that > I can use at this time, just this vinum stripe. > > I tried just swapon on the striped volume, get the same error. > > Am I hitting some limitation in the number of swap devices or something? Because > "invalid argument" isn't much of a message. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message