From owner-freebsd-scsi@FreeBSD.ORG Mon Dec 16 16:53:56 2013 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9D9A7332 for ; Mon, 16 Dec 2013 16:53:56 +0000 (UTC) Received: from webfw.progtech.net (fw1.progtech.net [195.226.167.243]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 305291266 for ; Mon, 16 Dec 2013 16:53:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at progtech.net Received: from [127.0.0.1] (localhost [127.0.0.1]) by webfw.progtech.net (8.14.5/8.14.2) with ESMTP id rBGGiJR5002291 for ; Mon, 16 Dec 2013 17:44:19 +0100 (CET) (envelope-from rg@progtech.net) Message-ID: <52AF2DE0.70101@progtech.net> Date: Mon, 16 Dec 2013 17:44:16 +0100 From: Rolf Grossmann User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: freebsd-scsi@freebsd.org Subject: camcontrol rescan not updating disk size? X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Dec 2013 16:53:56 -0000 Hi, I'm having a problem with a virtualized system. I've grown the virtual disk, but my FreeBSD 9.1-STABLE r246991 won't recognize the new size: # grep da1 /var/run/dmesg.boot da1 at mpt0 bus 0 scbus2 target 1 lun 0 da1: Fixed Direct Access SCSI-2 device da1: 320.000MB/s transfers (160.000MHz DT, offset 127, 16bit) da1: Command Queueing enabled da1: 75776MB (155189248 512 byte sectors: 255H 63S/T 9660C) # camcontrol readcap 2:1:0 Last Block: 314572799, Block Length: 512 bytes # camcontrol rescan 2:1:0 Re-scan of 2:1:0 was successful # geom disk list da1 Geom name: da1 Providers: 1. Name: da1 Mediasize: 79456894976 (74G) Sectorsize: 512 Mode: r1w1e1 descr: VMware Virtual disk ident: (null) fwsectors: 63 fwheads: 255 IMHO that should now read "Mediasize: 161061273088 (150G)". (What I'm actually trying to do is "zpool online -e mypool da1", but that doesn't recognize the new size either, so I'm thinking geom is a good indicator of the system's idea of the disk size.) I've tried a full and targetd rescan multiple times to no avail. I don't see anything to rescan the size or flush some sort of cache. My Google searches also came up empty. I'm out of ideas what else to try short of a reboot (which I'd really like to avoid). Thanks, Rolf.