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--