File System Conversion


Syco54645

Recommended Posts

So I am sitting here with an server that was setup when ReiserFS was still the recommended file system and am looking for a simple way to convert these drives to XFS and am coming up empty. It seems that ReiserFS will eventually be fully abandoned in favor of other file systems. The issue is all of the current processes require the somewhat dangerous tasks of creating a new config. Would it be possible to create a feature to aid in this process?

Edited by Syco54645
Link to comment
1 hour ago, Syco54645 said:

all of the current processes require the somewhat dangerous tasks of creating a new config

 

New Config isn't particularly dangerous, but it also isn't required (or necessarily even useful) for converting. Not sure where you got that idea.

 

Do you need some advice on converting?

Link to comment
1 hour ago, trurl said:

New Config isn't particularly dangerous, but it also isn't required (or necessarily even useful) for converting. Not sure where you got that idea.

 

Wouldn't using new config and placing a drive in the wrong location cause data loss? I do not trust myself to not mess up somewhere along the line with 10 drives to convert.

 

1 hour ago, trurl said:

Do you need some advice on converting?

 

Yes please if you can give advice I would greatly appreciate it (I am on 6.9.0 if it matters). I have posted on the reddit community multiple times and was told that I basically must use unbalance to move all of the files off of the drive then use new config to change the format of the empty drive. This video was given to me as the basic method, just not following the encryption bit.

 

 

Link to comment
24 minutes ago, trurl said:

Changing filesystem of a disk requires formatting the disk to the new filesystem. So, you have to put its files somewhere else before formatting.

 

All of your disks are very full. The simplest way to make space would be to add a disk to a new slot, or replace a disk with a larger disk.

Yes I am in the process of waiting for an 8tb to add to the array for space and in hopes of starting conversions.

 

What would the process look like for this? I would assume I have to stop anything that writes to the array and then use unbalance to move the files and this is where I get fuzzy. When I move the files are they moved as far as the array is concerned or will I have to rebuild parity?

Link to comment

Didn't notice before but your disk6 is new, though not showing up as having any capacity yet. Looks like it must be clearing

Sep 19 13:17:32 Essex kernel: md: recovery thread: clear ...

 

16 minutes ago, Syco54645 said:

will I have to rebuild parity?

All write operations to the array update parity at the same time so parity remains in sync.

In addition to writing a file, move, copy, delete, and even format, are all write operations that update parity.

  • Thanks 1
Link to comment
4 minutes ago, trurl said:

Didn't notice before but your disk6 is new, though not showing up as having any capacity yet. Looks like it must be clearing

Sep 19 13:17:32 Essex kernel: md: recovery thread: clear ...

 

All write operations to the array update parity at the same time so parity remains in sync.

In addition to writing a file, move, copy, delete, and even format, are all write operations that update parity.

 

So how can I empty a drive and not have any new files being added to it at the same time? I guess that is the only stumbling block at this point.

Link to comment
22 minutes ago, Syco54645 said:

not have any new files being added to it

I don't use unBALANCE so I don't know exactly how it plays with disks and user shares.

 

If you don't want any new files written to a disk while writing to user shares you can exclude the disk from all user shares in Global Share Settings. That would also mean no files from that disk would be included when reading user shares.

  • Thanks 1
Link to comment
32 minutes ago, trurl said:

I don't use unBALANCE so I don't know exactly how it plays with disks and user shares.

 

If you don't want any new files written to a disk while writing to user shares you can exclude the disk from all user shares in Global Share Settings. That would also mean no files from that disk would be included when reading user shares.

 

What method do you recommend for moving files from one drive to another within the array? I thought doing a "mv /mnt/disk1/* /mnt/disk11/" would not update the array. If I am incorrect then I have been given wrong information and this will be quite an easy process.

 

Link to comment
13 minutes ago, trurl said:

That is incorrect. Writing any disk in the parity array updates parity at the same time.

 

In that case the process seems to be 

  1. mv /mnt/diskX/* /mnt/diskY/
    1. Once complete make sure all files are moved
  2. Stop array
  3. Go to Disk Settings and change the File system type to xfs
  4. Start array
  5. Format the drive that is needed

Would that be a good assessment of what I need to do? Is there a better way to move the files than just mv in a screen session?

Link to comment
2 hours ago, Syco54645 said:

 

In that case the process seems to be 

  1. mv /mnt/diskX/* /mnt/diskY/
    1. Once complete make sure all files are moved
  2. Stop array
  3. Go to Disk Settings and change the File system type to xfs
  4. Start array
  5. Format the drive that is needed

Would that be a good assessment of what I need to do? Is there a better way to move the files than just mv in a screen session?

That would work fine..

 

as to whether there is a ‘better’ method that really depends on what tools you are most familiar with.  Using mv in a screen session is fine if you know how to do that.  You could achieve similar results using any file manipulation tool such as rsync, mc (midnight commander), Krusader running as a Docket containet, file manager on another machine etc.

  • Thanks 1
Link to comment
9 hours ago, itimpi said:

That would work fine..

 

as to whether there is a ‘better’ method that really depends on what tools you are most familiar with.  Using mv in a screen session is fine if you know how to do that.  You could achieve similar results using any file manipulation tool such as rsync, mc (midnight commander), Krusader running as a Docket containet, file manager on another machine etc.

Thanks! This greatly simplifies things for me.

 

Also thanks trurl for helping as well.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.