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.

Copying to new XFS formatted disk in IPMI console best practice.

Featured Replies

I have an empty XFS formatted disk in my array. I like to transfer all contents from another disk to this disk then format it to XFS and repeat this until all disks in the array are changed to XFS.

 

What ist the best and safest and fastest way? Should I do it in a screen session in Putty? Or in the IPMI console?

 

Should I copy or move or use rsync?

 

Is there a command  that will copy all files and folders at once?

Can this be done in Midnight Commander?

 

Is this Set and Forget? Will the copying continue when I close Putty or the IPMI console?

 

 

I have migrated all the disks in my 2 servers to XFS using the following command from a putty/shell:

 

rsync -av --progress --remove-source-files /mnt/diskX/ /mnt/diskY/

 

This will migrate the data, and remove the source files once each is successfully copied.  I like this method, because if it gets killed, you can easily restart and it picks up where it left off.

 

After the first run completes, I run it a few more time to catch any files that were created during the copy.  The target file is a hidden ".file" during the copy so from the share point of view there is only a single copy of the file existing during the copy.  After the copy, the source file is deleted and the target is renamed so the switch is barely noticeable to the user.

 

You can skip the remove option if you don't the overhead of the delete, but then you also have dups on the share until you are completed.

 

 

  • Author

Thanks.

 

You don't use screen or nohup so the command will keep on running whem putty is closed? Or is that a bad idea?

Thanks.

 

You don't use screen or nohup so the command will keep on running whem putty is closed? Or is that a bad idea?

I did the same thing this past week.  I was transferring overnight with screen.  Then the next day stop the array, reformat the drive and run rsync on screen overnight again.

I do use screen sometimes. I am on my workstation so much of the time, i just use an ssh sessions normally.    Probably with screen, is you can't easily scroll back, so unless you are logging to a file, it is hard to see the history.  Plus since you can restart with rsync so easily, it is not a big deal if it drops...

  • 1 month later...

Is there a way to move select folders, like all folders A through J?

  • 3 months later...

To improve the copy speed, add -W (--whole-file), to avoid calculating deltas/diffs of the files. This is the default when both the source and destination are specified as local paths, since the real benefit of rsync's delta-transfer algorithm is reducing network usage.

  • 2 years later...
  • Community Expert
On 10/2/2014 at 7:26 AM, jphipps said:

I have migrated all the disks in my 2 servers to XFS using the following command from a putty/shell:

 

rsync -av --progress --remove-source-files /mnt/diskX/ /mnt/diskY/

 

This will migrate the data, and remove the source files once each is successfully copied.  I like this method, because if it gets killed, you can easily restart and it picks up where it left off.

 

After the first run completes, I run it a few more time to catch any files that were created during the copy.  The target file is a hidden ".file" during the copy so from the share point of view there is only a single copy of the file existing during the copy.  After the copy, the source file is deleted and the target is renamed so the switch is barely noticeable to the user.

 

You can skip the remove option if you don't the overhead of the delete, but then you also have dups on the share until you are completed.

 

 

Thank you very much!

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.