-
-
Isabel Jason started following RobJ
-
shanelovell started following RobJ
-
Re: Format XFS on replacement drive / Convert from RFS to XFS (discussion only)
I think you missed my point...The fact that you have two different size drives and different format the question in my mind is how can parity be valid when I swap out a 2TB RFS drive with 4TB xfs drive. I know it works out now but at the time it was a strech to comprehend this. From a parity standpoint, size doesn't matter, format doesn't matter, data doesn't matter, nothing matters but the bits on every drive, whether you are using them or not. From a parity standpoint, drives are all the same size, exactly as big as the parity drive. They just have zeroes past the end of the physical drive. Here are links explaining parity (the second has more links): Parity-Protected Array, from the Manual How does parity work?
-
-
**VIDEO GUIDE** How to Install MacOS Mojave or High Sierra as a VM
Added to Guides and Videos!
-
Re: Format XFS on replacement drive / Convert from RFS to XFS (discussion only)
Done. That's why my very first step is to recommend a parity check, so that you know there are no drive problems to take care of, and that parity is good. There's no reason it should not stay good throughout. Keep it coming! I have also added a summary of the method to begin it with, and a new Method section, with the various factors that are involved and comparative verbiage between the different methods. The methods are only summarized. Will it be helpful? Probably not, so many more words added...
-
Re: Format XFS on replacement drive / Convert from RFS to XFS (discussion only)
That should be : rsync -avPX /mnt/disk3/ /mnt/disk7 Note the slash after the 3. Without that slash, you will end up with a disk3 folder on Disk 7 (/mnt/disk7/disk3). With the slash added, you will end up with the entire contents of Disk 3 on Disk 7, and no disk3 folder.
-
Re: Format XFS on replacement drive / Convert from RFS to XFS (discussion only)
tunetyme, would you mind checking the change I've made? Here's the old Step 16: You should see all array disks with a blue icon, a warning that the parity disk will be erased, and a check box for Parity is already valid; IMPORTANT! click the check box, make sure it's checked to indicate that Parity is already valid or your Parity disk will be rebuilt! then click the Start button to start the array; it should start up without issue and look almost identical to what it looked like before the swap, with no parity check needed; however the XFS disk is now online and its files are now being shared as they normally would; check it all if you are in doubt And here's the new version: You should see all array disks with blue icons, and a warning (All data on the parity drive will be erased when array is started), and a check box for Parity is already valid. VERY IMPORTANT! Click the check box! Make sure that it's checked to indicate that Parity is already valid or your Parity disk will be rebuilt! Then click the Start button to start the array. It should start up without issue (and without erasing and rebuilding parity), and look almost identical to what it looked like before the swap, with no parity check needed. However the XFS disk is now online and its files are now being shared as they normally would. Check it all if you are in doubt. Before you click the Start button, you may still see the warning about the parity drive being erased, but if you have put a check mark in the checkbox for Parity is already valid, then the parity drive will NOT be erased or touched. It is considered to be already fully valid.
-
Re: Format XFS on replacement drive / Convert from RFS to XFS (discussion only)
tunetyme, you started off by saying that you followed the wiki step by step, but take a look again at step 16. Somehow you missed that one. I do apologize for the instructions seeming convoluted to you, but the step was there. I looked at each of the ways you were suggesting to do it, and I have to be honest, they not only will take twice or 3 times as long, they also seem more convoluted to me, when you add in all the little details needed. I still believe (and it's just my opinion!) that if you want the easiest and fastest way to do it, AND want to preserve parity and User Share configuration, then the wiki method is the best one. Obviously I need someone else to write it though! Except to prepare the initial disk, there is absolutely no clearing done, no Preclearing done, no parity builds done, and no file is copied more than ONE time ever. I'll add more words to step 16 to display the message you saw ("All data on the parity drive will be erased when array is started"), then tell you to ignore it and click the checkbox to indicate "Parity is already valid". Perhaps that will make it clearer? After the copying of a drive is done, it only takes a few minutes before you can start copying the next drive - stop the array, New Config with Retain:All, swap the drive assignments, correct the file system formats, optional start and stop of the array to check it, change the file format of the cleared drive to XFS, start the array and allow it to be formatted, and you're ready to start copying again. Here's a summary of the wiki method: - Steps 1 - 7 are just prep, figuring out a strategy, and preparing the initial drive. Plus, I recommend a parity check so you don't run into drive problems during the process, and because if parity is not good, there's no point in preserving it. - Steps 8 - 9 are copying, with optional additional verification. - Steps 10 - 18 are just the few minutes swapping the drives and formatting for the next copy - Step 19 just tells you to loop back to Step 8 to start copying again. At the end, I do tell you there are a few redundant steps in there, but I prefer having them in there because it seems safer that way. But overall, there's just 3 steps - prep, copy, swap, then repeat. But I really do welcome improvements and suggestions for simplification, or even full rewrites. I'd like to add a summary at the top of the various possible methods. I think if a user read the summary first, like the one above, they would be less likely to feel it's convoluted. Plus, if it suddenly did start to feel convoluted or wrong, then they would know they had gone off the track somewhere. There is a faster method, if you have a lot of data. Unassign the parity drive, turn off User Shares, and skip the swapping. That will make the copying faster (no parity drive), but you will still have to allow a day or 2 afterward to rebuild parity. And while you won't have to worry about the complications of messed up inclusions and exclusions and file duplication during the process, you will still have to locate where everything is afterward, and correct all of the inclusions. The advantage of the wiki method is the array always stays the same except for brief intervals (a few minutes each), both before you start, and during the process, and after you're done. The only difference is that each logical drive is now a different physical drive. Parity was always preserved, and so was your User Share configuration, and except for those brief intervals normal operation was fine. If you had a second parity drive, it would need to be rebuilt, but that is true for almost all methods. This would be a good feature request, and I agree with that. It's not really a flaw, as New Config is basically resetting the array back to nothing. So it's as if it has never seen the disks you may then assign to it, which is also why it MUST present the message that parity will be rebuilt when you use New Config. It assumes this is a new array, new disks it has never seen, and a new parity drive. The Retain feature is essentially brand new for us, but modifies the New Config to reset the array config but retain some or all of the previous assignments. What we need now is for the Retain feature to also retain the existing file system info for each drive. This would save steps for us, and avoid some risk and confusion. I'm sorry if I sound defensive about what I've written. I do welcome improvement. jonathanm has been pointing out one of the constraining elements of my method, and I want to comment on that, and other things, like the problems of unBALANCE, but in another post.
-
HP H240 Smart HBA Support (in HBA Mode)
I don't know, for a specific card. But some cards have their own BIOS setup screen, or jumpers, a way to make significant changes in the PCI configuration of the card. I have no idea what your card has. Perhaps Tom will check on that, can't speak for him. But remember, it's not clear what the issue is, may not be the driver.
-
Re: Format XFS on replacement drive / Convert from RFS to XFS (discussion only)
Uh oh! Now I'm feeling pressured! As you've probably noticed, I'm easily and constantly side-tracked! And I have a bunch of little projects I'm either working on, or wanted to work on, plus other projects I don't want to work on, but my relatives do want me working on! I'll try to put a priority on it though. But the first draft won't be a step by step, but rather a summary of what has to be done. I have some reservations about the use of unBALANCE, the more I've thought about it. It's doable, but there are special issues that can come up, and I don't know what happens then. I first need to create a post in the unBALANCE thread with some questions I have, as to what happens in certain cases. The only simple case (I think!) is the case where the user doesn't use includes or excludes, all shares exist on all drives. Any other case is going to have extra issues and steps.
-
HP H240 Smart HBA Support (in HBA Mode)
The card or driver is broken, not working. Here are the relevant syslog sections: Looks like memory region conflicts (possibly with itself?!?). Both Microsoft and Linux kernel devs have gotten good about detecting and working around hardware 'quirks', and perhaps Microsoft has done a better job here. You can try reconfiguring the card, to see if it will improve its PCI declarations. Or perhaps Tom ( @limetech ) will have an idea, once he sees this. Could also be useful to see @ezhik's syslog, to compare the same sections.
-
Re: Format XFS on replacement drive / Convert from RFS to XFS (discussion only)
This looks like it might be an old issue returned, involving extended attributes and AFP. I'm guessing you have accessed this drive over AFP at some point? Read the discussions and fixes found in these threads: A "mover" issue? (Mover uses rsync too) Running mover does not successfully move items Extended Attributes Fix
-
Re: Format XFS on replacement drive / Convert from RFS to XFS (discussion only)
I'll start by giving some background on the current wiki method, and then touch on a few things you may not have thought about. I had noticed already several users using unBALANCE, and had been thinking about adding a method based on it, but I won't be able to completely flesh out the steps as I've never used unBALANCE, and can't because I don't use User Shares (which of course partly explains my own methodology). I've always preferred knowing and controlling exactly where everything is, and I've a personal catalog file I keep open in an editor tab with all of my series and categories listed, with the drives they're on. For example, I know that my Alias shows are on Disk 1, and all my PBS stuff is on Disk 4. User Shares are convenient for many, but for me it just adds another layer to the access. Off-topic though ... But converting drives is a drive issue, only indirectly a User Share issue. It's drives that are formatted, and that dominates the problem. I don't know for sure, but I suspect if you wrote out the steps for doing the entire array with unBALANCE, it would be close to 19, or maybe even more. A general method for users at large has to handle every contingency and every situational variation, as safely as possible for the least technical of users. That always takes longer, and often more steps are involved, 'just in case'. It inevitably means lots more words! I do think my method is the most straightforward, safest, and fastest though, but then disk shares is what I work with and understand. It does have an extra step or two to accommodate User Shares. For User Share users, which is most or almost all unRAID users, unBALANCE sounds attractive, and I agree that it's a great plugin! It uses basically the same rsync command, so should have the same speed and file verification checksumming for the individual transfers. But in operation over multiple drives, it's likely to take longer, because it's moving the files off one drive to the others, then moving the files back when you do the next drive, and possibly moving some files multiple times, pushing them around the various drives to keep them out of the way of the next format operation. With my method, files only move once. The only way to make sure no files get moved more than once with unBALANCE is to carefully manage exactly where each file starts and where it ends up, and that sounds like something you wanted to avoid, if you don't want to care where the files are. To me, my method seems just as seamless, and allows full operation just as much. Both ways, you have to stop the array, make changes, then restart the array, just as many times. When I did it with 6.1, I didn't have to use New Config, just adjust the assignments and restart the array. Unfortunately in 6.2, something changed and it won't allow that, so we had to add the New Config step, which I agree does add a little extra hassle. 6.0 and 6.1 users don't have to do that. We have requested that to be corrected, so we can just restart the array, but as far as I know, it hasn't happened yet (haven't checked it recently though). The strong cautions though are just as important, for either method! How do you know for sure that there were not files lost when you did it? Because if there were any other processes (internal plugins, Dockers, scheduled scripts, or VM's, or externally scheduled backups) writing files to the array, they could very well have added files to the very drive you were emptying with unBALANCE. In fact, the emptying of a shared drive makes it the most attractive target for writing new files to. Either you make absolutely sure that nothing else could be writing to the array, or you should run unBALANCE a final time, just to make sure that nothing is left on the drive (written to it after unBALANCE had swept across it), before you format it. Does unBALANCE after moving folders come back and check if they have reappeared on that drive, with more files in them? So I'll add a general unBALANCE-based method, and I think many users may prefer it, as it does hide some of the detail, but it will take longer to perform. And they will have to manually configure unBALANCE for each drive emptying. The steps will have to have just as many warnings. Users who aren't running anything else at all will obviously have a simpler time, can ignore the warnings, but that's a special case. I really don't want any of this to be daunting or nerve-wracking, but each time we hear of a user doing something we hadn't thought of and getting into trouble, the word count increases. The more words, the more daunting it appears ... (just look at this post for instance!)
-
Re: Format XFS on replacement drive / Convert from RFS to XFS (discussion only)
You can close it and keep the operation running by using screen, part of the Nerdpack. A helpful guide to using screen is Screen Tips.
-
Re: Format XFS on replacement drive / Convert from RFS to XFS (discussion only)
Commands like that aren't made to be typed by hand! I recommend using PuTTY, which does support copy and paste, although in an awkward way. If nothing else, you can copy the command into a file, copy the file to the boot drive, then run the file from a terminal session. Well yes they do, some using the Unassigned Devices plugin to add and control extra drives. But a true backup should always be on a different machine, so most use other means for backups, like a second server, or cloud backups, etc.
-
Preclear.sh results - Questions about your results? Post them here.
The drive looks fine, should be good. The only thing that concerns me is the Raw_Read_Error_Rate, which dipped down to 64, but is now back to 83. Might want to monitor that.
-
Re: Format XFS on replacement drive / Convert from RFS to XFS (discussion only)
You can format a drive even if full. The only thing that slows you down from formatting a drive is the checkbox that Squid mentioned, and that's an important safety feature long needed. In the past, too many users have too quickly formatted drives, that shouldn't have.