Want to switch back to xfs but how?


Recommended Posts

I currently have 2x 18tb hdds, one is parity, the other is zfs disk1.

 

Disk 1 is currently emulated and the parity check is going to take around 2 months apparently due to the single zfs in array bug. All writes to disk are incredibly slow (30meg) where I was previously getting a fully saturated gigabit connection when using xfs. All of my dockers now run really slow when accessing the array too.

 

During my switch to ZFS I messed up and had a very painful 4 day (9tb) file copy operation across a gigabit connection to restore all of my data which is something I'm trying to avoid, the first time I did this operation to an xfs array it took roughly 24hrs.

 

My current theory is that with disk1 being emulated, I could do the following

1 stop the array

2 remove that disk from the array

3 add single disk as a pool and format it to xfs

4 copy all data back to the new xfs pool

5 reformat the array to xfs

6 copy everything back to the array

7 destroy the new pool and add that disk back to the array

 

Am I thinking along the right lines or am I likely to lose everything again this way?

 

Am I also correct in assuming that current write operations are being written to the parity disk and not disk1 since it hasn't yet finished a parity check?

 

Diagnostics attached

monster-diagnostics-20231121-0821.zip

Link to comment
51 minutes ago, allied-encumbrance5583 said:

Disk 1 is currently emulated and the parity check is going to take around 2 months apparently due to the single zfs in array bug.

There's no bug related to parity check being slow with zfs.

 

51 minutes ago, allied-encumbrance5583 said:

All writes to disk are incredibly slow (30meg) where I was previously getting a fully saturated gigabit connection when using xfs.

There's a bug about this.

 

52 minutes ago, allied-encumbrance5583 said:

My current theory is that with disk1 being emulated, I could do the following

1 stop the array

2 remove that disk from the array

3 add single disk as a pool and format it to xfs

4 copy all data back to the new xfs pool

5 reformat the array to xfs

6 copy everything back to the array

7 destroy the new pool and add that disk back to the array

That should work but if you only have parity and one data disk parity is a mirror, so you could do a new config and mount parity in a pool, format disk1 xfs and copy the data, once done re-add parity.

 

 

 

Link to comment
8 minutes ago, JorgeB said:
Quote

There's no bug related to parity check being slow with zfs.

I was referring the the bug relating to zfs writes, this seems to be making the reconstruction extremely slow

 

8 minutes ago, JorgeB said:
Quote

There's a bug about this.

That's what I was referencing in the first sentence, if it's something that's likely to be fixed in the upcoming weeks I guess I could wait but I can't live with this long term

 

8 minutes ago, JorgeB said:
Quote

That should work but if you only have parity and one data disk parity is a mirror, so you could do a new config and mount parity in a pool, format disk1 xfs and copy the data, once done re-add parity.

I'm not sure if I'm not quite understand what you wrote or if I didn't explain my setup well to begin with, here's a screenshot of my main disk setup...

image.thumb.png.be7852f02825efb258810d6910c78d45.png

Link to comment
1 hour ago, allied-encumbrance5583 said:

this seems to be making the reconstruction extremely slow

The bug doesn't affect rebuilds.

 

1 hour ago, allied-encumbrance5583 said:

I'm not sure if I'm not quite understand what you wrote

Do a new config, assign old parity as disk1, old disk1 as a pool (or disk2), start array, confirm disk1 mounts and format the pool/disk2 xfs, copy the data, once done do another new config to assign them to the desired slots.

 

Link to comment

In a strange turn of events, I went to perform this operation yesterday only to find that my disk transfer rate has increased from 30MB/s to 200MB/s. Is there some sort of settling in phase for zfs disks? I've not rebooted or physically touched the machine in the meantime, the only other thing I could put it down to is that there were a few docker image updates that happened yesterday (I've got them set to automatically update), I've moved a bit of data around on the main array too, by which I mean I've deleted a few files and added a few more.

 

I'm glad that the speed is back and that I can now leave it as is but I'm confused as to what's caused to speed up suddenly. Perhaps a new diagnostic file will help you to investigate the ongoing zfs issues.

monster-diagnostics-20231123-0739.zip

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.