From owner-freebsd-current Mon Oct 22 11:45:42 2001 Delivered-To: freebsd-current@freebsd.org Received: from ipcard.iptcom.net (ipcard.iptcom.net [212.9.224.5]) by hub.freebsd.org (Postfix) with ESMTP id E62E537B401; Mon, 22 Oct 2001 11:45:29 -0700 (PDT) Received: from notebook.vega.com (h156.229.dialup.iptcom.net [212.9.229.156]) by ipcard.iptcom.net (8.9.3/8.9.3) with ESMTP id VAA16212; Mon, 22 Oct 2001 21:45:24 +0300 (EEST) (envelope-from sobomax@FreeBSD.org) Message-Id: <200110221845.VAA16212@ipcard.iptcom.net> To: rwatson@FreeBSD.org, current@FreeBSD.org From: Maxim Sobolev Subject: Re: One or more if {disklabel,mdconfig,newfs} broken for small , file-backed md file systems. X-Mailer: Pygmy (v0.5.13) Date: Mon, 22 Oct 2001 21:45:20 EEST In-Reply-To: Content-type: text/plain Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 22 Oct 2001 14:23:17 -0400 (EDT), Robert Watson wrote: > = > For small devices (unclear definition of small), the following (changed > from swap to vnode from the mdconfig man page example) is broken: > = > sproing# dd if=3D/dev/zero of=3Dfoo bs=3D1024000 count=3D1 > 1+0 records in > 1+0 records out > 1024000 bytes transferred in 0.234674 secs (4363498 bytes/sec) > sproing# mdconfig -a -t vnode -f foo > md0 > sproing# disklabel -r -w md0 auto > sproing# newfs /dev/md0c > cylinder groups must have at least 2 cylinders > [...] > "large" devices (such as 128mb) work fine. It's not clear to me what the > actual breakage is here, since my knowledge of the FFS/device stuff is > weak; however, it would be nice to be able to do what I'm trying to do. > :-) On my -current system rebuilt from the sources cvsup'ed 12 hours ago: root@notebook# dd if=3D/dev/zero of=3Dfoo bs=3D1024000 count=3D1 1+0 records in 1+0 records out 1024000 bytes transferred in 0.356797 secs (2869979 bytes/sec) root@notebook# mdconfig -a -f foo md0 root@notebook# disklabel -r -w md0 auto root@notebook# newfs /dev/md0c Warning: Block size restricts cylinders per group to 26. Warning: 2096 sector(s) in last cylinder unallocated /dev/md0c: 2000 sectors in 1 cylinders of 1 tracks, 4096 sectors =091.0MB in 1 cyl groups (26 c/g, 52.00MB/g, 256 i/g) super-block backups (for fsck -b #) at: 32 root@notebook# mount /dev/md0c /mnt root@notebook# ls /mnt root@notebook# df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s1a 845199 809207 -31623 104% / devfs 1 1 0 100% /dev procfs 4 4 0 100% /proc /dev/md0c 935 1 860 0% /mnt root@notebook# Perhaps it is a good time to update your system. :-P -Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message