From owner-freebsd-geom@FreeBSD.ORG Mon Mar 30 11:06:52 2009 Return-Path: Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A14F1106567C for ; Mon, 30 Mar 2009 11:06:52 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 8CE158FC39 for ; Mon, 30 Mar 2009 11:06:52 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n2UB6qdT054736 for ; Mon, 30 Mar 2009 11:06:52 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n2UB6qNm054732 for freebsd-geom@FreeBSD.org; Mon, 30 Mar 2009 11:06:52 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 30 Mar 2009 11:06:52 GMT Message-Id: <200903301106.n2UB6qNm054732@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-geom@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-geom@FreeBSD.org X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Mar 2009 11:06:53 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o bin/132845 geom [geom] [patch] ggated(8) does not close files opened a o kern/132273 geom glabel(8): [patch] failing on journaled partition o kern/132242 geom [gmirror] gmirror.ko fails to fully initialize o kern/131353 geom [geom] gjournal(8) kernel lock o kern/131037 geom [geli] Unable to create disklabel on .eli-Device o kern/130528 geom gjournal fsck during boot o kern/129674 geom [geom] gjournal root did not mount on boot o kern/129645 geom gjournal(8): GEOM_JOURNAL causes system to fail to boo o kern/129245 geom [geom] gcache is more suitable for suffix based provid o bin/128398 geom [patch] glabel(8): teach geom_label to recognise gpt l f kern/128276 geom [gmirror] machine lock up when gmirror module is used o kern/126902 geom [geom] geom_label: kernel panic during install boot o kern/124973 geom [gjournal] [patch] boot order affects geom_journal con o kern/124969 geom gvinum(8): gvinum raid5 plex does not detect missing s o kern/124294 geom [geom] gmirror(8) have inappropriate logic when workin o kern/124130 geom [gmirror] [usb] gmirror fails to start usb devices tha o kern/123962 geom [panic] [gjournal] gjournal (455Gb data, 8Gb journal), o kern/123630 geom [patch] [gmirror] gmirror doesnt allow the original dr o kern/123122 geom [geom] GEOM / gjournal kernel lock f kern/122415 geom [geom] UFS labels are being constantly created and rem o kern/122067 geom [geom] [panic] Geom crashed during boot o kern/121559 geom [patch] [geom] geom label class allows to create inacc o kern/121364 geom [gmirror] Removing all providers create a "zombie" mir o kern/120231 geom [geom] GEOM_CONCAT error adding second drive o kern/120044 geom [msdosfs] [geom] incorrect MSDOSFS label fries adminis o kern/120021 geom [geom] [panic] net-p2p/qbittorrent crashes system when o kern/119743 geom [geom] geom label for cds is keeped after dismount and f kern/115547 geom [geom] [patch] [request] let GEOM Eli get password fro o kern/114532 geom [geom] GEOM_MIRROR shows up in kldstat even if compile o kern/113957 geom [gmirror] gmirror is intermittently reporting a degrad o kern/113837 geom [geom] unable to access 1024 sector size storage o kern/113419 geom [geom] geom fox multipathing not failing back p bin/110705 geom gmirror(8) control utility does not exit with correct o kern/107707 geom [geom] [patch] [request] add new class geom_xbox360 to o kern/104389 geom [geom] [patch] sys/geom/geom_dump.c doesn't encode XML o kern/98034 geom [geom] dereference of NULL pointer in acd_geom_detach o kern/94632 geom [geom] Kernel output resets input while GELI asks for o kern/90582 geom [geom] [panic] Restore cause panic string (ffs_blkfree o bin/90093 geom fdisk(8) incapable of altering in-core geometry a kern/89660 geom [vinum] [patch] [panic] due to g_malloc returning null o kern/89546 geom [geom] GEOM error s kern/89102 geom [geom] [panic] panic when forced unmount FS from unplu o kern/87544 geom [gbde] mmaping large files on a gbde filesystem deadlo o kern/84556 geom [geom] [panic] GBDE-encrypted swap causes panic at shu o kern/79251 geom [2TB] newfs fails on 2.6TB gbde device o kern/79035 geom [vinum] gvinum unable to create a striped set of mirro o bin/78131 geom gbde(8) "destroy" not working. s kern/73177 geom kldload geom_* causes panic due to memory exhaustion 48 problems total. From owner-freebsd-geom@FreeBSD.ORG Thu Apr 2 12:20:40 2009 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 07703106570B for ; Thu, 2 Apr 2009 12:20:40 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 49F658FC0A for ; Thu, 2 Apr 2009 12:20:39 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id PAA12120 for ; Thu, 02 Apr 2009 15:09:30 +0300 (EEST) (envelope-from avg@icyb.net.ua) Message-ID: <49D4AAFA.1000407@icyb.net.ua> Date: Thu, 02 Apr 2009 15:09:30 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.21 (X11/20090323) MIME-Version: 1.0 To: freebsd-geom@freebsd.org X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: gpart micro-how-to X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Apr 2009 12:20:40 -0000 When I was a FreeBSD newbie I used sysinstall to partition my disks (now this subset of sysinstall's functionality can be found in sade(1)); when I became more knowledgeable and self-confident I started using fdisk and disklabel; and now it's time for gpart. Yesterday I marked up a new disk using part and decided to share the commands I used just in case somebody finds it useful. The disk is WD5000AAKS, its size in sectors is 976773168. # the following is fdisk substitute: create mbr partition table # and populate two entries with FreeBSD slices gpart create -s mbr ad10 gpart add -b 63 -s 12578832 -t freebsd ad10 gpart add -b 12578895 -s 964194273 -t freebsd ad10 # the following are disklabel substitutes: create empty labels, then add ufs # partition ad10s1a, swap partition ad10s1b and partition ad10s2d of type # "unknown"/FS_OTHER/10 for future use by zfs gpart create -s bsd ad10s1 gpart create -s bsd ad10s2 gpart add -i 1 -b 16 -s 4194304 -t freebsd-ufs ad10s1 gpart add -i 2 -b 4194320 -s 8384512 -t freebsd-swap ad10s1 gpart add -i 4 -b 16 -s 964194257 -t \!10 ad10s2 # the following are substitutes for fdisk/disklabel with -B/-b flags gpart bootcode -b /boot/boot0 ad10 gpart bootcode -b /boot/boot ad10s1 And "gpart show" is, of course, of great help at intermediate steps to figure out sizes and offsets. -- Andriy Gapon From owner-freebsd-geom@FreeBSD.ORG Thu Apr 2 17:43:22 2009 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B98F0106566C for ; Thu, 2 Apr 2009 17:43:22 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout015.mac.com (asmtpout015.mac.com [17.148.16.90]) by mx1.freebsd.org (Postfix) with ESMTP id A68F08FC14 for ; Thu, 2 Apr 2009 17:43:22 +0000 (UTC) (envelope-from xcllnt@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Received: from macbook-pro.jnpr.net (natint3.juniper.net [66.129.224.36]) by asmtp015.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KHH00GP6IJXXG50@asmtp015.mac.com> for freebsd-geom@freebsd.org; Thu, 02 Apr 2009 10:43:13 -0700 (PDT) Message-id: From: Marcel Moolenaar To: Andriy Gapon In-reply-to: <49D4AAFA.1000407@icyb.net.ua> Date: Thu, 02 Apr 2009 10:43:09 -0700 References: <49D4AAFA.1000407@icyb.net.ua> X-Mailer: Apple Mail (2.930.3) Cc: freebsd-geom@freebsd.org Subject: Re: gpart micro-how-to X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Apr 2009 17:43:23 -0000 On Apr 2, 2009, at 5:09 AM, Andriy Gapon wrote: > # the following are disklabel substitutes: create empty labels, then > add ufs > # partition ad10s1a, swap partition ad10s1b and partition ad10s2d of > type > # "unknown"/FS_OTHER/10 for future use by zfs The BSD scheme has a type for ZFS: #define FS_ZFS 27 /* Sun's ZFS */ You should be able to say: gpart create -s bsd ad10s2 gpart add -i 4 -b 16 -s 964194257 -t freebsd-zfs ad10s2 This has been MFC'd it to 7-stable slightly more than a year ago. FYI, -- Marcel Moolenaar xcllnt@mac.com From owner-freebsd-geom@FreeBSD.ORG Thu Apr 2 17:51:48 2009 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24438106564A for ; Thu, 2 Apr 2009 17:51:48 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 692408FC12 for ; Thu, 2 Apr 2009 17:51:47 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id UAA19142; Thu, 02 Apr 2009 20:51:43 +0300 (EEST) (envelope-from avg@icyb.net.ua) Message-ID: <49D4FB2E.50909@icyb.net.ua> Date: Thu, 02 Apr 2009 20:51:42 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.21 (X11/20090323) MIME-Version: 1.0 To: Marcel Moolenaar References: <49D4AAFA.1000407@icyb.net.ua> In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-geom@freebsd.org Subject: Re: gpart micro-how-to X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Apr 2009 17:51:48 -0000 on 02/04/2009 20:43 Marcel Moolenaar said the following: > > On Apr 2, 2009, at 5:09 AM, Andriy Gapon wrote: > >> # the following are disklabel substitutes: create empty labels, then >> add ufs >> # partition ad10s1a, swap partition ad10s1b and partition ad10s2d of type >> # "unknown"/FS_OTHER/10 for future use by zfs > > The BSD scheme has a type for ZFS: > #define FS_ZFS 27 /* Sun's ZFS */ > > You should be able to say: > > gpart create -s bsd ad10s2 > gpart add -i 4 -b 16 -s 964194257 -t freebsd-zfs ad10s2 > > This has been MFC'd it to 7-stable slightly more than a year > ago. Thank you very much! Stupid me was looking in src/sbin/bsdlabel, not in sys/sys/disklabel.h. -- Andriy Gapon