LinHES Forums
http://forum.linhes.org/

Double-checking my ext3->xfs steps
http://forum.linhes.org/viewtopic.php?f=5&t=10088
Page 1 of 1

Author:  marc.aronson [ Wed May 17, 2006 9:51 pm ]
Post subject:  Double-checking my ext3->xfs steps

I am going to convert my existing EXT3 filesystem to XFS. I currently use LVM, spanning 2 partitions on 2 different drives. I've read the various postings and wiki pages, but I would appreciate someone double-checking that what I am planning to do looks correct before I move forward. Here is what I am planning:

[Edited on 5/20 to reflect the steps I took that worked -- thanks to TJC for the pointed on "cp -a"]

0. Halt myth frontend, myth backend and mysql.

1. copy all of /myth to a spare drive I have using "cp -a".

2. mkfs.xfs -f /dev/vg/myth

3. copy everything back to /myth

4. Restart mysql, mythbackend, mythfrontend

Thanks in advance for the sanity check!

marc

Author:  tjc [ Wed May 17, 2006 10:31 pm ]
Post subject:  Re: Double-checking my ext3->xfs steps

marc.aronson wrote:
My plan is to use "cp -p -R" to make the backup

I'd use "cp -a" instead, since that will avoid turning symlinks into files unintentionally...

Also, remember that you're giving up the ability to resize your partition if you add space to the volume group. Ext3 can do this, and I'm pretty sure xfs can not.

Author:  marc.aronson [ Thu May 18, 2006 8:07 am ]
Post subject: 

tjc, thanks for the quick reply. I believe you are correct about xfs. On the other hand, whenever I delete a large file (HD recording of 6 GB) under ext3 it takes 5-6 seconds for the delete to finish. Based on what I've read, it looks like my tradeoff is better performance vs. resizing flexibility. Is there a filesystem format the will give me both?

Marc

Author:  tjc [ Thu May 18, 2006 9:23 am ]
Post subject: 

Not that I know of. I've been tempted to do the same as you, but erred to the side being able to expand my volume group.

Author:  marc.aronson [ Fri May 19, 2006 8:30 am ]
Post subject: 

I've done a bit more digging and it looks like you can grow the XFS file system. I've included some of the man page info below. I believe the only remaining advantage of ext3 is that you can reduce the size of an ext3 file system, while xfs only supports growth. In practice, it's not clear to me that the ability to shink the filesystem is a critical capability. Am I missing something here?

Marc


Quote:
NAME
xfs_growfs, xfs_info - expand an XFS filesystem

SYNOPSIS
xfs_growfs [ -dilnrxV ] [ -D size ] [ -e rtextsize ]
[ -L size ] [ -m maxpct ] [ -t mtab ]
[ -R size ] mount-point
xfs_info [ -t mtab ] mount-point

DESCRIPTION
xfs_growfs expands an existing XFS filesystem (see xfs(5)). The mount-
point argument is the pathname of the directory where the filesystem is
mounted. The filesystem must be mounted to be grown (see mount(8)).
The existing contents of the filesystem are undisturbed, and the added
space becomes available for additional file storage.

xfs_growfs is most often used in conjunction with logical volumes (see
lvm(8) ). However, it can also be used on a regular disk partition,
for example if a partition has been enlarged while retaining the same
starting block.

PRACTICAL USE
Filesystems normally occupy all of the space on the device where they
reside. In order to grow a filesystem, it is necessary to provide
added space for it to occupy. Therefore there must be at least one
spare new disk partition available. Adding the space is often done
through the use of a logical volume manager.


Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/