From owner-freebsd-fs@FreeBSD.ORG Wed Jan 4 16:14:31 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 502101065676 for ; Wed, 4 Jan 2012 16:14:31 +0000 (UTC) (envelope-from Martin.Birgmeier@aon.at) Received: from email.aon.at (nat-warsl417-02.aon.at [195.3.96.120]) by mx1.freebsd.org (Postfix) with ESMTP id 8FF618FC08 for ; Wed, 4 Jan 2012 16:14:29 +0000 (UTC) Received: (qmail 20242 invoked from network); 4 Jan 2012 15:47:48 -0000 Received: from smarthub77.res.a1.net (HELO email.aon.at) ([172.18.1.205]) (envelope-sender ) by fallback43.highway.telekom.at (qmail-ldap-1.03) with SMTP for ; 4 Jan 2012 15:47:48 -0000 Received: (qmail 22643 invoked from network); 4 Jan 2012 15:47:45 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.0 (2007-05-01) on WARSBL604.highway.telekom.at X-Spam-Level: Received: from 91-113-14-211.adsl.highway.telekom.at (HELO gandalf.xyzzy) ([91.113.14.211]) (envelope-sender ) by smarthub77.res.a1.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 4 Jan 2012 15:47:45 -0000 Received: from mizar-v1.xyzzy (mizar-v1.xyzzy [192.168.1.51]) by gandalf.xyzzy (8.14.5/8.14.5) with ESMTP id q04FljPM024916 for ; Wed, 4 Jan 2012 16:47:45 +0100 (CET) (envelope-from Martin.Birgmeier@aon.at) Message-ID: <4F04749E.9020301@aon.at> Date: Wed, 04 Jan 2012 16:47:42 +0100 From: Martin Birgmeier User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20111222 Thunderbird/9.0 MIME-Version: 1.0 To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Upgrade to 9.0: How to convert zpool from adX to adaX? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jan 2012 16:14:31 -0000 I'll be upgrading a server from 8.2 to 9.0 soon. On it, I currently have the following zpool: ---------- [0]# zpool status pool: hal.1 state: ONLINE status: The pool is formatted using an older on-disk format. The pool can still be used, but some features are unavailable. action: Upgrade the pool using 'zpool upgrade'. Once this is done, the pool will no longer be accessible on older software versions. scrub: none requested config: NAME STATE READ WRITE CKSUM hal.1 ONLINE 0 0 0 raidz2 ONLINE 0 0 0 ad10p3 ONLINE 0 0 0 ad12p3 ONLINE 0 0 0 ad14p3 ONLINE 0 0 0 ad16p3 ONLINE 0 0 0 ad18p3 ONLINE 0 0 0 ad20p3 ONLINE 0 0 0 errors: No known data errors [0]# ---------- I would like to do two things: 1) Wire the ATA CAM disks such that ad10 -> ada0, ad12 -> ada1, etc. 2) Change the zpool to use the then newly available ada0p3, ada1p3, ..., ada5p3 gparts. Ultimately, I want to set sysctl kern.cam.ada.legacy_aliases=0. Please advise on how best to achieve this. Regards, Martin p.s. The following information relates to the current ata attachments: ---------- [0]# egrep 'ad[0-9]|ata[0-9]|atapci[0-9]' /var/run/dmesg.boot atapci0: port 0xcc00-0xcc07,0xc880-0xc883,0xc800-0xc807,0xc480-0xc483,0xc400-0xc40f mem 0xfe8fe000-0xfe8fffff irq 18 at device 0.0 on pci3 atapci0: [ITHREAD] atapci1: on atapci0 atapci1: [ITHREAD] atapci1: AHCI v1.00 controller with 2 3Gbps ports, PM supported ata2: on atapci1 ata2: [ITHREAD] ata3: on atapci1 ata3: [ITHREAD] ata4: on atapci0 ata4: [ITHREAD] atapci2: port 0xa000-0xa007,0x9000-0x9003,0x8000-0x8007,0x7000-0x7003,0x6000-0x600f mem 0xfe4ffc00-0xfe4fffff irq 19 at device 17.0 on pci0 atapci2: [ITHREAD] atapci2: AHCI v1.20 controller with 6 3Gbps ports, PM supported ata5: on atapci2 ata5: [ITHREAD] ata6: on atapci2 ata6: [ITHREAD] ata7: on atapci2 ata7: [ITHREAD] ata8: on atapci2 ata8: [ITHREAD] ata9: on atapci2 ata9: [ITHREAD] ata10: on atapci2 ata10: [ITHREAD] ad10: 1907729MB at ata5-master UDMA100 SATA 3Gb/s ad12: 1907729MB at ata6-master UDMA100 SATA 3Gb/s ad14: 1907729MB at ata7-master UDMA100 SATA 3Gb/s ad16: 1907729MB at ata8-master UDMA100 SATA 3Gb/s ad18: 1907729MB at ata9-master UDMA100 SATA 3Gb/s ad20: 1907729MB at ata10-master UDMA100 SATA 3Gb/s [0]# ----------