View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 5 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Wed May 17, 2006 9:51 pm 
Offline
Joined: Tue Jan 18, 2005 2:07 am
Posts: 1532
Location: California
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


Last edited by marc.aronson on Sat May 20, 2006 2:05 pm, edited 1 time in total.


Top
 Profile  
 
PostPosted: Wed May 17, 2006 10:31 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 18, 2006 8:07 am 
Offline
Joined: Tue Jan 18, 2005 2:07 am
Posts: 1532
Location: California
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 18, 2006 9:23 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
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.


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 19, 2006 8:30 am 
Offline
Joined: Tue Jan 18, 2005 2:07 am
Posts: 1532
Location: California
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.



Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu