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.

Using DD command to copy XFS disk, Unraid system does not recognize it

Featured Replies

Unraid version: 6.11.5

 

Operating process:
1.I built a 24-disk array, where the sdh disk is 8TB, XFS system, containing a large amount of data; the sdx disk is 12TB, XFS system, without data;
2.I used the dd command to copy all data from sdh disk to sdx disk;
3.Since the sdx disk is 12TB, after the data copying is completed, I used fdisk to adjust the partition and used growfs to expand the XFS file system, as well as xfs_repair to fix the file system;
4.After all operations are completed, I manually mount /dev/sdx1 mnt/sdx1, and I can see the files in the sdx disk, which seems to be no problem.

 

Existing problems:
After performing the operation, whether restarting Unraid, rebuilding the array, the Unraid interface always shows sdx disk (with the file system already selected as XFS system) as "Unmountable: Unsupported partition layout"。

 

Some key commands :
nohup dd if=/dev/sdh of=/dev/sdx bs=128K status=progress > dd1.log 2>&1 &
fdisk /dev/sdx
xfs_repair /dev/sdx1
mount /dev/sdx1 /mnt/sdx1
xfs_growfs /mnt/sdx1
I also upload the logs.

 

Question:
How should I operate to make Unraid recognize the XFS system of sdx disk?

ljq-unraid-diagnostics-20230403-1330.zip

Solved by JorgeB

  • Community Expert
  • Solution

Unraid requires a specif partition layout and signature, you can format the new disk with Unraid then copy the data from the old one.

  • Author
28 minutes ago, JorgeB said:

Unraid requires a specif partition layout and signature, you can format the new disk with Unraid then copy the data from the old one.

@Moderators

Your meaning is, if I format the sdx disk as an XFS system in unRAID, and then use the dd command to copy the data, it will cause the XFS partition to be unrecognizable?
Is there any solution to this? manually adjust the partition layout and signature?
I don't want to format the new hard drive again and then copy 8TB of data again using rsync or cp commands.🤣

  • Community Expert
25 minutes ago, LJQ said:

Your meaning is, if I format the sdx disk as an XFS system in unRAID, and then use the dd command to copy the data, it will cause the XFS partition to be unrecognizable?

If you format it assigned to the array (or pool), not using the CLI.

  • Author
15 minutes ago, JorgeB said:

If you format it assigned to the array (or pool), not using the CLI.

Translation: I first formatted the disk to the XFS filesystem through the web interface and then used the dd command to copy the data. However, the dd command would definitely overwrite the target disk's filesystem and partitions, causing Unraid to be unable to recognize the XFS partition. Based on this conclusion, it is not recommended to use the dd command for full-disk copying in Unraid, or it's not a problem if the disks are of the same size? I'm still not quite clear about Unraid's unique partitions and identifiers.

  • Community Expert

it's not a problem if the disks are of the same size, it will be if they are not.

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.