From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.redhat.com (ext-mx07.extmail.prod.ext.phx2.redhat.com [10.5.110.31]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id uAABMhe5001019 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 10 Nov 2016 06:22:43 -0500 Received: from mail.bitfolk.com (bitfolk.com [85.119.80.223]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 40F53C04B945 for ; Thu, 10 Nov 2016 11:22:42 +0000 (UTC) Received: from andy by mail.bitfolk.com with local (Exim 4.72) (envelope-from ) id 1c4nRI-0000pn-La for linux-lvm@redhat.com; Thu, 10 Nov 2016 11:22:40 +0000 Date: Thu, 10 Nov 2016 11:22:40 +0000 From: Andy Smith Message-ID: <20161110112240.GM21587@bitfolk.com> References: MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Subject: Re: [linux-lvm] Is it considered safe to resize a mounted partition (root filesystem) with lvextend Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: text/plain; charset="utf-8" To: linux-lvm@redhat.com Hi Kevin, On Thu, Nov 10, 2016 at 09:12:58AM +0200, Kevin Wilson wrote: > Is it safe to extend a mounted partition ? Yes, if the tool you would use without LVM (e.g. resize2fs) is safe for that. LVM just uses the appropriate tool, in your case resize2fs, which can handle on-line resize. > If I try it I get: > "on-line resizing required" message, which I am not sure what it means. It means that resize2fs has detected that the device is mounted and so is doing an on-line resize. It is merely informational. That message comes from resize2fs and so this is not really an LVM question. As you can see… > lvextend --size +20G --resizefs /dev/mapper/vg_paeiserver5-lv_my_partition > Extending logical volume lv_ubuntu to 34.00 GiB > Logical volume lv_ubuntu successfully resized …from this point on the output comes from the resize2fs program. > resize2fs 1.42.9 (4-Feb-2014) > Filesystem at /dev/mapper/vg_paeiserver5-lv_my_partition is mounted on > /; on-line resizing required > old_desc_blocks = 1, new_desc_blocks = 3 > The filesystem on /dev/mapper/vg_paeiserver5-lv_my_partition is now > 8912896 blocks long. Cheers, Andy