1820879 Members
5132 Online
109628 Solutions
New Discussion юеВ

XFS FIlesystem

 
Nobody's Hero
Valued Contributor

XFS FIlesystem

I have a file system that is ext3 on a RH9 system. I compiled a new kernel to include xfs support. I want to change the filesystem that exists from ext3 to xfs. Can I unmount it, then change fstab, and remount it as xfs? Or do I have to delete it and rebuild the filesystem as xfs?
UNIX IS GOOD
5 REPLIES 5
Claudio Cilloni
Honored Contributor

Re: XFS FIlesystem

I think you cannot do that. Copy you data somewhere, unmount and change the filesystem on that device to xfs (with a command like mkfs.xfs, I suppose. I don't know xfs), remount changing /etc/fstab and copy back the data.

hth,
Claudio
Mark Grant
Honored Contributor

Re: XFS FIlesystem

No, you can not do that.

If you have a spare partition, or have sensibly been using LVM :) then create your xfs filesystem, copy all the data to it from your ext3 filesystem and then change /etc/fstab to mount your xfs filesystem. When you are happy, remove your ext3 fileystem
Never preceed any demonstration with anything more predictive than "watch this"
Nobody's Hero
Valued Contributor

Re: XFS FIlesystem

Thanks,

I've never created a linux filesystem from the command line,post install. Is there a gui I can use, or a list of commands I can follow from the command line?
UNIX IS GOOD
Steven E. Protter
Exalted Contributor

Re: XFS FIlesystem

mkfs, which works similar to newfs on HP-UX is the linux command to create the filesystem.

Thats were you want to check the man page.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Mark Grant
Honored Contributor

Re: XFS FIlesystem

Robert,

SEP is right in the general case but some filesystems are different. For example reiserfs filesystem is "mkresierfs". I would check with the documentation for XFS.

"mkfs -F xfs" should call the right one but you never know so it's worth checking.
Never preceed any demonstration with anything more predictive than "watch this"