Anybody tried resizing an "in use" filesystem?, any procedures to share?. It would be interesting to know about xfs/reiserfs/ext3 approachs. (no lvm) Ciro
On Tuesday 15 March 2005 09:20, Ciro Iriarte wrote:
Anybody tried resizing an "in use" filesystem?, any procedures to share?. It would be interesting to know about xfs/reiserfs/ext3 approachs. (no lvm)
Ciro
AFAIK You can only do this if you are using LVM and then it is a simple procedure using YAST->Partitioner. Are you shrinking or growing the filesystem ? PAul H -- Paul Hewlett (Linux #359543) Email:`echo az.oc.evitcaten@ttelweh | rev` Tel: +27 21 852 8812 Cel: +27 72 719 2725 Fax: +27 86 672 0563 --
Paul Hewlett
On Tuesday 15 March 2005 09:20, Ciro Iriarte wrote:
Anybody tried resizing an "in use" filesystem?, any procedures to share?. It would be interesting to know about xfs/reiserfs/ext3 approachs. (no lvm)
Ciro
I did once, I had to create a new partition, to put a new service in cluster and replicate its data between the 2 nodes: I resized the /home partition: using fdisk, if I remember, you can move the beginning of a partition, i.e fdisk /dev/sda, then select x for "extra functionality (experts only)" and then b to move beginning of data in a partition. If you don't use LVM, I think that's the only solution Regards, Gaël
Guess that would be offline...
On Tue, 15 Mar 2005 13:14:36 +0100, g.lams@itcilo.org
Paul Hewlett
wrote on 15/03/2005 12.25.02: On Tuesday 15 March 2005 09:20, Ciro Iriarte wrote:
Anybody tried resizing an "in use" filesystem?, any procedures to share?. It would be interesting to know about xfs/reiserfs/ext3 approachs. (no lvm)
Ciro
I did once, I had to create a new partition, to put a new service in cluster and replicate its data between the 2 nodes: I resized the /home partition: using fdisk, if I remember, you can move the beginning of a partition, i.e fdisk /dev/sda, then select x for "extra functionality (experts only)" and then b to move beginning of data in a partition. If you don't use LVM, I think that's the only solution
Regards,
Gaël
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
Shrinking, but in this ocation can do it offline, without problems.
Just was thinking in a similar situation, say with a heavy loaded mail
server for example...
On Tue, 15 Mar 2005 13:25:02 +0200, Paul Hewlett
On Tuesday 15 March 2005 09:20, Ciro Iriarte wrote:
Anybody tried resizing an "in use" filesystem?, any procedures to share?. It would be interesting to know about xfs/reiserfs/ext3 approachs. (no lvm)
Ciro
AFAIK You can only do this if you are using LVM and then it is a simple procedure using YAST->Partitioner. Are you shrinking or growing the filesystem ?
PAul H
-- Paul Hewlett (Linux #359543) Email:`echo az.oc.evitcaten@ttelweh | rev` Tel: +27 21 852 8812 Cel: +27 72 719 2725 Fax: +27 86 672 0563 --
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
mmm, guess it should be easy to do it with yast, but it's not working.
Yast2 log:
--------------
2005-03-15 23:45:53 <1> cacho(17133) [agent-storage]
SystemCmd.cc(SystemCmd):34 Konstruktor SystemCmd:"/usr/sbin/parted -s
/dev/cciss/c0d0 resize 9 47780.641 88755.5 " UseTmp:1 Nr:19
2005-03-15 23:45:53 <1> cacho(17133) [agent-storage]
SystemCmd.cc(InitFile):103 File:"/tmp/YaST2.tdir/stp17133_19_S"
2005-03-15 23:45:53 <1> cacho(17133) [agent-storage]
SystemCmd.cc(DoExecute):208 system() Returns:1
2005-03-15 23:45:53 <1> cacho(17133) [agent-storage]
PartedAcc.cc(CheckError):74 cmd:/usr/sbin/parted -s /dev/cciss/c0d0
resize 9 47780.641 88755.5
2005-03-15 23:45:53 <1> cacho(17133) [agent-storage]
PartedAcc.cc(CheckError):75 out:Error: Unable to satisfy all
constraints on the partition.
Error: Can't have the end before the start!
Error: Partition /dev/cciss/c0d0p9 is being used. You must unmount it
before you modify it with Parted.
2005-03-15 23:45:53 <3> cacho(17133) [agent-storage]
PartedAcc.cc(CheckError):79 retcode:1
2005-03-15 23:45:53 <1> cacho(17133) [YCP]
partitioning/target_modify.ycp:400 disk_resize ret:false
2005-03-15 23:45:53 <3> cacho(17133) [YCP]
partitioning/target_modify.ycp:435 Oops, partition resize failed for
device /dev/cciss/c0d0p9
2005-03-15 23:45:53 <1> cacho(17133) [ui-shortcuts]
YShortcutManager.cc(checkShortcuts):82 Shortcut conflict: 'A' used for
YPushButton "Cancel&ar"
2005-03-15 23:45:53 <1> cacho(17133) [ui-shortcuts]
YShortcutManager.cc(checkShortcuts):82 Shortcut conflict: 'A' used for
YPushButton "Reintent&ar"
cacho:~ # umount /srv/ftp
umount: /srv/ftp: dispositivo ocupado
umount: /srv/ftp: dispositivo ocupado
cacho:~ # lsof /srv/ftp
Supposely that FS is being used, but can't see anyone using it...
On Tue, 15 Mar 2005 13:25:02 +0200, Paul Hewlett
On Tuesday 15 March 2005 09:20, Ciro Iriarte wrote:
Anybody tried resizing an "in use" filesystem?, any procedures to share?. It would be interesting to know about xfs/reiserfs/ext3 approachs. (no lvm)
Ciro
AFAIK You can only do this if you are using LVM and then it is a simple procedure using YAST->Partitioner. Are you shrinking or growing the filesystem ?
PAul H
-- Paul Hewlett (Linux #359543) Email:`echo az.oc.evitcaten@ttelweh | rev` Tel: +27 21 852 8812 Cel: +27 72 719 2725 Fax: +27 86 672 0563 --
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
Ciro Iriarte wrote:
Anybody tried resizing an "in use" filesystem?, any procedures to share?. It would be interesting to know about xfs/reiserfs/ext3 approachs. (no lvm) Jumping in here....
When resizing partitions must the partitions be UN mounted or is it possible to resize an active fs ie /var without having a data backup? If the fs has to be unmounted would you use the SuSE CD1 to boot from from and install as though a fresh install BUT abort it after the partitioning step? -- ======================================================================== Hylton Conacher - Linux user # 229959 at http://counter.li.org Currently using SuSE 9.0 Professional with KDE 3.1 ========================================================================
On Thursday 17 March 2005 11:23 am, Hylton Conacher (ZR1HPC) wrote:
Ciro Iriarte wrote:
Anybody tried resizing an "in use" filesystem?, any procedures to share?. It would be interesting to know about xfs/reiserfs/ext3 approachs. (no lvm)
Jumping in here....
When resizing partitions must the partitions be UN mounted or is it possible to resize an active fs ie /var without having a data backup?
If you can grow the partition (ie, you have room to extend the partition), then you can grow a ReiserFS filesystem online. I regularly do it, though I use LVM (actually EVMS, but it's using LVM underneath). Generally, I make a small root partition then make the rest of the disk an LVM PV, partitioned into /var, /usr, /home, etc. Those partitions get initially created at a reasonable small size (like, around a gig or so), and I grow them as needed. I've found that to work very well on my home systems - I've even grown filesystems using LVM and Reiser) during video capture to the filesystem being grown, it works quite well. AFAIK, you can't shrink any of the filesystems online. That makes sense, as a program might be trying to write to a block just before the resize operation, but not complete the write until after. So you have to unmount to shrink. Reiser and, IIRC, XFS can grow online - the others (including ext2/3) need unmounted to grow or shrink. --Danny, wondering how he ever got along before LVM :)
participants (5)
-
Ciro Iriarte
-
Danny Sauer
-
g.lams@itcilo.org
-
Hylton Conacher (ZR1HPC)
-
Paul Hewlett