From owner-freebsd-bugs@FreeBSD.ORG Tue Feb 24 11:21:23 2015 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 59B83F0D for ; Tue, 24 Feb 2015 11:21:23 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3FFB27BD for ; Tue, 24 Feb 2015 11:21:23 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t1OBLNTh032336 for ; Tue, 24 Feb 2015 11:21:23 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 197989] gpart(8) can't define start for new partition Date: Tue, 24 Feb 2015 11:21:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: timp87@gmail.com X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Feb 2015 11:21:23 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197989 Bug ID: 197989 Summary: gpart(8) can't define start for new partition Product: Base System Version: 11.0-CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: timp87@gmail.com Hi! There is a problem with gpart(8) in some cases. I have HP Proliant server with smart array raid controller (ciss driver). Sometimes gpart(8) can't define the start of a new partition that I want to add. Here is an example: Two disks build into one mirror using HP Smart Array. # gpart create -s gpt da0 da0 created # gpart add -t freebsd-ufs -s 512k da0 ad0p1 added # gpart show => 40 286677040 da0 GPT (137G) 40 752 - free - (376K) 792 1024 1 freebsd-ufs (512K) 1816 286675264 - free - (137G) # gpart add -t freebsd-ufs -s 512k da0 gpart: start '792': No space left on device What? But I have free space on device. And why gpart(8) tries to add new partition from 792? I already have such partition. It should start from 1816! Same story with MBR scheme, with 10.1-STABLE and 10.1-RELEASE. Looks like gpart(8) is buggy. FreeBSD 11.0-CURRENT amd64 r279210 (from 2015-02-23) -- You are receiving this mail because: You are the assignee for the bug.