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.

format XFSv4 to XFSv5

Featured Replies

I just updated to 7.2.0. I get a warning at login that my XFS v4 array drives should be updated to XFS v5. So I followed the guide:

No image preview

File systems | Unraid Docs

Selecting a file system type

I emptied one drive, stopped the array, and but can see no way to upgrade from XFSv4 to XFSv5 - the GUI only has one generic "XFS" file system on the menu. How do I do this from the terminal, and should I bother?

Solved by itimpi

  • Community Expert
  • Solution
27 minutes ago, luca said:

How do I do this from the terminal

Follow the process for reformatting a drive as documented here. Do it twice, the first time selecting something other than what you want to finish up with, and then a second time setting it to XFS (which will automatically now be v5).

  • Author
9 minutes ago, itimpi said:

Follow the process for reformatting a drive as documented here. Do it twice, the first time selecting something other than what you want to finish up with, and then a second time setting it to XFS (which will automatically now be v5).

OK, that worked, thanks. Just a suggestion, it would be great if the GUI could display the XFS version as well, without having to go to the log

  • Community Expert
5 minutes ago, luca said:

it would be great if the GUI could display the XFS version as well, without having to go to the log

You would need to put that in as a feature request if you want Limetech to see it.

  • Community Expert

The warning that shows will identify the disks that are formatted with XFSv4.

  • 8 months later...
On 11/12/2025 at 4:47 AM, itimpi said:

Follow the process for reformatting a drive as documented here. Do it twice, the first time selecting something other than what you want to finish up with, and then a second time setting it to XFS (which will automatically now be v5).

On 11/12/2025 at 4:47 AM, itimpi said:

Follow the process for reformatting a drive as documented here. Do it twice, the first time selecting something other than what you want to finish up with, and then a second time setting it to XFS (which will automatically now be v5).

It's great that this works but it is absurd that I have to actually format the disk twice. If I just change to BTRFS, restart array, stop array, change back to XFS, it doesn't prompt to format it just goes back to XFS v4.

I am formatting a disk twice for no good reason. It's dumb.

  • Community Expert
10 hours ago, anthropoidape said:

It's great that this works but it is absurd that I have to actually format the disk twice. If I just change to BTRFS, restart array, stop array, change back to XFS, it doesn't prompt to format it just goes back to XFS v4.

Simply changing the format and starting the array does not cause anything to be written to the disk. Therefore when you stop the array and change it back to XFS then on starting the array Unraid autodetect logic detects the disk is already in XFS format and therefore does not offer to format it. That is why the disk needs to be formatted twice, and only takes a minute or so to do the format so it is not as though it is time-consuming.

  • Community Expert
16 minutes ago, itimpi said:

Simply changing the format and starting the array does not cause anything to be written to the disk. Therefore when you stop the array and change it back to XFS then on starting the array Unraid autodetect logic detects the disk is already in XFS format and therefore does not offer to format it. That is why the disk needs to be formatted twice, and only takes a minute or so to do the format so it is not as though it is time-consuming.

I mean, we could also just have an "advanced" option in the docs how to run it manually on the disk mkfs.xfs /dev/mdXp1 and skip all the back and fourth. I just dont know what/if any flags/switches unraid uses along with it.

  • Community Expert
24 minutes ago, MowMdown said:

I mean, we could also just have an "advanced" option in the docs how to run it manually on the disk mkfs.xfs /dev/mdXp1 and skip all the back and fourth. I just dont know what/if any flags/switches unraid uses along with it.

I’ve often thought having a Format button against each drive/pool would be a good idea so you never accidentally formatted a drive you did not want to format.

  • Community Expert
2 minutes ago, itimpi said:

I’ve often thought having a Format button against each drive/pool would be a good idea so you never accidentally formatted a drive you did not want to format.

I know I and a lot of others would like to see this due having a single format operation can be problematic under certain situations when formatting all disks unraid thinks should be formatted is not desired.

12 hours ago, itimpi said:

Simply changing the format and starting the array does not cause anything to be written to the disk. Therefore when you stop the array and change it back to XFS then on starting the array Unraid autodetect logic detects the disk is already in XFS format and therefore does not offer to format it. That is why the disk needs to be formatted twice, and only takes a minute or so to do the format so it is not as though it is time-consuming.

this is true but if the disk options just included "XFS4 (deprecated)" and "XFS5" as separate options it would be easier and also clearer what is happening.

  • Community Expert
3 hours ago, anthropoidape said:

this is true but if the disk options just included "XFS4 (deprecated)" and "XFS5" as separate options it would be easier and also clearer what is happening.

Well the issue I think with that is XFSv4 was updated in the Linux kernel to XFSv5.

It’s not like there are two versions of XFS to choose from. That would have probably required LT to engineer a solution when just doing a reformat is easier.

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...

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.