Removing LUN from host without unconfiguring GPFS filesystem
Hello, I have a GPFS cluster with two filesystems. The disks associated to one filesystem reside on an old storage and the other filesystem disks reside on a much more modern storage system. I have successfully moved data from one fs to the other but there are questions about data integrity that still need verification so the old filesystem needs somehow to be preserved. My question is: Can I remove the old filesystem LUNs association to the NSDs servers without removing spectrum scale filesystems, so that later on, if necessary, I could associate them back and the old filesystem would be operating as normal? If possible: what would be the general steps to achieve this? ----- Thank you, Harold.
On 21/01/18 21:19, Harold Morales wrote:
Hello,
I have a GPFS cluster with two filesystems. The disks associated to one filesystem reside on an old storage and the other filesystem disks reside on a much more modern storage system. I have successfully moved data from one fs to the other but there are questions about data integrity that still need verification so the old filesystem needs somehow to be preserved.
My question is: Can I remove the old filesystem LUNs association to the NSDs servers without removing spectrum scale filesystems, so that later on, if necessary, I could associate them back and the old filesystem would be operating as normal? If possible: what would be the general steps to achieve this?
I would take a look at mmexportfs/mmimportfs myself to be on the safe side. JAB. -- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG
Thank you. The filesystems belong both to the same cluster. My question is whether LUNs can be unmapped from the host even though filesystems have not been configured and when they are mapped back the filesystem is going to operate correctly. El 21/01/2018 5:35 p.m., "Jonathan Buzzard" <jonathan.buzzard@strath.ac.uk> escribió: On 21/01/18 21:19, Harold Morales wrote:
Hello,
I have a GPFS cluster with two filesystems. The disks associated to one filesystem reside on an old storage and the other filesystem disks reside on a much more modern storage system. I have successfully moved data from one fs to the other but there are questions about data integrity that still need verification so the old filesystem needs somehow to be preserved.
My question is: Can I remove the old filesystem LUNs association to the NSDs servers without removing spectrum scale filesystems, so that later on, if necessary, I could associate them back and the old filesystem would be operating as normal? If possible: what would be the general steps to achieve this?
I would take a look at mmexportfs/mmimportfs myself to be on the safe side. JAB. -- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Harold, The way I read your question, no one has actually answered it fully: You want to put the old file system in cold storage for forensic purposes — exactly as it is. You want the NSDs to go away until and unless you need them in the future. QUICK AND DIRTY - YOU SHOULD NOT DO THIS: Set the old file system to NOT mount automatically. Make sure it is unmounted everywhere(!!!!!). Make sure none of those NSDs are being used as quorum tie-breakers, etc. Print your resume. Unmap the LUNs. This will leave all of the information ABOUT the filesystem in the Spectrum Scale configuration, but it won’t be available. You’ll get a bunch of errors that the NSDs are gone. Lots of them. It will make starting up Spectrum Scale take a long time while it looks for and fails to find them. That will be mostly noise. I’m not sure how you could corrupt the file system when the LUNs are no longer accessible and there can’t be any writes pending. I have done this recently to keep an old file system around after a migration (the customer required an "A/B" switch when installing new storage). This was with a very old version of GPFS that could not be upgraded. I would not do this unless the time frame to keep this configuration is very short — I only did it because I didn’t have a choice. PROBABLY BETTER - READ THIS ONE TWICE: Take a look at mmexportfs (this was already suggested). The point of this command to to be able to carry the Spectrum Scale "configuration" for a file system AND the LUNs full of data around and plug them into a cluster later. I think a misunderstanding here led to your objection about this method: It doesn’t have to be a different cluster — you can use the same one it came from. The advantage to this approach is that it leaves you with a more hygienic cluster — no "missing" storage errors. The ONLY disadvantage that I can think of at the moment is that the file system configuration MIGHT have some lint removed during the import/export process. I’m not sure that *any* checking is done during the export, but I’d guess that the import involves at least some validation of the imported file. I hope. So if you think the file system *configuration* is wonky, you should call support and see if they will look at your export, or get a snap while you’ve still got the file system in your cluster. If you think that the *structure* of the file system on disk (or maybe just the copy method you’re using) might be wonky, then learn how to use mmexportfs. Note that the learning can certainly include asking questions here. When you want to look at the old file system again, you WILL have to re-map the LUNs, and use mmimportfs (and the file you made with mmexportfs). Then the file system will be part of your cluster again. STANDARD DISCLAIMERS APPLY: Your mileage may vary. Following this advice could cause nausea, vomiting, sweating, weight gain, sleeplessness, unemployment, weight loss, temporary tooth loss, redundancy, olfactory hallucinations, oozing (generalized), redundancy, uneven tire wear, excessive body oder, scoliosis, halitosis, ring worm, and intermittent acute ignorance. Good luck! :) Liberty, -- Stephen
On Jan 21, 2018, at 6:43 PM, Andrew Beattie <abeattie@au1.ibm.com <mailto:abeattie@au1.ibm.com>> wrote:
Harold,
How big is the old file system, Spectrum Scale is going to throw a bunch of errors if you remove the luns from the old file system while attempting to keep the file system "data" on the luns. its likely to cause you all sorts of errors and potential data corruption. Its not something that I would recommend.
Can you do a backup of the old filesystem so you can do a restore of data if you need to?
Regards, Andrew Beattie Software Defined Storage - IT Specialist Phone: 614-2133-7927 E-mail: abeattie@au1.ibm.com <mailto:abeattie@au1.ibm.com>
----- Original message ----- From: Harold Morales <hmorales@optimizeit.co <mailto:hmorales@optimizeit.co>> Sent by: gpfsug-discuss-bounces@spectrumscale.org <mailto:gpfsug-discuss-bounces@spectrumscale.org> To: gpfsug-discuss@spectrumscale.org <mailto:gpfsug-discuss@spectrumscale.org> Cc: Subject: [gpfsug-discuss] Removing LUN from host without unconfiguring GPFS filesystem Date: Mon, Jan 22, 2018 7:20 AM
Hello,
I have a GPFS cluster with two filesystems. The disks associated to one filesystem reside on an old storage and the other filesystem disks reside on a much more modern storage system. I have successfully moved data from one fs to the other but there are questions about data integrity that still need verification so the old filesystem needs somehow to be preserved.
My question is: Can I remove the old filesystem LUNs association to the NSDs servers without removing spectrum scale filesystems, so that later on, if necessary, I could associate them back and the old filesystem would be operating as normal? If possible: what would be the general steps to achieve this?
----- Thank you,
Harold.
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org <http://spectrumscale.org/> https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listi... <https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listi...>
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org <http://spectrumscale.org/> http://gpfsug.org/mailman/listinfo/gpfsug-discuss <http://gpfsug.org/mailman/listinfo/gpfsug-discuss>
On 22/01/18 03:41, Stephen Ulmer wrote:
Harold,
The way I read your question, no one has actually answered it fully:
You want to put the old file system in cold storage for forensic purposes — exactly as it is. You want the NSDs to go away until and unless you need them in the future.
Hum, I would have said I did answer it fully even if I didn't go into detail. The only in my view sensible approach is to do mmexportfs so that should you need access to the data then you can get to it by reimporting it using mmimportfs. In the interim you can unmap all the NSD's from the cluster without causing GPFS to go care in the slightest. Otherwise you are doing something that is in my view at the best fool hardy and more generally down right idiotic. Personally I would outright refuse to do it without someone else higher up signing a written disclaimer that I was not responsible should it all go pear shaped. Note that the mmexportfs takes a few seconds at most to complete, and likewise with the mmimport. I am however somewhat perplexed by the data integrity side of the issue. If you suspect the data is corrupt in the old file system then having it around for reference purposes is surely not going to help. What are you going to do mount it again to find the file is corrupt; how is that going to help? If you suspect that whatever method you used to move the files from the old file system to the new one may have introduced corruption, then I would suggest that the best way out of that is to do an rsync with the -c flag so that it takes an MD5 checksum of the files on both file systems. Once that is complete you can safely ditch the old file system completely knowing that you have recovered it as best as possible. You could probably kick a bunch of rsyncs of in parallel to speed this method up. In fact a "rsync -c" would be a gold standard of look it's absolutely the same on the old and new file systems and remove all doubts about the transfer introducing corruption. At that point if someone comes and says your transfer corrupted my files, you can with justification say they where corrupt in the old file system and I have done my best to transfer them over. Note if any user was deliberately creating MD5 collisions then they get everything they deserve in my view, and accidental collisions in MD5 are about as likely as ħ. JAB. -- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG
Thanks Stephen and Jonathan for pointing this important things out. Now I begin to understand the importance of mmimportfs/mmexportfs for operations like the one I discuss here. Will let you know how it goes. 2018-01-22 4:57 GMT-05:00 Jonathan Buzzard <jonathan.buzzard@strath.ac.uk>:
On 22/01/18 03:41, Stephen Ulmer wrote:
Harold,
The way I read your question, no one has actually answered it fully:
You want to put the old file system in cold storage for forensic purposes — exactly as it is. You want the NSDs to go away until and unless you need them in the future.
Hum, I would have said I did answer it fully even if I didn't go into detail. The only in my view sensible approach is to do mmexportfs so that should you need access to the data then you can get to it by reimporting it using mmimportfs. In the interim you can unmap all the NSD's from the cluster without causing GPFS to go care in the slightest.
Otherwise you are doing something that is in my view at the best fool hardy and more generally down right idiotic. Personally I would outright refuse to do it without someone else higher up signing a written disclaimer that I was not responsible should it all go pear shaped. Note that the mmexportfs takes a few seconds at most to complete, and likewise with the mmimport.
I am however somewhat perplexed by the data integrity side of the issue. If you suspect the data is corrupt in the old file system then having it around for reference purposes is surely not going to help. What are you going to do mount it again to find the file is corrupt; how is that going to help?
If you suspect that whatever method you used to move the files from the old file system to the new one may have introduced corruption, then I would suggest that the best way out of that is to do an rsync with the -c flag so that it takes an MD5 checksum of the files on both file systems. Once that is complete you can safely ditch the old file system completely knowing that you have recovered it as best as possible. You could probably kick a bunch of rsyncs of in parallel to speed this method up.
In fact a "rsync -c" would be a gold standard of look it's absolutely the same on the old and new file systems and remove all doubts about the transfer introducing corruption. At that point if someone comes and says your transfer corrupted my files, you can with justification say they where corrupt in the old file system and I have done my best to transfer them over. Note if any user was deliberately creating MD5 collisions then they get everything they deserve in my view, and accidental collisions in MD5 are about as likely as ħ.
JAB.
-- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
participants (4)
-
Andrew Beattie -
Harold Morales -
Jonathan Buzzard -
Stephen Ulmer
