Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Convert BTRFS to XFS

Featured Replies

What is the best way to convert a drive from BTRFS to XFS?

You can't convert it. You have to reformat it, so copy off the data first.

 

  • Author

There's a LOT of data on that drive.  To save time, could I just pull the drive, do a preclear, format to XFS and replace in the system and let data rebuild restore the data?  I have a test system I could do the preclear/format on. 

Rebuild will just put the same file system back on it again. You need to copy data off, format to new FS, then copy back.

There's a LOT of data on that drive.  To save time, could I just pull the drive, do a preclear, format to XFS and replace in the system and let data rebuild restore the data?  I have a test system I could do the preclear/format on.

Nope. Rebuild will simply rebuild the drive EXACTLY as it was, including the old filesystem type and all.

 

You need to copy data off the drive, format as xfs, then recopy data back.

 

Alternatively, its a lot easier to do if you have an entirely blank drive, then you dont have to copy the data back to the original. You merely switch off which drive is empty. This is how I converted my 6 2TB RFS drive system over to XFS.

  • 1 month later...

After a parity drive failure I copied all the data from my server, reformatted everything and started afresh.  I have noticed (months after doing this) that 3 of my 6 drives are btrfs?? the default filesystem is set to xfs so no idea how this happened!  anyhow, I have 3.5TB free of my 10TB system and would like to move data off each disk at a time, reformat it and put it back into the array, from experience, what is the best way to do this?

 

Many Thanks

After a parity drive failure I copied all the data from my server, reformatted everything and started afresh.  I have noticed (months after doing this) that 3 of my 6 drives are btrfs?? the default filesystem is set to xfs so no idea how this happened!  anyhow, I have 3.5TB free of my 10TB system and would like to move data off each disk at a time, reformat it and put it back into the array, from experience, what is the best way to do this?

 

Many Thanks

Basic principles of this thread apply.

Hi,

 

I am doing it using the method on the wiki with rsync

 

"Another method involves using rsync which would be better if you wanted to only copy the differences between the source and dest dirs. rsync -a /mnt/disk3/ /mnt/user will copy the contents of disk3 to /mnt/user. Use the -n flag to do a dry run."

 

the disk I am trying to remove is Disk1 and I typed the command

 

rsync -a -n /mnt/disk 1 /mnt/user

 

but looking at the disk usage Disk 1 has gone from 1.50TB used to 1.72TB used?

 

How can it be safe to remove this disk if content is being copied to it?

 

Many Thanks

Hi,

 

I am doing it using the method on the wiki with rsync

 

"Another method involves using rsync which would be better if you wanted to only copy the differences between the source and dest dirs. rsync -a /mnt/disk3/ /mnt/user will copy the contents of disk3 to /mnt/user. Use the -n flag to do a dry run."

 

the disk I am trying to remove is Disk1 and I typed the command

 

rsync -a -n /mnt/disk 1 /mnt/user

 

but looking at the disk usage Disk 1 has gone from 1.50TB used to 1.72TB used?

 

How can it be safe to remove this disk if content is being copied to it?

 

Many Thanks

 

Yikes. Sounds like a recipe for disaster!

 

As a rule of thumb - never mix disk shares and user shares without understanding what you doing to 100%. The same goes for using the command line in general, an extra space or the wrong character somewhere can cause massive problems.

But I followed the wiki!

 

https://lime-technology.com/wiki/index.php/FAQ_remove_drive

 

Another method involves using rsync which would be better if you wanted to only copy the differences between the source and dest dirs. rsync -a /mnt/disk3/ /mnt/user will copy the contents of disk3 to /mnt/user. Use the -n flag to do a dry run.

 

 

But I followed the wiki!

 

https://lime-technology.com/wiki/index.php/FAQ_remove_drive

 

Another method involves using rsync which would be better if you wanted to only copy the differences between the source and dest dirs. rsync -a /mnt/disk3/ /mnt/user will copy the contents of disk3 to /mnt/user. Use the -n flag to do a dry run.

 

You should really read the thread jonathanm linked instead.

 

My warning still stands. Sorry if I'm coming off as rude, I am just in a bit concerned. It is not unheard of for users to destroy their data through the terminal. Trying to copy commands you don't understand will get you into trouble.

 

For example, these two commands mean very different things:

rsync -a -n /mnt/disk 1 /mnt/user

rsync -a -n /mnt/disk1 /mnt/user

 

You might also want to look up what "dry run" means.

 

 

ok... Thanks for the replies, I will copy everything off my server onto my other server and wipe/format again! :o

ok... Thanks for the replies, I will copy everything off my server onto my other server and wipe/format again! :o

 

Backups are awesome! Wiping everything might be overkill, though. :)

 

You might want to check out unBALANCE.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.