From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx3.redhat.com (mx3.redhat.com [172.16.48.32]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i999war02550 for ; Sat, 9 Oct 2004 05:58:36 -0400 Received: from 21cn.com (send.forptr.21cn.com [202.105.45.51]) by mx3.redhat.com (8.12.11/8.12.10) with SMTP id i999wOhO022476 for ; Sat, 9 Oct 2004 05:58:27 -0400 From: "Rocty Wang" Date: Sat, 9 Oct 2004 17:58:12 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0017_01C4AE29.8B1D4560" Message-ID: Subject: [linux-lvm] How to extend the file system online? 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: To: linux-lvm@redhat.com This is a multi-part message in MIME format. ------=_NextPart_000_0017_01C4AE29.8B1D4560 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Hi, all, After I used LVM2 to create PV, VG, LV on the attached storage disks, I want to format logical volume as a file system and possibly extend the file system of LV online. But when I prefer to "ext3" file system, I find the tool "resize2fs" only can resize ext3 file system offline. OS: Linux Fedora Core2(kernel 2.6.7-1.494.2.2smp) LVM version: 2.00.15(2004-04-19) Library version: 1.00.14-ioctl(2004-04-06) Driver version: 4.1.0 Operations: pvcreate /dev/sda pvcreate /dev/sdb vgcreate vg1 /dev/sda /dev/sdb lvcreate -L 100G -n lv1 vg1 mke2fs /dev/vg1/lv1 mount /dev/vg1/lv1 /mnt lvextend -L +50G /dev/vg1/lv1 Then I used "resize2fs" tool to extend file system, but failed. I know it must be done when "umount" the lv1. If another tool can finish that running under Linux? Or if any other file system can be mounted and resized online under Linux? XFS? I don't know. Anyone can help me? Thanks! Rocty Wang 2004-10-09 ------=_NextPart_000_0017_01C4AE29.8B1D4560 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable

Hi, = all,

 

    After I = used LVM2 to create PV, VG, LV on the attached storage

disks, I want to format = logical volume as a file system and

possibly extend the file = system of LV online. But = when I prefer to

ext3 file system, I find the tool resize2fs only can resize

ext3 file system = offline.

 

    OS: = Linux Fedora Core2(kernel 2.6.7-1.494.2.2smp)

    LVM = version: 2.00.15(2004-04-19)

    Library = version: 1.00.14-ioctl(2004-04-06)

    Driver = version: 4.1.0

 

    = Operations:

    = pvcreate /dev/sda

    = pvcreate /dev/sdb

 

    = vgcreate vg1 /dev/sda /dev/sdb

    = lvcreate L 100G n lv1 vg1

 

    mke2fs /dev/vg1/lv1

    mount /dev/vg1/lv1 /mnt

    = lvextend L +50G /dev/vg1/lv1

 

    Then I = used resize2fs tool to = extend file system, but failed.

I know it = must be done when umount the = lv1.

    If = another tool can finish that running under Linux?

 

    Or if = any other file system can be mounted and resized online under Linux? =

XFS? I = dont know.

 

Anyone can = help me? Thanks!

 

Rocty = Wang

2004-10-09

 

 

 

------=_NextPart_000_0017_01C4AE29.8B1D4560-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i9BDudr01902 for ; Mon, 11 Oct 2004 09:56:39 -0400 Received: from mail2.m-cam.com ([63.124.102.77]) by mx1.redhat.com (8.12.11/8.12.10) with ESMTP id i9BDuXB3002962 for ; Mon, 11 Oct 2004 09:56:39 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail2.m-cam.com (Postfix) with ESMTP id 5D4E93E8EA for ; Mon, 11 Oct 2004 09:52:07 -0400 (EDT) Received: from mail2.m-cam.com ([127.0.0.1]) by localhost (mail2.m-cam.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07272-05 for ; Mon, 11 Oct 2004 09:51:54 -0400 (EDT) Received: from [192.168.1.21] (unknown [192.168.1.21]) by mail2.m-cam.com (Postfix) with ESMTP id 68FF53E8B9 for ; Mon, 11 Oct 2004 09:51:54 -0400 (EDT) Message-ID: <416A90FE.5010504@m-cam.com> Date: Mon, 11 Oct 2004 09:56:15 -0400 From: Arshavir Grigorian MIME-Version: 1.0 Subject: Re: [linux-lvm] How to extend the file system online? References: In-Reply-To: Content-Transfer-Encoding: 8bit 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"; format="flowed" To: LVM general discussion and development Rocty Wang wrote: > Hi, all, > > After I used LVM2 to create PV, VG, LV on the attached storage > > disks, I want to format logical volume as a file system and > > possibly extend the file system of LV online. But when I prefer to > > “ext3” file system, I find the tool “resize2fs” only can resize > > ext3 file system offline. > > OS: Linux Fedora Core2(kernel 2.6.7-1.494.2.2smp) > > LVM version: 2.00.15(2004-04-19) > > Library version: 1.00.14-ioctl(2004-04-06) > > Driver version: 4.1.0 > > Operations: > > pvcreate /dev/sda > > pvcreate /dev/sdb > > vgcreate vg1 /dev/sda /dev/sdb > > lvcreate –L 100G –n lv1 vg1 > > mke2fs /dev/vg1/lv1 > > mount /dev/vg1/lv1 /mnt > > lvextend –L +50G /dev/vg1/lv1 > > Then I used “resize2fs” tool to extend file system, but failed. > > I know it must be done when “umount” the lv1. > > If another tool can finish that running under Linux? > > Or if any other file system can be mounted and resized online under > Linux? > > XFS? I don’t know. > > Anyone can help me? Thanks! > > Rocty Wang > > 2004-10-09 > You can try ReiserFS, which does allow to be resized while mounted. --Arshavir From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx3.redhat.com (mx3.redhat.com [172.16.48.32]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i9BEedr15201 for ; Mon, 11 Oct 2004 10:40:39 -0400 Received: from kopparhuset.net (tp2internet.comun.org [212.75.75.26] (may be forged)) by mx3.redhat.com (8.12.11/8.12.10) with ESMTP id i9BEeRBf030024 for ; Mon, 11 Oct 2004 10:40:33 -0400 Message-ID: <416A9B4F.4010709@webhackande.se> Date: Mon, 11 Oct 2004 16:40:15 +0200 From: Rickard Olsson MIME-Version: 1.0 Subject: Re: [linux-lvm] How to extend the file system online? References: <416A90FE.5010504@m-cam.com> In-Reply-To: <416A90FE.5010504@m-cam.com> Content-Transfer-Encoding: 7bit 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="us-ascii"; format="flowed" To: LVM general discussion and development Arshavir Grigorian wrote: > You can try ReiserFS, which does allow to be resized while mounted. Additional comments: ReiserFS 3 can be enlarged while mounted, but shrunk only when unmounted. ReiserFS 4 can not yet be resized at all. EXT2/3 can be enlarged online with a kernel patch and utils from http://ext2resize.sourceforge.net/ XFS must be mounted while enlarging but can AFAIK not be shrunk, even off-line. JFS must be mounted while enlarging but can not be shrunk, same as XFS. Some more info is in the HOW-TO: http://linux.co.uk/howtos/LVM-HOWTO/extendlv.html and on Newsforge: http://www.newsforge.com/os/03/10/07/2028234.shtml?tid=2&tid=82&tid=94 / Rickard Olsson,IT-Konsult/ / Telefon: +46 70 635 01 42/ / http://www.webhackande.se/ From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i9BHVBr14304 for ; Mon, 11 Oct 2004 13:31:11 -0400 Received: from pm-mx2.noos.fr (pm-mx2.mgn.net [195.46.220.221]) by mx1.redhat.com (8.12.11/8.12.10) with ESMTP id i9BHVAhd005082 for ; Mon, 11 Oct 2004 13:31:10 -0400 Received: from [192.168.1.100] (d147.dhcp212-198-206.noos.fr [212.198.206.147]) by pm-mx2.noos.fr (Postfix) with ESMTP id C8AC62717D for ; Mon, 11 Oct 2004 19:31:01 +0200 (MEST) Date: Mon, 11 Oct 2004 19:32:37 +0200 (CEST) From: Laurent Bloch In-Reply-To: <416A9B4F.4010709@webhackande.se> Message-ID: References: <416A90FE.5010504@m-cam.com> <416A9B4F.4010709@webhackande.se> MIME-Version: 1.0 Subject: [linux-lvm] [Debian/Knoppix] LVM2 at boot time 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="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit To: LVM general discussion and development Hi, My system is Knoppix 3.6 with 2.6.7 kernel and LVM2. My /home and /usr/local file systems are on logical volumes. The lvm script is in /etc/init.d, with a link in /etc/rcS.d, S26lvm (mountall has a greater number). dm-mod is in /etc/modules At boot time, everything stops; I have to type "modprobe dm-mod", , and everything is OK. What's wrong with my boot config.? Any hint appreciated. -- Laurent Bloch -- lbloch@noos.fr -- http://laurent-bloch.org