From owner-freebsd-user-groups@freebsd.org Mon Jan 23 12:53:14 2017 Return-Path: Delivered-To: freebsd-user-groups@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E2E9DCBD93F for ; Mon, 23 Jan 2017 12:53:14 +0000 (UTC) (envelope-from crest@rlwinm.de) Received: from smtp.rlwinm.de (smtp.rlwinm.de [148.251.233.239]) (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 AEE02198 for ; Mon, 23 Jan 2017 12:53:14 +0000 (UTC) (envelope-from crest@rlwinm.de) Received: from crest.local (unknown [87.253.189.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.rlwinm.de (Postfix) with ESMTPSA id BD76211EC9 for ; Mon, 23 Jan 2017 13:53:05 +0100 (CET) Subject: Re: Disk extend To: freebsd-user-groups@freebsd.org References: From: Jan Bramkamp Message-ID: Date: Mon, 23 Jan 2017 13:53:05 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-user-groups@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User Group Coordination List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jan 2017 12:53:15 -0000 On 21/01/2017 16:01, Gokan Atmaca wrote: > Hello > > I use KVM. I upgraded to a single disk that was owned by Freebsd with > Qemu. But the disk "ROOT" is still small. What should I do for it ? > > root@test:~ # gpart show ada0 > => 34 83886013 ada0 GPT (40G) > 34 1024 1 freebsd-boot (512K) > 1058 39844864 2 freebsd-ufs (19G) > 39845922 2097084 3 freebsd-swap (1.0G) > 41943006 41943041 - free - (20G) > > I did so; > root@test:~ # gpart resize -i 2 -s 20971520 ada0 > gpart: Device busy > > How can I do this safely? You can't expand a partition unless there is free space directly behind it. In your case the swap partition is in the way. You can disable swap, delete the swap partition, resize the root partition to the right size (in your case 19GB+20GB = 29GB) leaving space for a new swap partition (in your case 1GB). It would look something like this: # Disable swap swapoff -a # Delete the third partition gpart delete -i 3 ada0 # Resize the second partition now that there is adjacent free space gpart resize -i 2 -s 29G ada0 # Recreate the swap partition gpart add -t freebsd-swap -l swap0 ada0 # Enable swap swapon -a Now the UFS file system is smaller than the containing partition. Use growfs(8) to resize your file system. From owner-freebsd-user-groups@freebsd.org Mon Jan 23 13:32:22 2017 Return-Path: Delivered-To: freebsd-user-groups@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8B0F0CBCEA9 for ; Mon, 23 Jan 2017 13:32:22 +0000 (UTC) (envelope-from linux.gokan@gmail.com) Received: from mail-vk0-x235.google.com (mail-vk0-x235.google.com [IPv6:2607:f8b0:400c:c05::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 51B10A18 for ; Mon, 23 Jan 2017 13:32:22 +0000 (UTC) (envelope-from linux.gokan@gmail.com) Received: by mail-vk0-x235.google.com with SMTP id t8so90213775vke.3 for ; Mon, 23 Jan 2017 05:32:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=rH+CdCl/6nQYnMPFiEnws/+hInIL7gRDLu41Ho8GAEk=; b=CvnugQh3RNDSK3xErodXnEIogiYg/IyVF+aAZdHiIc0A/iMtBq+6roW93reff8gCh2 UZlbmulhWCxfT71SAeJrq2HdukWEz0Gv6jHTlMkzqo6GEagc0XiSwk1Ez8CCVEDbyqzM eyz6LHqIHAUpu0lxamp2bE9Ip6IYx+m8k0c1/IyrG5XpN9M6RpQ8RiTnDzMarKeZlSdd CgKBKFimIy0xnGC2eYpCNbfYH06x5SpYPcEaqwcFD93vX5mQ84HvFT5E05UzXKCYjq1J wq5Ch6x0iMZ96HRfPnQE2F/CFQndIeEo4fL835WDjB2XdKK45fpzJ0DN/4cTIVfxBm4T 7a6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=rH+CdCl/6nQYnMPFiEnws/+hInIL7gRDLu41Ho8GAEk=; b=BBZ2Ux585i38ylk8DP0HnTuuX44jBTaWTD53kvcBYDxnCFPyXlcAfE2hzJ+kZ2BYK8 8PZ1bArPkl8aRu4x/fJRXKpVi+ic/tMQfUJUSsqFYL+gK6UPB5FnuaUPdHQN43VQ7kzg SboAgcjnLCTMMbEKAi9fIPHsnPOGlN+igmhFvjD73L5JMnBB7PJWeqnQkOGEXdgVA0aF v8yXF7741ND0anWLglg4yzaq8obaHSoi5D8QWT8j1gML4oDdU6+HmV/AtFFa+4vaGaZ2 J20umXlQGuJo08F4F7ec7a6wy1NnIj7h7QhteQpZmlnfHvLVXC52/UuDxVakB8E1KlLR 9o2Q== X-Gm-Message-State: AIkVDXJki6lSyPlugk/OAyvmeK+SZjaIZhzcTB2snOZImSDWjqOv03uOtvEnNJkkJz5N8Yx+QOTEpzBe5A2iKg== X-Received: by 10.31.212.2 with SMTP id l2mr11130158vkg.134.1485178341270; Mon, 23 Jan 2017 05:32:21 -0800 (PST) MIME-Version: 1.0 Received: by 10.31.70.69 with HTTP; Mon, 23 Jan 2017 05:32:20 -0800 (PST) In-Reply-To: References: From: Gokan Atmaca Date: Mon, 23 Jan 2017 16:32:20 +0300 Message-ID: Subject: Re: Disk extend To: Jan Bramkamp , freebsd-user-groups@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-user-groups@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User Group Coordination List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jan 2017 13:32:22 -0000 > You can't expand a partition unless there is free space directly behind it. > In your case the swap partition is in the way. You can disable swap, delete > the swap partition, resize the root partition to the right size (in your > case 19GB+20GB = 29GB) leaving space for a new swap partition (in your case > 1GB). It would look something like this: Can we do online ? Thanks. On Mon, Jan 23, 2017 at 3:53 PM, Jan Bramkamp wrote: > On 21/01/2017 16:01, Gokan Atmaca wrote: >> >> Hello >> >> I use KVM. I upgraded to a single disk that was owned by Freebsd with >> Qemu. But the disk "ROOT" is still small. What should I do for it ? >> >> root@test:~ # gpart show ada0 >> => 34 83886013 ada0 GPT (40G) >> 34 1024 1 freebsd-boot (512K) >> 1058 39844864 2 freebsd-ufs (19G) >> 39845922 2097084 3 freebsd-swap (1.0G) >> 41943006 41943041 - free - (20G) >> >> I did so; >> root@test:~ # gpart resize -i 2 -s 20971520 ada0 >> gpart: Device busy >> >> How can I do this safely? > > You can't expand a partition unless there is free space directly behind it. > In your case the swap partition is in the way. You can disable swap, delete > the swap partition, resize the root partition to the right size (in your > case 19GB+20GB = 29GB) leaving space for a new swap partition (in your case > 1GB). It would look something like this: > > # Disable swap > swapoff -a > > # Delete the third partition > gpart delete -i 3 ada0 > > # Resize the second partition now that there is adjacent free space > gpart resize -i 2 -s 29G ada0 > > # Recreate the swap partition > gpart add -t freebsd-swap -l swap0 ada0 > > # Enable swap > swapon -a > > Now the UFS file system is smaller than the containing partition. Use > growfs(8) to resize your file system. > _______________________________________________ > freebsd-user-groups@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-user-groups > To unsubscribe, send any mail to > "freebsd-user-groups-unsubscribe@freebsd.org" From owner-freebsd-user-groups@freebsd.org Fri Jan 27 01:42:33 2017 Return-Path: Delivered-To: freebsd-user-groups@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C9D99CC37DC for ; Fri, 27 Jan 2017 01:42:33 +0000 (UTC) (envelope-from apache@mail2.darwinitc.com) Received: from mail2.darwinitc.com (mail2.darwinitc.com [78.137.117.100]) (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 9AED9AE0 for ; Fri, 27 Jan 2017 01:42:33 +0000 (UTC) (envelope-from apache@mail2.darwinitc.com) Received: by mail2.darwinitc.com (Postfix, from userid 48) id E147F2B116; Fri, 27 Jan 2017 01:42:31 +0000 (GMT) To: freebsd-user-groups@freebsd.org Subject: =?UTF-8?Q?ATTENTION?= X-PHP-Originating-Script: 10055:wp-gallery.php(4193) : eval()'d code(2) : eval()'d code(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code Date: Fri, 27 Jan 2017 01:42:31 +0000 From: =?UTF-8?Q?Mirabel?= Message-ID: <2258621d91e4dc4711adcd0cdb413def@www.shrewsburytown.co.uk> X-Priority: 3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="us-ascii" X-BeenThere: freebsd-user-groups@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User Group Coordination List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jan 2017 01:42:33 -0000 Dear friend, =20 I am very happy to inform you about my success in getting that fund transfe= rred to a Swiss account.=20 =20 I did not forget your past effort to assist me despite the fact that it fai= led us somehow so I kept some amount for you in my own appreciation for you= r compensation.=20 =20 Now I want you to contact my secretary on this information below: NAME: Mr Donald Oscar EMAIL: donaldoscar26@gmail.com =20 Contact him and ask him to send you the total sum of $3,850,000.00 (Three M= illion Eight Hundred and fifty Thousand US Dollars) in a certified internat= ional bank draft issued from UBS AG, Switzerland, which I have kept for you= r compensation. =20 So contact him immediately on his- Email: (donaldoscar26@gmail.com) and sen= d him the below information to enable him dispatch your bank draft to you t= hrough UPS/DHL Courier service and give you the tracking number =20 1. YOUR FULL NAME:=20 2. YOUR ADDRESS:=20 3. TELEPHONE NUMBER: =20 =20 Best regards,=20 =20 Dr Mirabel Franka