From owner-freebsd-fs Tue Dec 22 12:27:53 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA11921 for freebsd-fs-outgoing; Tue, 22 Dec 1998 12:27:53 -0800 (PST) (envelope-from owner-freebsd-fs@FreeBSD.ORG) Received: from hotmail.com (f112.hotmail.com [207.82.251.41]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id MAA11741 for ; Tue, 22 Dec 1998 12:27:20 -0800 (PST) (envelope-from kuman123@hotmail.com) Received: (qmail 15842 invoked by uid 0); 22 Dec 1998 20:27:09 -0000 Message-ID: <19981222202709.15841.qmail@hotmail.com> Received: from 207.135.94.115 by www.hotmail.com with HTTP; Tue, 22 Dec 1998 12:27:09 PST X-Originating-IP: [207.135.94.115] From: "ku man" To: freebsd-questions@FreeBSD.ORG, freebsd-fs@FreeBSD.ORG Subject: CCD question (FreeBSD 3.0) - can't rewrite disk label Date: Tue, 22 Dec 1998 12:27:09 PST Mime-Version: 1.0 Content-Type: text/plain Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I am experimenting with CCD on FreeBSD 3.0 and encountered the following error messages while trying to run "newfs": newfs: ioctl (WDINFO): No such process newfs: /dev/rccd0c: can't rewrite disk label My /etc/ccd.conf is: ccd0 0 0 /dev/wd0s3c /dev/wd2s1c Once I created the CCD using ccdconfig -CV, I tried to create a new file system. Even though I have seen the above error messages, I am able to mount and write to the CCD. Are the above messages harmful? I am just trying to concatenate two partitions of different size. Thanks for any hints. ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Tue Dec 22 20:29:21 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA21708 for freebsd-fs-outgoing; Tue, 22 Dec 1998 20:29:21 -0800 (PST) (envelope-from owner-freebsd-fs@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA21699; Tue, 22 Dec 1998 20:29:17 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id OAA06038; Wed, 23 Dec 1998 14:58:54 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id OAA12382; Wed, 23 Dec 1998 14:58:54 +1030 (CST) Message-ID: <19981223145852.A12346@freebie.lemis.com> Date: Wed, 23 Dec 1998 14:58:52 +1030 From: Greg Lehey To: ku man , freebsd-questions@FreeBSD.ORG, freebsd-fs@FreeBSD.ORG Subject: Re: CCD question (FreeBSD 3.0) - can't rewrite disk label References: <19981222202709.15841.qmail@hotmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <19981222202709.15841.qmail@hotmail.com>; from ku man on Tue, Dec 22, 1998 at 12:27:09PM -0800 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tuesday, 22 December 1998 at 12:27:09 -0800, ku man wrote: > > I am experimenting with CCD on FreeBSD 3.0 and encountered the following > error messages while trying to run "newfs": > > newfs: ioctl (WDINFO): No such process That's a strange message. > newfs: /dev/rccd0c: can't rewrite disk label > > My /etc/ccd.conf is: > ccd0 0 0 /dev/wd0s3c /dev/wd2s1c > > Once I created the CCD using ccdconfig -CV, What's the V flag? I don't know that. > I tried to create a new file system. Even though I have seen the > above error messages, I am able to mount and write to the CCD. > > Are the above messages harmful? I am just trying to concatenate two > partitions of different size. Thanks for any hints. This is a puzzling one. The ioctl in question, DIOCWDINFO, writes the disk label. This is not completely necessary, but probably a good idea. What does disklabel -r ccd0 tell you? Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Tue Dec 22 20:45:42 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA23694 for freebsd-fs-outgoing; Tue, 22 Dec 1998 20:45:42 -0800 (PST) (envelope-from owner-freebsd-fs@FreeBSD.ORG) Received: from vader.cs.berkeley.edu (vader.CS.Berkeley.EDU [128.32.38.234]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA23686; Tue, 22 Dec 1998 20:45:40 -0800 (PST) (envelope-from asami@vader.cs.berkeley.edu) Received: from silvia.hip.berkeley.edu (sji-ca36-72.ix.netcom.com [207.92.172.72]) by vader.cs.berkeley.edu (8.8.7/8.7.3) with ESMTP id UAA13889; Tue, 22 Dec 1998 20:45:13 -0800 (PST) Received: (from asami@localhost) by silvia.hip.berkeley.edu (8.8.8/8.6.9) id UAA11469; Tue, 22 Dec 1998 20:44:48 -0800 (PST) Date: Tue, 22 Dec 1998 20:44:48 -0800 (PST) Message-Id: <199812230444.UAA11469@silvia.hip.berkeley.edu> To: kuman123@hotmail.com CC: freebsd-questions@FreeBSD.ORG, freebsd-fs@FreeBSD.ORG In-reply-to: <19981222202709.15841.qmail@hotmail.com> (kuman123@hotmail.com) Subject: Re: CCD question (FreeBSD 3.0) - can't rewrite disk label From: asami@FreeBSD.ORG (Satoshi Asami) Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org * Once I created the CCD using ccdconfig -CV, I tried to create a new file * system. Even though I have seen the above error messages, I am able to * mount and write to the CCD. We need the entire log, with your exact commands and all the outputs (ok, you can delete the middle of the "superblock backups" list). I've never seen that one. Satoshi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Wed Dec 23 12:23:37 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA03283 for freebsd-fs-outgoing; Wed, 23 Dec 1998 12:23:37 -0800 (PST) (envelope-from owner-freebsd-fs@FreeBSD.ORG) Received: from hotmail.com (f97.hotmail.com [207.82.250.216]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id MAA03194 for ; Wed, 23 Dec 1998 12:23:32 -0800 (PST) (envelope-from kuman123@hotmail.com) Received: (qmail 962 invoked by uid 0); 23 Dec 1998 20:23:27 -0000 Message-ID: <19981223202327.961.qmail@hotmail.com> Received: from 207.135.94.115 by www.hotmail.com with HTTP; Wed, 23 Dec 1998 12:23:26 PST X-Originating-IP: [207.135.94.115] From: "ku man" To: asami@FreeBSD.ORG Cc: freebsd-questions@FreeBSD.ORG, freebsd-fs@FreeBSD.ORG Subject: Re: CCD question (FreeBSD 3.0) - can't rewrite disk label Date: Wed, 23 Dec 1998 12:23:26 PST Mime-Version: 1.0 Content-Type: text/plain Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Here the log: Script started on Wed Dec 23 12:10:13 1998 host122# disklabel /dev/wd0s3c # /dev/wd0s3c: type: ESDI disk: wd0s3 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 113 sectors/unit: 1815345 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] c: 1815345 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 112) host122# host122# disklabel /dev/wd2s1c # /dev/wd2s1c: type: ESDI disk: wd2s1 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 15 sectors/cylinder: 945 cylinders: 3619 sectors/unit: 3420837 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] c: 3420837 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 3619*) host122# host122# disklabel /dev/ccd0c disklabel: ioctl DIOCGDINFO: Device not configured host122# host122# cat /etc/ccd.conf ccd0 0 0 /dev/wd0s3c /dev/wd2s1c host122# host122# ccdconfig -Cv ccd0: 2 components (wd0s3c, wd2s1c), 5236150 blocks concatenated host122# host122# disklabel /dev/ccd0c # /dev/ccd0c: type: CCD disk: ccd label: default label flags: bytes/sector: 512 sectors/track: 2048 tracks/cylinder: 1 sectors/cylinder: 2048 cylinders: 2556 sectors/unit: 5236150 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0 3 partitions: # size offset fstype [fsize bsize bps/cpg] c: 5236150 0 4.2BSD 0 0 0 # (Cyl. 0 - 2556*) host122# host122# disklabel -r /dev/ccd0c disklabel: bad pack magic number (label is damaged, or pack is unlabeled) host122# host122# newfs /dev/rccd0c Warning: 2634 sector(s) in last cylinder unallocated /dev/rccd0c: 5236150 sectors in 1279 cylinders of 1 tracks, 4096 sectors 2556.7MB in 80 cyl groups (16 c/g, 32.00MB/g, 7936 i/g) super-block backups (for fsck -b #) at: 32, 65568, 131104, 196640, 262176, 327712, 393248, 458784, 524320, 589856, 655392, 720928, 786464, 852000, 917536, 983072, 1048608, 1114144, 1179680, 1245216, 1310752, 1376288, 1441824, 1507360, 1572896, 1638432, 1703968, 1769504, 1835040, 1900576, 1966112, 2031648, 2097184, 2162720, 2228256, 2293792, 2359328, 2424864, 2490400, 2555936, 2621472, 2687008, 2752544, 2818080, 2883616, 2949152, 3014688, 3080224, 3145760, 3211296, 3276832, 3342368, 3407904, 3473440, 3538976, 3604512, 3670048, 3735584, 3801120, 3866656, 3932192, 3997728, 4063264, 4128800, 4194336, 4259872, 4325408, 4390944, 4456480, 4522016, 4587552, 4653088, 4718624, 4784160, 4849696, 4915232, 4980768, 5046304, 5111840, 5177376, newfs: ioctl (WDINFO): No such process newfs: /dev/rccd0c: can't rewrite disk label host122# host122# exit host122# exit Script done on Wed Dec 23 12:11:59 1998 >From asami@vader.cs.berkeley.edu Tue Dec 22 20:46:53 1998 >Received: from silvia.hip.berkeley.edu (sji-ca36-72.ix.netcom.com [207.92.172.72]) by vader.cs.berkeley.edu (8.8.7/8.7.3) with ESMTP id UAA13889; Tue, 22 Dec 1998 20:45:13 -0800 (PST) >Received: (from asami@localhost) by silvia.hip.berkeley.edu (8.8.8/8.6.9) id UAA11469; Tue, 22 Dec 1998 20:44:48 -0800 (PST) >Date: Tue, 22 Dec 1998 20:44:48 -0800 (PST) >Message-Id: <199812230444.UAA11469@silvia.hip.berkeley.edu> >To: kuman123@hotmail.com >CC: freebsd-questions@FreeBSD.ORG, freebsd-fs@FreeBSD.ORG >In-reply-to: <19981222202709.15841.qmail@hotmail.com> (kuman123@hotmail.com) >Subject: Re: CCD question (FreeBSD 3.0) - can't rewrite disk label >From: asami@FreeBSD.ORG (Satoshi Asami) > > * Once I created the CCD using ccdconfig -CV, I tried to create a new file > * system. Even though I have seen the above error messages, I am able to > * mount and write to the CCD. > >We need the entire log, with your exact commands and all the outputs >(ok, you can delete the middle of the "superblock backups" list). >I've never seen that one. > >Satoshi > ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Thu Dec 24 21:02:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA02548 for freebsd-fs-outgoing; Thu, 24 Dec 1998 21:02:58 -0800 (PST) (envelope-from owner-freebsd-fs@FreeBSD.ORG) Received: from jcarter.cais.com (jcarter.cais.com [205.252.8.97]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA02538; Thu, 24 Dec 1998 21:02:54 -0800 (PST) (envelope-from patton@sysnet.net) Received: from [192.168.1.10] (saturn.falcon.com [192.168.1.10]) by jcarter.cais.com (8.9.1a/8.8.5) with ESMTP id XAA23856; Thu, 24 Dec 1998 23:42:15 -0500 (EST) Message-Id: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Fri, 25 Dec 1998 00:03:06 -0500 To: freebsd-questions@FreeBSD.ORG From: Matthew Patton Subject: NFS loopback mounts Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I didn't see a forum on NFS specifics, so here goes. Apparently doing something like this is not a good idea under heavy NFS IO with big files. [fstab] >/dev/da0s1e /export/1 ufs rw 3 2 >/dev/da0s1f /export/2 ufs rw 3 2 >/dev/da1s1a /export/3 ufs rw 2 2 >localhost:/export/1/FreeBSD /usr nfs rw 0 0 >localhost:/export/2/FreeBSD/src /usr/src nfs rw 0 0 >localhost:/export/3/FreeBSD/ports /usr/ports nfs rw 0 0 >localhost:/export/3/home /home nfs rw 0 0 [exports] >/export/1 -alldirs -maproot=root >/export/2 -alldirs >/export/3 -alldirs I was doing a 'make update' (cvsup) on /usr/src and NFS consistantly went out to lnuch on fortunes.dat (first file of notable size). Whatever it did, it took out all NFS exporting which led to hung machines on my little network. Doing a 'make update' on another box, which NFS mounts practically everything off the server (s/localhost/nfsserver) works wonderfully. So are loopback mounts dangerous? Did I hit some sort of race condition by double mounting? My idea was that I could sit down on any of my hosts and expect to see the same FS layout. This also necessitated some /etc/rc edits to start nfsd VERY early in the process and a staticly compiled portmap installed in /sbin, etc. I'm beginning to think this was a bad move afterall and that I should just dedicate the box to NFS and not play fancy games with mount points. Now onto a mountd question. I've noticed the different behavior exhibited by the 3 more popular free unix's. If no host is specified in /etc/exports, OpenBSD tosses the line, FreeBSD defaults to everyone (with whatever options provided), and Linux uses everyone but explicitely changes the mount type to be anonymous (nosuid, nodev etc). I think the Linux guys for once came up with the best solution. Is there any interest in folding in the Linux everyone=anonymous behavior? Linux also lets you specify a raft of options on the server side such that I don't have to specify (ro,nosuid,nodev) on each and every client. The Free/OpenBSD syntax seems rather backward/limiting by comparison. Likewise Free/OpenBSD lack the ability to export filesystems except at their mount points. Right now I have to export all of /export/2 (above) with the -alldirs flag instead of something like /export/2/FreeBSD -options. Again, is there any interest in adding such functionality? Please don't take this as a knock against the *BSD family. I'm a HUGE proponent of the platform and run exactly 1 Linux box out of the dozen or more hosts under my control. If there is sufficient interest (or maybe even if not) I intend to generate appropriate diffs at some later point in time. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message