Hi All, We are in the process of finalizing the purchase of some new storage arrays (so no sales people who might be monitoring this list need contact me) to life-cycle some older hardware. One of the things we are considering is the purchase of some new SSD’s for our “/home” filesystem and I have a question or two related to that. Currently, the existing home filesystem has it’s metadata on SSD’s … two RAID 1 mirrors and metadata replication set to two. However, the filesystem itself is old enough that it uses 512 byte inodes. We have analyzed our users files and know that if we create a new filesystem with 4K inodes that a very significant portion of the files would now have their _data_ stored in the inode as well due to the files being 3.5K or smaller (currently all data is on spinning HD RAID 1 mirrors). Of course, if we increase the size of the inodes by a factor of 8 then we also need 8 times as much space to store those inodes. Given that Enterprise class SSDs are still very expensive and our budget is not unlimited, we’re trying to get the best bang for the buck. We have always - even back in the day when our metadata was on spinning disk and not SSD - used RAID 1 mirrors and metadata replication of two. However, we are wondering if it might be possible to switch to RAID 5? Specifically, what we are considering doing is buying 8 new SSDs and creating two 3+1P RAID 5 LUNs (metadata replication would stay at two). That would give us 50% more usable space than if we configured those same 8 drives as four RAID 1 mirrors. Unfortunately, unless I’m misunderstanding something, mean that the RAID stripe size and the GPFS block size could not match. Therefore, even though we don’t need the space, would we be much better off to buy 10 SSDs and create two 4+1P RAID 5 LUNs? I’ve searched the mailing list archives and scanned the DeveloperWorks wiki and even glanced at the GPFS documentation and haven’t found anything that says “bad idea, Kevin”… ;-) Expanding on this further … if we just present those two RAID 5 LUNs to GPFS as NSDs then we can only have two NSD servers as primary for them. So another thing we’re considering is to take those RAID 5 LUNs and further sub-divide them into a total of 8 logical volumes, each of which could be a GPFS NSD and therefore would allow us to have each of our 8 NSD servers be primary for one of them. Even worse idea?!? Good idea? Anybody have any better ideas??? ;-) Oh, and currently we’re on GPFS 4.2.3-10, but are also planning on moving to GPFS 5.0.1-x before creating the new filesystem. Thanks much… — Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu<mailto:Kevin.Buterbaugh@vanderbilt.edu> - (615)875-9633
I agree with Anderson on his thoughts, mainly that if you want to go with RAID5 then you should analyze your current workload to see if it is mostly read operations or if you have more of a heavy write situation. Read-modify-write penalties and write amplification wearing problems on SSDs will become an issue for performance and life of the SSDs if you have a heavy metadata write workload. This also applies to the data in inode situation. The current workload can be inspected with standard iostat, mmdiag --iohist, mmpmon, and the GPFS perfmon stuff. We have SSDs in both RAID1 (metadata) and RAID5 configurations (data). We’re using the RAID controllers to split up the RAID sets into multiple virtual volumes so that we can have more NSD servers hosting the storage and increase the number of I/O commands (aka queue depth x N LUNs > queue depth x 1 LUN) being sent to the storage. Since there isn’t a seek penalty this is working well for us. As mentioned below, be sure to round-robin the ServerList for the NSDs to spread the load across servers. Hope that helps! -Bryan From: gpfsug-discuss-bounces@spectrumscale.org <gpfsug-discuss-bounces@spectrumscale.org> On Behalf Of Anderson Ferreira Nobre Sent: Wednesday, September 5, 2018 11:51 AM To: gpfsug-discuss@spectrumscale.org Cc: gpfsug-discuss@spectrumscale.org Subject: Re: [gpfsug-discuss] RAID type for system pool Note: External Email ________________________________ Hi Kevin, RAID5 is good when the read ratio of I/Os is 70% or more. About creating two RAID5 you need to consider the size of the disks and the time to rebuild the RAID in case of failure. Maybe a single RAID5 would be better because you have more disks working in the backend for a single RAID. I think since if you are using SSD disks the time to rebuild the RAID will always be fast. So you wouldn't need a RAID6. Maybe it's a good idea to read the manual of SAS RAID controller to see how long takes to rebuild the RAID in case of a failure. About the stripe size of controller vs block size in GPFS. This is just a guess, and you would need to do some performance test to make sure. You could consider the stripe width of RAID to be the block size of metadata. I think this is the best you can do. Break in several LUNs I consider a good idea for you don't have large queue length in the LUNs. Specially if the I/O profile is many I/O with small block size. About balance the LUNs over the NSD Servers is a best practice. Do not leave all the LUNs pointing to the first node. Just remember that when you create the NSDs, the device is always corresponding to the first node of servers. This can be laborous work. So to make the things easier I create two NSD stanza files. The first one pointing to the first node like this: %nsd device=/dev/mapper/mpatha nsd=nsd001 servers=host1,host2,host3,host4 usage=metadataOnly failureGroup=1 pool=system %nsd device=/dev/mapper/mpathb nsd=nsd002 servers= servers=host1,host2,host3,host4 usage=metadataOnly failureGroup=1 pool=system Then I use this stanza file to create the nsds. And create a second stanza file: %nsd nsd=nsd001 servers=host1,host2,host3,host4 usage=metadataOnly failureGroup=1 pool=system %nsd nsd=nsd002 servers=host2,host3,host4,host1 usage=metadataOnly failureGroup=1 pool=system And change with mmchnsd. Abraços / Regards / Saludos, Anderson Nobre AIX & Power Consultant Master Certified IT Specialist IBM Systems Hardware Client Technical Team – IBM Systems Lab Services [community_general_lab_services] ________________________________ Phone: 55-19-2132-4317 E-mail: anobre@br.ibm.com<mailto:anobre@br.ibm.com> [IBM] ----- Original message ----- From: "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu<mailto:Kevin.Buterbaugh@Vanderbilt.Edu>> Sent by: gpfsug-discuss-bounces@spectrumscale.org<mailto:gpfsug-discuss-bounces@spectrumscale.org> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>> Cc: Subject: [gpfsug-discuss] RAID type for system pool Date: Wed, Sep 5, 2018 12:35 PM Hi All, We are in the process of finalizing the purchase of some new storage arrays (so no sales people who might be monitoring this list need contact me) to life-cycle some older hardware. One of the things we are considering is the purchase of some new SSD’s for our “/home” filesystem and I have a question or two related to that. Currently, the existing home filesystem has it’s metadata on SSD’s … two RAID 1 mirrors and metadata replication set to two. However, the filesystem itself is old enough that it uses 512 byte inodes. We have analyzed our users files and know that if we create a new filesystem with 4K inodes that a very significant portion of the files would now have their _data_ stored in the inode as well due to the files being 3.5K or smaller (currently all data is on spinning HD RAID 1 mirrors). Of course, if we increase the size of the inodes by a factor of 8 then we also need 8 times as much space to store those inodes. Given that Enterprise class SSDs are still very expensive and our budget is not unlimited, we’re trying to get the best bang for the buck. We have always - even back in the day when our metadata was on spinning disk and not SSD - used RAID 1 mirrors and metadata replication of two. However, we are wondering if it might be possible to switch to RAID 5? Specifically, what we are considering doing is buying 8 new SSDs and creating two 3+1P RAID 5 LUNs (metadata replication would stay at two). That would give us 50% more usable space than if we configured those same 8 drives as four RAID 1 mirrors. Unfortunately, unless I’m misunderstanding something, mean that the RAID stripe size and the GPFS block size could not match. Therefore, even though we don’t need the space, would we be much better off to buy 10 SSDs and create two 4+1P RAID 5 LUNs? I’ve searched the mailing list archives and scanned the DeveloperWorks wiki and even glanced at the GPFS documentation and haven’t found anything that says “bad idea, Kevin”… ;-) Expanding on this further … if we just present those two RAID 5 LUNs to GPFS as NSDs then we can only have two NSD servers as primary for them. So another thing we’re considering is to take those RAID 5 LUNs and further sub-divide them into a total of 8 logical volumes, each of which could be a GPFS NSD and therefore would allow us to have each of our 8 NSD servers be primary for one of them. Even worse idea?!? Good idea? Anybody have any better ideas??? ;-) Oh, and currently we’re on GPFS 4.2.3-10, but are also planning on moving to GPFS 5.0.1-x before creating the new filesystem. Thanks much… — Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu<mailto:Kevin.Buterbaugh@vanderbilt.edu> - (615)875-9633 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss ________________________________ Note: This email is for the confidential use of the named addressee(s) only and may contain proprietary, confidential, or privileged information and/or personal data. If you are not the intended recipient, you are hereby notified that any review, dissemination, or copying of this email is strictly prohibited, and requested to notify the sender immediately and destroy this email and any attachments. Email transmission cannot be guaranteed to be secure or error-free. The Company, therefore, does not make any guarantees as to the completeness or accuracy of this email or any attachments. This email is for informational purposes only and does not constitute a recommendation, offer, request, or solicitation of any kind to buy, sell, subscribe, redeem, or perform any type of transaction of a financial product. Personal data, as defined by applicable data privacy laws, contained in this email may be processed by the Company, and any of its affiliated or related companies, for potential ongoing compliance and/or business-related purposes. You may have rights regarding your personal data; for information on exercising these rights or the Company’s treatment of personal data, please email datarequests@jumptrading.com.
It's good to try to reason and think this out... But there's a good likelihood that we don't understand ALL the details, some of which may negatively impact performance - so no matter what scheme you come up with - test, test, and re-test before deploying and depending on it in production. Having said that, I'm pretty sure that old "spinning" RAID 5 implementations had horrible performance for GPFS metadata/system pool. Why? Among other things, the large stripe size vs the almost random small writes directed to system pool. That random-small-writes pattern won't change when we go to SSD RAID 5 - so you'd have to see if the SSD implementation is somehow smarter than an old fashioned RAID 5 implementation which I believe requires several physical reads and writes, for each "small" logical write. (Top decent google result I found quickly http://rickardnobel.se/raid-5-write-penalty/ But you will probably want to do more research!) Consider GPFS small write performance for: inode updates, log writes, small files (possibly in inode), directory updates, allocation map updates, index of indirect blocks. From: "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 09/05/2018 11:36 AM Subject: [gpfsug-discuss] RAID type for system pool Sent by: gpfsug-discuss-bounces@spectrumscale.org Hi All, We are in the process of finalizing the purchase of some new storage arrays (so no sales people who might be monitoring this list need contact me) to life-cycle some older hardware. One of the things we are considering is the purchase of some new SSD’s for our “/home” filesystem and I have a question or two related to that. Currently, the existing home filesystem has it’s metadata on SSD’s … two RAID 1 mirrors and metadata replication set to two. However, the filesystem itself is old enough that it uses 512 byte inodes. We have analyzed our users files and know that if we create a new filesystem with 4K inodes that a very significant portion of the files would now have their _data_ stored in the inode as well due to the files being 3.5K or smaller (currently all data is on spinning HD RAID 1 mirrors). Of course, if we increase the size of the inodes by a factor of 8 then we also need 8 times as much space to store those inodes. Given that Enterprise class SSDs are still very expensive and our budget is not unlimited, we’re trying to get the best bang for the buck. We have always - even back in the day when our metadata was on spinning disk and not SSD - used RAID 1 mirrors and metadata replication of two. However, we are wondering if it might be possible to switch to RAID 5? Specifically, what we are considering doing is buying 8 new SSDs and creating two 3+1P RAID 5 LUNs (metadata replication would stay at two). That would give us 50% more usable space than if we configured those same 8 drives as four RAID 1 mirrors. Unfortunately, unless I’m misunderstanding something, mean that the RAID stripe size and the GPFS block size could not match. Therefore, even though we don’t need the space, would we be much better off to buy 10 SSDs and create two 4+1P RAID 5 LUNs? I’ve searched the mailing list archives and scanned the DeveloperWorks wiki and even glanced at the GPFS documentation and haven’t found anything that says “bad idea, Kevin”… ;-) Expanding on this further … if we just present those two RAID 5 LUNs to GPFS as NSDs then we can only have two NSD servers as primary for them. So another thing we’re considering is to take those RAID 5 LUNs and further sub-divide them into a total of 8 logical volumes, each of which could be a GPFS NSD and therefore would allow us to have each of our 8 NSD servers be primary for one of them. Even worse idea?!? Good idea? Anybody have any better ideas??? ;-) Oh, and currently we’re on GPFS 4.2.3-10, but are also planning on moving to GPFS 5.0.1-x before creating the new filesystem. Thanks much… — Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu - (615)875-9633 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Another option for saving space is to not keep 2 copies of the metadata within GPFS. The SSDs are mirrored so you have two copies though very likely they share a possible single point of failure and that could be a deal breaker. I have my doubts that RAID5 will perform well for the reasons Marc described but worth testing to see how it does perform. If you do test I presume you would also run equivalent tests with a RAID1 (mirrored) configuration. Regarding your point about making multiple volumes that would become GPFS NSDs for metadata. It has been my experience that for traditional RAID systems it is better to have many small metadata LUNs (more IO paths) then a few large metadata LUNs. This becomes less of an issue with ESS, i.e. there you can have a few metadata NSDs yet still get very good performance. Fred __________________________________________________ Fred Stock | IBM Pittsburgh Lab | 720-430-8821 stockf@us.ibm.com From: "Marc A Kaplan" <makaplan@us.ibm.com> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 09/05/2018 01:22 PM Subject: Re: [gpfsug-discuss] RAID type for system pool Sent by: gpfsug-discuss-bounces@spectrumscale.org It's good to try to reason and think this out... But there's a good likelihood that we don't understand ALL the details, some of which may negatively impact performance - so no matter what scheme you come up with - test, test, and re-test before deploying and depending on it in production. Having said that, I'm pretty sure that old "spinning" RAID 5 implementations had horrible performance for GPFS metadata/system pool. Why? Among other things, the large stripe size vs the almost random small writes directed to system pool. That random-small-writes pattern won't change when we go to SSD RAID 5 - so you'd have to see if the SSD implementation is somehow smarter than an old fashioned RAID 5 implementation which I believe requires several physical reads and writes, for each "small" logical write. (Top decent google result I found quickly http://rickardnobel.se/raid-5-write-penalty/But you will probably want to do more research!) Consider GPFS small write performance for: inode updates, log writes, small files (possibly in inode), directory updates, allocation map updates, index of indirect blocks. From: "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 09/05/2018 11:36 AM Subject: [gpfsug-discuss] RAID type for system pool Sent by: gpfsug-discuss-bounces@spectrumscale.org Hi All, We are in the process of finalizing the purchase of some new storage arrays (so no sales people who might be monitoring this list need contact me) to life-cycle some older hardware. One of the things we are considering is the purchase of some new SSD’s for our “/home” filesystem and I have a question or two related to that. Currently, the existing home filesystem has it’s metadata on SSD’s … two RAID 1 mirrors and metadata replication set to two. However, the filesystem itself is old enough that it uses 512 byte inodes. We have analyzed our users files and know that if we create a new filesystem with 4K inodes that a very significant portion of the files would now have their _data_ stored in the inode as well due to the files being 3.5K or smaller (currently all data is on spinning HD RAID 1 mirrors). Of course, if we increase the size of the inodes by a factor of 8 then we also need 8 times as much space to store those inodes. Given that Enterprise class SSDs are still very expensive and our budget is not unlimited, we’re trying to get the best bang for the buck. We have always - even back in the day when our metadata was on spinning disk and not SSD - used RAID 1 mirrors and metadata replication of two. However, we are wondering if it might be possible to switch to RAID 5? Specifically, what we are considering doing is buying 8 new SSDs and creating two 3+1P RAID 5 LUNs (metadata replication would stay at two). That would give us 50% more usable space than if we configured those same 8 drives as four RAID 1 mirrors. Unfortunately, unless I’m misunderstanding something, mean that the RAID stripe size and the GPFS block size could not match. Therefore, even though we don’t need the space, would we be much better off to buy 10 SSDs and create two 4+1P RAID 5 LUNs? I’ve searched the mailing list archives and scanned the DeveloperWorks wiki and even glanced at the GPFS documentation and haven’t found anything that says “bad idea, Kevin”… ;-) Expanding on this further … if we just present those two RAID 5 LUNs to GPFS as NSDs then we can only have two NSD servers as primary for them. So another thing we’re considering is to take those RAID 5 LUNs and further sub-divide them into a total of 8 logical volumes, each of which could be a GPFS NSD and therefore would allow us to have each of our 8 NSD servers be primary for one of them. Even worse idea?!? Good idea? Anybody have any better ideas??? ;-) Oh, and currently we’re on GPFS 4.2.3-10, but are also planning on moving to GPFS 5.0.1-x before creating the new filesystem. Thanks much… — Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu- (615)875-9633 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Hi All, Wow - my query got more responses than I expected and my sincere thanks to all who took the time to respond! At this point in time we do have two GPFS filesystems … one which is basically “/home” and some software installations and the other which is “/scratch” and “/data” (former backed up, latter not). Both of them have their metadata on SSDs set up as RAID 1 mirrors and replication set to two. But at this point in time all of the SSDs are in a single storage array (albeit with dual redundant controllers) … so the storage array itself is my only SPOF. As part of the hardware purchase we are in the process of making we will be buying a 2nd storage array that can house 2.5” SSDs. Therefore, we will be splitting our SSDs between chassis and eliminating that last SPOF. Of course, this includes the new SSDs we are getting for our new /home filesystem. Our plan right now is to buy 10 SSDs, which will allow us to test 3 configurations: 1) two 4+1P RAID 5 LUNs split up into a total of 8 LV’s (with each of my 8 NSD servers as primary for one of those LV’s and the other 7 as backups) and GPFS metadata replication set to 2. 2) four RAID 1 mirrors (which obviously leaves 2 SSDs unused) and GPFS metadata replication set to 2. This would mean that only 4 of my 8 NSD servers would be a primary. 3) nine RAID 0 / bare drives with GPFS metadata replication set to 3 (which leaves 1 SSD unused). All 8 NSD servers primary for one SSD and 1 serving up two. The responses I received concerning RAID 5 and performance were not a surprise to me. The main advantage that option gives is the most usable storage space for the money (in fact, it gives us way more storage space than we currently need) … but if it tanks performance, then that’s a deal breaker. Personally, I like the four RAID 1 mirrors config like we’ve been using for years, but it has the disadvantage of giving us the least usable storage space … that config would give us the minimum we need for right now, but doesn’t really allow for much future growth. I have no experience with metadata replication of 3 (but had actually thought of that option, so feel good that others suggested it) so option 3 will be a brand new experience for us. It is the most optimal in terms of meeting current needs plus allowing for future growth without giving us way more space than we are likely to need). I will be curious to see how long it takes GPFS to re-replicate the data when we simulate a drive failure as opposed to how long a RAID rebuild takes. I am a big believer in Murphy’s Law (Sunday I paid off a bill, Wednesday my refrigerator died!) … and also believe that the definition of a pessimist is “someone with experience” <grin> … so we will definitely not set GPFS metadata replication to less than two, nor will we use non-Enterprise class SSDs for metadata … but I do still appreciate the suggestions. If there is interest, I will report back on our findings. If anyone has any additional thoughts or suggestions, I’d also appreciate hearing them. Again, thank you! Kevin — Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu<mailto:Kevin.Buterbaugh@vanderbilt.edu> - (615)875-9633
I have questions about how the GPFS metadata replication of 3 works. 1. Is it basically the same as replication of 2 but just have one more copy, making recovery much more likely? 1. If there is nothing that is checking that the data was correctly read off of the device (e.g. CRC checking ON READS like the DDNs do, T10PI or Data Integrity Field) then how does GPFS handle a corrupted read of the data? - unlikely with SSD but head could be off on a NLSAS read, no errors, but you get some garbage instead, plus no auto retries 1. Does GPFS read at least two of the three replicas and compares them to ensure the data is correct? - expensive operation, so very unlikely 1. If not reading multiple replicas for comparison, are reads round robin across all three copies? 1. If one replica is corrupted (bad blocks) what does GPFS do to recover this metadata copy? Is this automatic or does this require a manual `mmrestripefs -c` operation or something? - If not, seems like a pretty simple idea and maybe an RFE worthy submission 1. Would the idea of an option to run “background scrub/verifies” of the data/metadata be worthwhile to ensure no hidden bad blocks? - Using QoS this should be relatively painless 1. With a drive failure do you have to delete the NSD from the file system and cluster, recreate the NSD, add it back to the FS, then again run the `mmrestripefs -c` operation to restore the replication? - As Kevin mentions this will end up being a FULL file system scan vs. a block-based scan and replication. That could take a long time depending on number of inodes and type of storage! Thanks for any insight, -Bryan From: gpfsug-discuss-bounces@spectrumscale.org <gpfsug-discuss-bounces@spectrumscale.org> On Behalf Of Buterbaugh, Kevin L Sent: Thursday, September 6, 2018 9:59 AM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] RAID type for system pool Note: External Email ________________________________ Hi All, Wow - my query got more responses than I expected and my sincere thanks to all who took the time to respond! At this point in time we do have two GPFS filesystems … one which is basically “/home” and some software installations and the other which is “/scratch” and “/data” (former backed up, latter not). Both of them have their metadata on SSDs set up as RAID 1 mirrors and replication set to two. But at this point in time all of the SSDs are in a single storage array (albeit with dual redundant controllers) … so the storage array itself is my only SPOF. As part of the hardware purchase we are in the process of making we will be buying a 2nd storage array that can house 2.5” SSDs. Therefore, we will be splitting our SSDs between chassis and eliminating that last SPOF. Of course, this includes the new SSDs we are getting for our new /home filesystem. Our plan right now is to buy 10 SSDs, which will allow us to test 3 configurations: 1) two 4+1P RAID 5 LUNs split up into a total of 8 LV’s (with each of my 8 NSD servers as primary for one of those LV’s and the other 7 as backups) and GPFS metadata replication set to 2. 2) four RAID 1 mirrors (which obviously leaves 2 SSDs unused) and GPFS metadata replication set to 2. This would mean that only 4 of my 8 NSD servers would be a primary. 3) nine RAID 0 / bare drives with GPFS metadata replication set to 3 (which leaves 1 SSD unused). All 8 NSD servers primary for one SSD and 1 serving up two. The responses I received concerning RAID 5 and performance were not a surprise to me. The main advantage that option gives is the most usable storage space for the money (in fact, it gives us way more storage space than we currently need) … but if it tanks performance, then that’s a deal breaker. Personally, I like the four RAID 1 mirrors config like we’ve been using for years, but it has the disadvantage of giving us the least usable storage space … that config would give us the minimum we need for right now, but doesn’t really allow for much future growth. I have no experience with metadata replication of 3 (but had actually thought of that option, so feel good that others suggested it) so option 3 will be a brand new experience for us. It is the most optimal in terms of meeting current needs plus allowing for future growth without giving us way more space than we are likely to need). I will be curious to see how long it takes GPFS to re-replicate the data when we simulate a drive failure as opposed to how long a RAID rebuild takes. I am a big believer in Murphy’s Law (Sunday I paid off a bill, Wednesday my refrigerator died!) … and also believe that the definition of a pessimist is “someone with experience” <grin> … so we will definitely not set GPFS metadata replication to less than two, nor will we use non-Enterprise class SSDs for metadata … but I do still appreciate the suggestions. If there is interest, I will report back on our findings. If anyone has any additional thoughts or suggestions, I’d also appreciate hearing them. Again, thank you! Kevin — Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu<mailto:Kevin.Buterbaugh@vanderbilt.edu> - (615)875-9633 ________________________________ Note: This email is for the confidential use of the named addressee(s) only and may contain proprietary, confidential, or privileged information and/or personal data. If you are not the intended recipient, you are hereby notified that any review, dissemination, or copying of this email is strictly prohibited, and requested to notify the sender immediately and destroy this email and any attachments. Email transmission cannot be guaranteed to be secure or error-free. The Company, therefore, does not make any guarantees as to the completeness or accuracy of this email or any attachments. This email is for informational purposes only and does not constitute a recommendation, offer, request, or solicitation of any kind to buy, sell, subscribe, redeem, or perform any type of transaction of a financial product. Personal data, as defined by applicable data privacy laws, contained in this email may be processed by the Company, and any of its affiliated or related companies, for potential ongoing compliance and/or business-related purposes. You may have rights regarding your personal data; for information on exercising these rights or the Company’s treatment of personal data, please email datarequests@jumptrading.com.
Answers inline based on my recollection of experiences we've had here: On 9/6/18 12:19 PM, Bryan Banister wrote:
I have questions about how the GPFS metadata replication of 3 works.
1. Is it basically the same as replication of 2 but just have one more copy, making recovery much more likely?
That's my understanding.
2. If there is nothing that is checking that the data was correctly read off of the device (e.g. CRC checking ON READS like the DDNs do, T10PI or Data Integrity Field) then how does GPFS handle a corrupted read of the data? - unlikely with SSD but head could be off on a NLSAS read, no errors, but you get some garbage instead, plus no auto retries
The inode itself is checksummed: # /usr/lpp/mmfs/bin/tsdbfs mysuperawesomespacefs Enter command or null to read next sector. Type ? for help. inode 20087366 Inode 20087366 [20087366] snap 0 (index 582 in block 9808): Inode address: 30:263275078 32:263264838 size 512 nAddrs 32 indirectionLevel=3 status=USERFILE objectVersion=49352 generation=0x2B519B3 nlink=1 owner uid=8675309 gid=999 mode=0200100600: -rw------- blocksize code=5 (32 subblocks) lastBlockSubblocks=1 checksum=0xF2EF3427 is Valid ... Disk pointers [32]: 0: 31:217629376 1: 30:217632960 2: (null) ... 31: (null) as are indirect blocks (I'm sure that's not an exhaustive list of checksummed metadata structures): ind 31:217629376 Indirect block starting in sector 31:217629376: magic=0x112DF307 generation=0x2B519B3 blockNum=0 inodeNum=20087366 indirection level=2 checksum=0x6BDAA92A CalcChecksum(0x5B6DC9FC000, 32768, 20)=0x6BDAA92A Data pointers:
3. Does GPFS read at least two of the three replicas and compares them to ensure the data is correct? - expensive operation, so very unlikely
I don't know, but I do know it verifies the checksum and I believe if that's wrong it will try another replica.
4. If not reading multiple replicas for comparison, are reads round robin across all three copies?
I feel like we see pretty even distribution of reads across all replicas of our metadata LUNs, although this is looking overall at the array level so it may be a red herring.
5. If one replica is corrupted (bad blocks) what does GPFS do to recover this metadata copy? Is this automatic or does this require a manual `mmrestripefs -c` operation or something? - If not, seems like a pretty simple idea and maybe an RFE worthy submission
My experience has been it will attempt to correct it (and maybe log an fsstruct error?). This was in the 3.5 days, though.
6. Would the idea of an option to run “background scrub/verifies” of the data/metadata be worthwhile to ensure no hidden bad blocks? - Using QoS this should be relatively painless
If you don't have array-level background scrubbing, this is what I'd suggest. (e.g. mmrestripefs -c --metadata-only).
7. With a drive failure do you have to delete the NSD from the file system and cluster, recreate the NSD, add it back to the FS, then again run the `mmrestripefs -c` operation to restore the replication? - As Kevin mentions this will end up being a FULL file system scan vs. a block-based scan and replication. That could take a long time depending on number of inodes and type of storage!
Thanks for any insight,
-Bryan
*From:* gpfsug-discuss-bounces@spectrumscale.org <gpfsug-discuss-bounces@spectrumscale.org> *On Behalf Of *Buterbaugh, Kevin L *Sent:* Thursday, September 6, 2018 9:59 AM *To:* gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> *Subject:* Re: [gpfsug-discuss] RAID type for system pool
/Note: External Email/
------------------------------------------------------------------------
Hi All,
Wow - my query got more responses than I expected and my sincere thanks to all who took the time to respond!
At this point in time we do have two GPFS filesystems … one which is basically “/home” and some software installations and the other which is “/scratch” and “/data” (former backed up, latter not). Both of them have their metadata on SSDs set up as RAID 1 mirrors and replication set to two. But at this point in time all of the SSDs are in a single storage array (albeit with dual redundant controllers) … so the storage array itself is my only SPOF.
As part of the hardware purchase we are in the process of making we will be buying a 2nd storage array that can house 2.5” SSDs. Therefore, we will be splitting our SSDs between chassis and eliminating that last SPOF. Of course, this includes the new SSDs we are getting for our new /home filesystem.
Our plan right now is to buy 10 SSDs, which will allow us to test 3 configurations:
1) two 4+1P RAID 5 LUNs split up into a total of 8 LV’s (with each of my 8 NSD servers as primary for one of those LV’s and the other 7 as backups) and GPFS metadata replication set to 2.
2) four RAID 1 mirrors (which obviously leaves 2 SSDs unused) and GPFS metadata replication set to 2. This would mean that only 4 of my 8 NSD servers would be a primary.
3) nine RAID 0 / bare drives with GPFS metadata replication set to 3 (which leaves 1 SSD unused). All 8 NSD servers primary for one SSD and 1 serving up two.
The responses I received concerning RAID 5 and performance were not a surprise to me. The main advantage that option gives is the most usable storage space for the money (in fact, it gives us way more storage space than we currently need) … but if it tanks performance, then that’s a deal breaker.
Personally, I like the four RAID 1 mirrors config like we’ve been using for years, but it has the disadvantage of giving us the least usable storage space … that config would give us the minimum we need for right now, but doesn’t really allow for much future growth.
I have no experience with metadata replication of 3 (but had actually thought of that option, so feel good that others suggested it) so option 3 will be a brand new experience for us. It is the most optimal in terms of meeting current needs plus allowing for future growth without giving us way more space than we are likely to need). I will be curious to see how long it takes GPFS to re-replicate the data when we simulate a drive failure as opposed to how long a RAID rebuild takes.
I am a big believer in Murphy’s Law (Sunday I paid off a bill, Wednesday my refrigerator died!) … and also believe that the definition of a pessimist is “someone with experience” <grin> … so we will definitely not set GPFS metadata replication to less than two, nor will we use non-Enterprise class SSDs for metadata … but I do still appreciate the suggestions.
If there is interest, I will report back on our findings. If anyone has any additional thoughts or suggestions, I’d also appreciate hearing them. Again, thank you!
Kevin
—
Kevin Buterbaugh - Senior System Administrator
Vanderbilt University - Advanced Computing Center for Research and Education
Kevin.Buterbaugh@vanderbilt.edu <mailto:Kevin.Buterbaugh@vanderbilt.edu> - (615)875-9633
------------------------------------------------------------------------
Note: This email is for the confidential use of the named addressee(s) only and may contain proprietary, confidential, or privileged information and/or personal data. If you are not the intended recipient, you are hereby notified that any review, dissemination, or copying of this email is strictly prohibited, and requested to notify the sender immediately and destroy this email and any attachments. Email transmission cannot be guaranteed to be secure or error-free. The Company, therefore, does not make any guarantees as to the completeness or accuracy of this email or any attachments. This email is for informational purposes only and does not constitute a recommendation, offer, request, or solicitation of any kind to buy, sell, subscribe, redeem, or perform any type of transaction of a financial product. Personal data, as defined by applicable data privacy laws, contained in this email may be processed by the Company, and any of its affiliated or related companies, for potential ongoing compliance and/or business-related purposes. You may have rights regarding your personal data; for information on exercising these rights or the Company’s treatment of personal data, please email datarequests@jumptrading.com.
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- Aaron Knister NASA Center for Climate Simulation (Code 606.2) Goddard Space Flight Center (301) 286-2776
I thought reads were always round robin's (in some form) unless you set readreplicapolicy. And I thought with fsstruct you had to use mmfsck offline to fix. Simon ________________________________________ From: gpfsug-discuss-bounces@spectrumscale.org [gpfsug-discuss-bounces@spectrumscale.org] on behalf of Aaron Knister [aaron.s.knister@nasa.gov] Sent: 06 September 2018 18:06 To: gpfsug-discuss@spectrumscale.org Subject: Re: [gpfsug-discuss] RAID type for system pool Answers inline based on my recollection of experiences we've had here: On 9/6/18 12:19 PM, Bryan Banister wrote:
I have questions about how the GPFS metadata replication of 3 works.
1. Is it basically the same as replication of 2 but just have one more copy, making recovery much more likely?
That's my understanding.
2. If there is nothing that is checking that the data was correctly read off of the device (e.g. CRC checking ON READS like the DDNs do, T10PI or Data Integrity Field) then how does GPFS handle a corrupted read of the data? - unlikely with SSD but head could be off on a NLSAS read, no errors, but you get some garbage instead, plus no auto retries
The inode itself is checksummed: # /usr/lpp/mmfs/bin/tsdbfs mysuperawesomespacefs Enter command or null to read next sector. Type ? for help. inode 20087366 Inode 20087366 [20087366] snap 0 (index 582 in block 9808): Inode address: 30:263275078 32:263264838 size 512 nAddrs 32 indirectionLevel=3 status=USERFILE objectVersion=49352 generation=0x2B519B3 nlink=1 owner uid=8675309 gid=999 mode=0200100600: -rw------- blocksize code=5 (32 subblocks) lastBlockSubblocks=1 checksum=0xF2EF3427 is Valid ... Disk pointers [32]: 0: 31:217629376 1: 30:217632960 2: (null) ... 31: (null) as are indirect blocks (I'm sure that's not an exhaustive list of checksummed metadata structures): ind 31:217629376 Indirect block starting in sector 31:217629376: magic=0x112DF307 generation=0x2B519B3 blockNum=0 inodeNum=20087366 indirection level=2 checksum=0x6BDAA92A CalcChecksum(0x5B6DC9FC000, 32768, 20)=0x6BDAA92A Data pointers:
3. Does GPFS read at least two of the three replicas and compares them to ensure the data is correct? - expensive operation, so very unlikely
I don't know, but I do know it verifies the checksum and I believe if that's wrong it will try another replica.
4. If not reading multiple replicas for comparison, are reads round robin across all three copies?
I feel like we see pretty even distribution of reads across all replicas of our metadata LUNs, although this is looking overall at the array level so it may be a red herring.
5. If one replica is corrupted (bad blocks) what does GPFS do to recover this metadata copy? Is this automatic or does this require a manual `mmrestripefs -c` operation or something? - If not, seems like a pretty simple idea and maybe an RFE worthy submission
My experience has been it will attempt to correct it (and maybe log an fsstruct error?). This was in the 3.5 days, though.
6. Would the idea of an option to run “background scrub/verifies” of the data/metadata be worthwhile to ensure no hidden bad blocks? - Using QoS this should be relatively painless
If you don't have array-level background scrubbing, this is what I'd suggest. (e.g. mmrestripefs -c --metadata-only).
7. With a drive failure do you have to delete the NSD from the file system and cluster, recreate the NSD, add it back to the FS, then again run the `mmrestripefs -c` operation to restore the replication? - As Kevin mentions this will end up being a FULL file system scan vs. a block-based scan and replication. That could take a long time depending on number of inodes and type of storage!
Thanks for any insight,
-Bryan
*From:* gpfsug-discuss-bounces@spectrumscale.org <gpfsug-discuss-bounces@spectrumscale.org> *On Behalf Of *Buterbaugh, Kevin L *Sent:* Thursday, September 6, 2018 9:59 AM *To:* gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> *Subject:* Re: [gpfsug-discuss] RAID type for system pool
/Note: External Email/
------------------------------------------------------------------------
Hi All,
Wow - my query got more responses than I expected and my sincere thanks to all who took the time to respond!
At this point in time we do have two GPFS filesystems … one which is basically “/home” and some software installations and the other which is “/scratch” and “/data” (former backed up, latter not). Both of them have their metadata on SSDs set up as RAID 1 mirrors and replication set to two. But at this point in time all of the SSDs are in a single storage array (albeit with dual redundant controllers) … so the storage array itself is my only SPOF.
As part of the hardware purchase we are in the process of making we will be buying a 2nd storage array that can house 2.5” SSDs. Therefore, we will be splitting our SSDs between chassis and eliminating that last SPOF. Of course, this includes the new SSDs we are getting for our new /home filesystem.
Our plan right now is to buy 10 SSDs, which will allow us to test 3 configurations:
1) two 4+1P RAID 5 LUNs split up into a total of 8 LV’s (with each of my 8 NSD servers as primary for one of those LV’s and the other 7 as backups) and GPFS metadata replication set to 2.
2) four RAID 1 mirrors (which obviously leaves 2 SSDs unused) and GPFS metadata replication set to 2. This would mean that only 4 of my 8 NSD servers would be a primary.
3) nine RAID 0 / bare drives with GPFS metadata replication set to 3 (which leaves 1 SSD unused). All 8 NSD servers primary for one SSD and 1 serving up two.
The responses I received concerning RAID 5 and performance were not a surprise to me. The main advantage that option gives is the most usable storage space for the money (in fact, it gives us way more storage space than we currently need) … but if it tanks performance, then that’s a deal breaker.
Personally, I like the four RAID 1 mirrors config like we’ve been using for years, but it has the disadvantage of giving us the least usable storage space … that config would give us the minimum we need for right now, but doesn’t really allow for much future growth.
I have no experience with metadata replication of 3 (but had actually thought of that option, so feel good that others suggested it) so option 3 will be a brand new experience for us. It is the most optimal in terms of meeting current needs plus allowing for future growth without giving us way more space than we are likely to need). I will be curious to see how long it takes GPFS to re-replicate the data when we simulate a drive failure as opposed to how long a RAID rebuild takes.
I am a big believer in Murphy’s Law (Sunday I paid off a bill, Wednesday my refrigerator died!) … and also believe that the definition of a pessimist is “someone with experience” <grin> … so we will definitely not set GPFS metadata replication to less than two, nor will we use non-Enterprise class SSDs for metadata … but I do still appreciate the suggestions.
If there is interest, I will report back on our findings. If anyone has any additional thoughts or suggestions, I’d also appreciate hearing them. Again, thank you!
Kevin
—
Kevin Buterbaugh - Senior System Administrator
Vanderbilt University - Advanced Computing Center for Research and Education
Kevin.Buterbaugh@vanderbilt.edu <mailto:Kevin.Buterbaugh@vanderbilt.edu> - (615)875-9633
------------------------------------------------------------------------
Note: This email is for the confidential use of the named addressee(s) only and may contain proprietary, confidential, or privileged information and/or personal data. If you are not the intended recipient, you are hereby notified that any review, dissemination, or copying of this email is strictly prohibited, and requested to notify the sender immediately and destroy this email and any attachments. Email transmission cannot be guaranteed to be secure or error-free. The Company, therefore, does not make any guarantees as to the completeness or accuracy of this email or any attachments. This email is for informational purposes only and does not constitute a recommendation, offer, request, or solicitation of any kind to buy, sell, subscribe, redeem, or perform any type of transaction of a financial product. Personal data, as defined by applicable data privacy laws, contained in this email may be processed by the Company, and any of its affiliated or related companies, for potential ongoing compliance and/or business-related purposes. You may have rights regarding your personal data; for information on exercising these rights or the Company’s treatment of personal data, please email datarequests@jumptrading.com.
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- Aaron Knister NASA Center for Climate Simulation (Code 606.2) Goddard Space Flight Center (301) 286-2776 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
It's a good question, Simon. I don't know the answer. At least, when I started composing this e-mail what, 5 days ago now, I didn't. I did a little test using dd to write directly to the NSD (not in production just to be clear...I've got co-workers on this list ;-) ). Here's a partial dump of the inode prior: # /usr/lpp/mmfs/bin/tsdbfs fs1 inode 23808 Inode 23808 [23808] snap 0 (index 1280 in block 11): Inode address: 1:4207872 2:4207872 size 512 nAddrs 25 indirectionLevel=INDIRECT status=USERFILE objectVersion=103 generation=0x6E256E16 nlink=1 owner uid=0 gid=0 mode=0200100644: -rw-r--r-- blocksize code=5 (32 subblocks) lastBlockSubblocks=32 checksum=0xF74A31AA is Valid This is me writing junk to that sector of the NSD: # dd if=/dev/urandom bs=512 of=/dev/sda seek=4207872 count=1 Post-junkifying: # /usr/lpp/mmfs/bin/tsdbfs fs1 sector 1:4207872 Contents of 1 sector(s) from 1:4207872 = 0x1:403500, width1 0000000000000000: 4FA27C86 5D2076BB 6CD011DE D582F7CE *O.|.].v.l.......* 0000000000000010: 60A708F1 A3C60FCD 7D796E3D CC97F586 *`.......}yn=....* 0000000000000020: 57B643A7 FABD7235 A2BD9B75 6DDA0771 *W.C...r5...um..q* 0000000000000030: 6A818411 0D59D1D3 2C4C7F39 2B2B529D *j....Y..,L.9++R.* 0000000000000040: 9AE06C7D A8FB1DC9 7E783DB4 90A9E9E4 *..l}....~x=.....* 0000000000000050: B2D0E9C9 CC7FEBC0 85F23DF8 F18D19C0 *..........=.....* 0000000000000060: DA9C817C D20C0FB2 F30AAF55 C86D4155 *...|.......U.mAU* Dump of the inode post-junkifying: # /usr/lpp/mmfs/bin/tsdbfs fs1 inode 23808 Inode 23808 [23808] snap 0 (index 1280 in block 11): Inode address: 1:4207872 2:4207872 size 512 nAddrs 0 indirectionLevel=13 status=4 objectVersion=5738285791753303739 generation=0x9AE06C7D nlink=3955281023 owner uid=2121809332 gid=-1867912732 mode=025076616711: prws--s--x flags set: exposed illCompressed dataUpdateMissRRPlus metaUpdateMiss blocksize code=8 (256 subblocks) lastBlockSubblocks=15582 checksum=0xD582F7CE is INVALID (computed checksum=0x2A2FA283) Attempts to access the file succeed but I get an fsstruct error: # /usr/lpp/mmfs/samples/debugtools/fsstructlx.awk /var/log/messages 09/12@17:38:03 gpfs-adm1 FSSTRUCT fs1 108 FSErrValidate type=inode da=00000001:0000000000403500(1:4207872) sectors=0001 repda=[nVal=2 00000001:0000000000403500(1:4207872) 00000002:0000000000403500(2:4207872)] data=(len=00000200) 4FA27C86 5D2076BB 6CD011DE D582F7CE 60A708F1 A3C60FCD 7D796E3D CC97F586 57B643A7 FABD7235 A2BD9B75 6DDA0771 6A818411 0D59D1D3 2C4C7F39 2B2B529D 9AE06C7D A8FB1DC9 7E783DB4 90A9E9E4 B2D0E9C9 CC7FEBC0 85F23DF8 F18D19C0 DA9C817C D20C0FB2 F30AAF55 It *didn't* automatically repair it, it seems. The restripe did pick it up: # /usr/lpp/mmfs/bin/mmrestripefs fs1 -c --read-only --metadata-only Scanning file system metadata, phase 1 ... Inode 0 [fileset 0, snapshot 0 ] has mismatch in replicated disk address 1:4206592 2:4206592 Scan completed successfully. Scanning file system metadata, phase 2 ... Scan completed successfully. Scanning file system metadata, phase 3 ... Scan completed successfully. Scanning file system metadata, phase 4 ... Scan completed successfully. Scanning user file metadata ... 100.00 % complete on Sun Aug 26 18:10:36 2018 ( 69632 inodes with total 406 MB data processed) Scan completed successfully. I ran this to fix it: # /usr/lpp/mmfs/bin/mmrestripefs fs1 -c --metadata-only And things appear better afterwards: # /usr/lpp/mmfs/bin/tsdbfs fs1 inode 23808 Inode 23808 [23808] snap 0 (index 1280 in block 11): Inode address: 1:4207872 2:4207872 size 512 nAddrs 25 indirectionLevel=INDIRECT status=USERFILE objectVersion=103 generation=0x6E256E16 nlink=1 owner uid=0 gid=0 mode=0200100644: -rw-r--r-- blocksize code=5 (32 subblocks) lastBlockSubblocks=32 checksum=0xF74A31AA is Valid This is with 4.2.3-10. -Aaron On 9/6/18 1:49 PM, Simon Thompson wrote:
I thought reads were always round robin's (in some form) unless you set readreplicapolicy.
And I thought with fsstruct you had to use mmfsck offline to fix.
Simon ________________________________________ From: gpfsug-discuss-bounces@spectrumscale.org [gpfsug-discuss-bounces@spectrumscale.org] on behalf of Aaron Knister [aaron.s.knister@nasa.gov] Sent: 06 September 2018 18:06 To: gpfsug-discuss@spectrumscale.org Subject: Re: [gpfsug-discuss] RAID type for system pool
Answers inline based on my recollection of experiences we've had here:
On 9/6/18 12:19 PM, Bryan Banister wrote:
I have questions about how the GPFS metadata replication of 3 works.
1. Is it basically the same as replication of 2 but just have one more copy, making recovery much more likely?
That's my understanding.
2. If there is nothing that is checking that the data was correctly read off of the device (e.g. CRC checking ON READS like the DDNs do, T10PI or Data Integrity Field) then how does GPFS handle a corrupted read of the data? - unlikely with SSD but head could be off on a NLSAS read, no errors, but you get some garbage instead, plus no auto retries
The inode itself is checksummed:
# /usr/lpp/mmfs/bin/tsdbfs mysuperawesomespacefs Enter command or null to read next sector. Type ? for help. inode 20087366 Inode 20087366 [20087366] snap 0 (index 582 in block 9808): Inode address: 30:263275078 32:263264838 size 512 nAddrs 32 indirectionLevel=3 status=USERFILE objectVersion=49352 generation=0x2B519B3 nlink=1 owner uid=8675309 gid=999 mode=0200100600: -rw------- blocksize code=5 (32 subblocks) lastBlockSubblocks=1 checksum=0xF2EF3427 is Valid ... Disk pointers [32]: 0: 31:217629376 1: 30:217632960 2: (null) ... 31: (null)
as are indirect blocks (I'm sure that's not an exhaustive list of checksummed metadata structures):
ind 31:217629376 Indirect block starting in sector 31:217629376: magic=0x112DF307 generation=0x2B519B3 blockNum=0 inodeNum=20087366 indirection level=2 checksum=0x6BDAA92A CalcChecksum(0x5B6DC9FC000, 32768, 20)=0x6BDAA92A Data pointers:
3. Does GPFS read at least two of the three replicas and compares them to ensure the data is correct? - expensive operation, so very unlikely
I don't know, but I do know it verifies the checksum and I believe if that's wrong it will try another replica.
4. If not reading multiple replicas for comparison, are reads round robin across all three copies?
I feel like we see pretty even distribution of reads across all replicas of our metadata LUNs, although this is looking overall at the array level so it may be a red herring.
5. If one replica is corrupted (bad blocks) what does GPFS do to recover this metadata copy? Is this automatic or does this require a manual `mmrestripefs -c` operation or something? - If not, seems like a pretty simple idea and maybe an RFE worthy submission
My experience has been it will attempt to correct it (and maybe log an fsstruct error?). This was in the 3.5 days, though.
6. Would the idea of an option to run “background scrub/verifies” of the data/metadata be worthwhile to ensure no hidden bad blocks? - Using QoS this should be relatively painless
If you don't have array-level background scrubbing, this is what I'd suggest. (e.g. mmrestripefs -c --metadata-only).
7. With a drive failure do you have to delete the NSD from the file system and cluster, recreate the NSD, add it back to the FS, then again run the `mmrestripefs -c` operation to restore the replication? - As Kevin mentions this will end up being a FULL file system scan vs. a block-based scan and replication. That could take a long time depending on number of inodes and type of storage!
Thanks for any insight,
-Bryan
*From:* gpfsug-discuss-bounces@spectrumscale.org <gpfsug-discuss-bounces@spectrumscale.org> *On Behalf Of *Buterbaugh, Kevin L *Sent:* Thursday, September 6, 2018 9:59 AM *To:* gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> *Subject:* Re: [gpfsug-discuss] RAID type for system pool
/Note: External Email/
------------------------------------------------------------------------
Hi All,
Wow - my query got more responses than I expected and my sincere thanks to all who took the time to respond!
At this point in time we do have two GPFS filesystems … one which is basically “/home” and some software installations and the other which is “/scratch” and “/data” (former backed up, latter not). Both of them have their metadata on SSDs set up as RAID 1 mirrors and replication set to two. But at this point in time all of the SSDs are in a single storage array (albeit with dual redundant controllers) … so the storage array itself is my only SPOF.
As part of the hardware purchase we are in the process of making we will be buying a 2nd storage array that can house 2.5” SSDs. Therefore, we will be splitting our SSDs between chassis and eliminating that last SPOF. Of course, this includes the new SSDs we are getting for our new /home filesystem.
Our plan right now is to buy 10 SSDs, which will allow us to test 3 configurations:
1) two 4+1P RAID 5 LUNs split up into a total of 8 LV’s (with each of my 8 NSD servers as primary for one of those LV’s and the other 7 as backups) and GPFS metadata replication set to 2.
2) four RAID 1 mirrors (which obviously leaves 2 SSDs unused) and GPFS metadata replication set to 2. This would mean that only 4 of my 8 NSD servers would be a primary.
3) nine RAID 0 / bare drives with GPFS metadata replication set to 3 (which leaves 1 SSD unused). All 8 NSD servers primary for one SSD and 1 serving up two.
The responses I received concerning RAID 5 and performance were not a surprise to me. The main advantage that option gives is the most usable storage space for the money (in fact, it gives us way more storage space than we currently need) … but if it tanks performance, then that’s a deal breaker.
Personally, I like the four RAID 1 mirrors config like we’ve been using for years, but it has the disadvantage of giving us the least usable storage space … that config would give us the minimum we need for right now, but doesn’t really allow for much future growth.
I have no experience with metadata replication of 3 (but had actually thought of that option, so feel good that others suggested it) so option 3 will be a brand new experience for us. It is the most optimal in terms of meeting current needs plus allowing for future growth without giving us way more space than we are likely to need). I will be curious to see how long it takes GPFS to re-replicate the data when we simulate a drive failure as opposed to how long a RAID rebuild takes.
I am a big believer in Murphy’s Law (Sunday I paid off a bill, Wednesday my refrigerator died!) … and also believe that the definition of a pessimist is “someone with experience” <grin> … so we will definitely not set GPFS metadata replication to less than two, nor will we use non-Enterprise class SSDs for metadata … but I do still appreciate the suggestions.
If there is interest, I will report back on our findings. If anyone has any additional thoughts or suggestions, I’d also appreciate hearing them. Again, thank you!
Kevin
—
Kevin Buterbaugh - Senior System Administrator
Vanderbilt University - Advanced Computing Center for Research and Education
Kevin.Buterbaugh@vanderbilt.edu <mailto:Kevin.Buterbaugh@vanderbilt.edu> - (615)875-9633
------------------------------------------------------------------------
Note: This email is for the confidential use of the named addressee(s) only and may contain proprietary, confidential, or privileged information and/or personal data. If you are not the intended recipient, you are hereby notified that any review, dissemination, or copying of this email is strictly prohibited, and requested to notify the sender immediately and destroy this email and any attachments. Email transmission cannot be guaranteed to be secure or error-free. The Company, therefore, does not make any guarantees as to the completeness or accuracy of this email or any attachments. This email is for informational purposes only and does not constitute a recommendation, offer, request, or solicitation of any kind to buy, sell, subscribe, redeem, or perform any type of transaction of a financial product. Personal data, as defined by applicable data privacy laws, contained in this email may be processed by the Company, and any of its affiliated or related companies, for potential ongoing compliance and/or business-related purposes. You may have rights regarding your personal data; for information on exercising these rights or the Company’s treatment of personal data, please email datarequests@jumptrading.com.
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- Aaron Knister NASA Center for Climate Simulation (Code 606.2) Goddard Space Flight Center (301) 286-2776 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- Aaron Knister NASA Center for Climate Simulation (Code 606.2) Goddard Space Flight Center (301) 286-2776
I've heard it highly recommended (and have been *really* glad at times to have it) to have at least 2 replicas of metadata to help maintain fs consistency in the event of fs issues or hardware bugs (e.g. a torn write). -Aaron On 9/5/18 1:37 PM, Frederick Stock wrote:
Another option for saving space is to not keep 2 copies of the metadata within GPFS. The SSDs are mirrored so you have two copies though very likely they share a possible single point of failure and that could be a deal breaker. I have my doubts that RAID5 will perform well for the reasons Marc described but worth testing to see how it does perform. If you do test I presume you would also run equivalent tests with a RAID1 (mirrored) configuration.
Regarding your point about making multiple volumes that would become GPFS NSDs for metadata. It has been my experience that for traditional RAID systems it is better to have many small metadata LUNs (more IO paths) then a few large metadata LUNs. This becomes less of an issue with ESS, i.e. there you can have a few metadata NSDs yet still get very good performance.
Fred __________________________________________________ Fred Stock | IBM Pittsburgh Lab | 720-430-8821 stockf@us.ibm.com
From: "Marc A Kaplan" <makaplan@us.ibm.com> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 09/05/2018 01:22 PM Subject: Re: [gpfsug-discuss] RAID type for system pool Sent by: gpfsug-discuss-bounces@spectrumscale.org ------------------------------------------------------------------------
It's good to try to reason and think this out... But there's a good likelihood that we don't understand ALL the details, some of which may negatively impact performance - so no matter what scheme you come up with - test, test, and re-test before deploying and depending on it in production.
Having said that, I'm pretty sure that old "spinning" RAID 5 implementations had horrible performance for GPFS metadata/system pool. Why? Among other things, the large stripe size vs the almost random small writes directed to system pool.
That random-small-writes pattern won't change when we go to SSD RAID 5 - so you'd have to see if the SSD implementation is somehow smarter than an old fashioned RAID 5 implementation which I believe requires several physical reads and writes, for each "small" logical write. (Top decent google result I found quickly _http://rickardnobel.se/raid-5-write-penalty/_But you will probably want to do more research!)
Consider GPFS small write performance for: inode updates, log writes, small files (possibly in inode), directory updates, allocation map updates, index of indirect blocks.
From: "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 09/05/2018 11:36 AM Subject: [gpfsug-discuss] RAID type for system pool Sent by: gpfsug-discuss-bounces@spectrumscale.org ------------------------------------------------------------------------
Hi All,
We are in the process of finalizing the purchase of some new storage arrays (so no sales people who might be monitoring this list need contact me) to life-cycle some older hardware. One of the things we are considering is the purchase of some new SSD’s for our “/home” filesystem and I have a question or two related to that.
Currently, the existing home filesystem has it’s metadata on SSD’s … two RAID 1 mirrors and metadata replication set to two. However, the filesystem itself is old enough that it uses 512 byte inodes. We have analyzed our users files and know that if we create a new filesystem with 4K inodes that a very significant portion of the files would now have their _data_ stored in the inode as well due to the files being 3.5K or smaller (currently all data is on spinning HD RAID 1 mirrors).
Of course, if we increase the size of the inodes by a factor of 8 then we also need 8 times as much space to store those inodes. Given that Enterprise class SSDs are still very expensive and our budget is not unlimited, we’re trying to get the best bang for the buck.
We have always - even back in the day when our metadata was on spinning disk and not SSD - used RAID 1 mirrors and metadata replication of two. However, we are wondering if it might be possible to switch to RAID 5? Specifically, what we are considering doing is buying 8 new SSDs and creating two 3+1P RAID 5 LUNs (metadata replication would stay at two). That would give us 50% more usable space than if we configured those same 8 drives as four RAID 1 mirrors.
Unfortunately, unless I’m misunderstanding something, mean that the RAID stripe size and the GPFS block size could not match. Therefore, even though we don’t need the space, would we be much better off to buy 10 SSDs and create two 4+1P RAID 5 LUNs?
I’ve searched the mailing list archives and scanned the DeveloperWorks wiki and even glanced at the GPFS documentation and haven’t found anything that says “bad idea, Kevin”… ;-)
Expanding on this further … if we just present those two RAID 5 LUNs to GPFS as NSDs then we can only have two NSD servers as primary for them. So another thing we’re considering is to take those RAID 5 LUNs and further sub-divide them into a total of 8 logical volumes, each of which could be a GPFS NSD and therefore would allow us to have each of our 8 NSD servers be primary for one of them. Even worse idea?!? Good idea?
Anybody have any better ideas??? ;-)
Oh, and currently we’re on GPFS 4.2.3-10, but are also planning on moving to GPFS 5.0.1-x before creating the new filesystem.
Thanks much…
— Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education_ __Kevin.Buterbaugh@vanderbilt.edu_ <mailto:Kevin.Buterbaugh@vanderbilt.edu>- (615)875-9633
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org_ __http://gpfsug.org/mailman/listinfo/gpfsug-discuss_
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- Aaron Knister NASA Center for Climate Simulation (Code 606.2) Goddard Space Flight Center (301) 286-2776
On Wed, 2018-09-05 at 13:37 -0400, Frederick Stock wrote:
Another option for saving space is to not keep 2 copies of the metadata within GPFS. The SSDs are mirrored so you have two copies though very likely they share a possible single point of failure and that could be a deal breaker. I have my doubts that RAID5 will perform well for the reasons Marc described but worth testing to see how it does perform. If you do test I presume you would also run equivalent tests with a RAID1 (mirrored) configuration.
When you have been on the wrong end of a double disk failure in a RAID1 when the second disk failed during the rebuild you probably want to steer clear of such recklessness on a multi TB GPFS file system :-) JAB. -- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG
Hi, just think that your RAID controller on parity-backed redundancy needs to read the full stripe, modify it, and write it back (including parity) - the infamous Read-Modify-Write penalty. As long as your users don't bulk-create inodes and doo amend some metadata, (create a file sometimes, e.g.) The writing of a 4k inode, or the update of a 32k dir block causes your controller to read a full block (let's say you use 1MiB on MD) and write back the full block plus parity (on 4+1p RAID 5 at 1MiB that'll be 1.25MiB. Overhead two orders of magnitude above the payload. SSDs have become better now and expensive enterprise SSDs will endure quite a lot of full rewrites, but you need to estimate the MD change rate, apply the RMW overhead and see where you end WRT lifetime (and performance). Mit freundlichen Grüßen / Kind regards Dr. Uwe Falke IT Specialist High Performance Computing Services / Integrated Technology Services / Data Center Services ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Rathausstr. 7 09111 Chemnitz Phone: +49 371 6978 2165 Mobile: +49 175 575 2877 E-Mail: uwefalke@de.ibm.com ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Business & Technology Services GmbH / Geschäftsführung: Thomas Wolter, Sven Schooß Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 17122 From: "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 05/09/2018 17:35 Subject: [gpfsug-discuss] RAID type for system pool Sent by: gpfsug-discuss-bounces@spectrumscale.org Hi All, We are in the process of finalizing the purchase of some new storage arrays (so no sales people who might be monitoring this list need contact me) to life-cycle some older hardware. One of the things we are considering is the purchase of some new SSD?s for our ?/home? filesystem and I have a question or two related to that. Currently, the existing home filesystem has it?s metadata on SSD?s ? two RAID 1 mirrors and metadata replication set to two. However, the filesystem itself is old enough that it uses 512 byte inodes. We have analyzed our users files and know that if we create a new filesystem with 4K inodes that a very significant portion of the files would now have their _data_ stored in the inode as well due to the files being 3.5K or smaller (currently all data is on spinning HD RAID 1 mirrors). Of course, if we increase the size of the inodes by a factor of 8 then we also need 8 times as much space to store those inodes. Given that Enterprise class SSDs are still very expensive and our budget is not unlimited, we?re trying to get the best bang for the buck. We have always - even back in the day when our metadata was on spinning disk and not SSD - used RAID 1 mirrors and metadata replication of two. However, we are wondering if it might be possible to switch to RAID 5? Specifically, what we are considering doing is buying 8 new SSDs and creating two 3+1P RAID 5 LUNs (metadata replication would stay at two). That would give us 50% more usable space than if we configured those same 8 drives as four RAID 1 mirrors. Unfortunately, unless I?m misunderstanding something, mean that the RAID stripe size and the GPFS block size could not match. Therefore, even though we don?t need the space, would we be much better off to buy 10 SSDs and create two 4+1P RAID 5 LUNs? I?ve searched the mailing list archives and scanned the DeveloperWorks wiki and even glanced at the GPFS documentation and haven?t found anything that says ?bad idea, Kevin?? ;-) Expanding on this further ? if we just present those two RAID 5 LUNs to GPFS as NSDs then we can only have two NSD servers as primary for them. So another thing we?re considering is to take those RAID 5 LUNs and further sub-divide them into a total of 8 logical volumes, each of which could be a GPFS NSD and therefore would allow us to have each of our 8 NSD servers be primary for one of them. Even worse idea?!? Good idea? Anybody have any better ideas??? ;-) Oh, and currently we?re on GPFS 4.2.3-10, but are also planning on moving to GPFS 5.0.1-x before creating the new filesystem. Thanks much? ? Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu - (615)875-9633 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Hi Kevin, Why not do single SSD devices and then just use -m DefaultMetadataReplicas = 3 and -M MaxMetadataReplicas = 3 for your mmcrfs ? And maybe you can even get away with -m 2 -M 3. You will get higher performance overall by having more devices. You will get good redundancy with GPFS replicas (just make sure your failure groups make sense). Maybe you can split your SSDs across different shelves or RAID controllers or something. In any case, if you are creating a new filesystem, you can test all this out. Regards, Alex On Wed, Sep 5, 2018 at 1:07 PM Uwe Falke <UWEFALKE@de.ibm.com> wrote:
Hi,
just think that your RAID controller on parity-backed redundancy needs to read the full stripe, modify it, and write it back (including parity) - the infamous Read-Modify-Write penalty. As long as your users don't bulk-create inodes and doo amend some metadata, (create a file sometimes, e.g.) The writing of a 4k inode, or the update of a 32k dir block causes your controller to read a full block (let's say you use 1MiB on MD) and write back the full block plus parity (on 4+1p RAID 5 at 1MiB that'll be 1.25MiB. Overhead two orders of magnitude above the payload. SSDs have become better now and expensive enterprise SSDs will endure quite a lot of full rewrites, but you need to estimate the MD change rate, apply the RMW overhead and see where you end WRT lifetime (and performance).
Mit freundlichen Grüßen / Kind regards
Dr. Uwe Falke
IT Specialist High Performance Computing Services / Integrated Technology Services / Data Center Services
------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Rathausstr. 7 09111 Chemnitz Phone: +49 371 6978 2165 Mobile: +49 175 575 2877 E-Mail: uwefalke@de.ibm.com
------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Business & Technology Services GmbH / Geschäftsführung: Thomas Wolter, Sven Schooß Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 17122
From: "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 05/09/2018 17:35 Subject: [gpfsug-discuss] RAID type for system pool Sent by: gpfsug-discuss-bounces@spectrumscale.org
Hi All,
We are in the process of finalizing the purchase of some new storage arrays (so no sales people who might be monitoring this list need contact me) to life-cycle some older hardware. One of the things we are considering is the purchase of some new SSD?s for our ?/home? filesystem and I have a question or two related to that.
Currently, the existing home filesystem has it?s metadata on SSD?s ? two RAID 1 mirrors and metadata replication set to two. However, the filesystem itself is old enough that it uses 512 byte inodes. We have analyzed our users files and know that if we create a new filesystem with 4K inodes that a very significant portion of the files would now have their _data_ stored in the inode as well due to the files being 3.5K or smaller (currently all data is on spinning HD RAID 1 mirrors).
Of course, if we increase the size of the inodes by a factor of 8 then we also need 8 times as much space to store those inodes. Given that Enterprise class SSDs are still very expensive and our budget is not unlimited, we?re trying to get the best bang for the buck.
We have always - even back in the day when our metadata was on spinning disk and not SSD - used RAID 1 mirrors and metadata replication of two. However, we are wondering if it might be possible to switch to RAID 5? Specifically, what we are considering doing is buying 8 new SSDs and creating two 3+1P RAID 5 LUNs (metadata replication would stay at two). That would give us 50% more usable space than if we configured those same 8 drives as four RAID 1 mirrors.
Unfortunately, unless I?m misunderstanding something, mean that the RAID stripe size and the GPFS block size could not match. Therefore, even though we don?t need the space, would we be much better off to buy 10 SSDs and create two 4+1P RAID 5 LUNs?
I?ve searched the mailing list archives and scanned the DeveloperWorks wiki and even glanced at the GPFS documentation and haven?t found anything that says ?bad idea, Kevin?? ;-)
Expanding on this further ? if we just present those two RAID 5 LUNs to GPFS as NSDs then we can only have two NSD servers as primary for them. So another thing we?re considering is to take those RAID 5 LUNs and further sub-divide them into a total of 8 logical volumes, each of which could be a GPFS NSD and therefore would allow us to have each of our 8 NSD servers be primary for one of them. Even worse idea?!? Good idea?
Anybody have any better ideas??? ;-)
Oh, and currently we?re on GPFS 4.2.3-10, but are also planning on moving to GPFS 5.0.1-x before creating the new filesystem.
Thanks much?
? Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu - (615)875-9633
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
A somewhat smarter RAID controller will "only" need to read the old values of the single changed segment of data and the corresponding parity segment, and know the new value of the data block. Then it can compute the new parity segment value. Not necessarily the entire stripe. Still 2 reads and 2 writes + access delay times ( guaranteed more than one full rotation time when on spinning disks, average something like 1.7x rotation time ). From: "Uwe Falke" <UWEFALKE@de.ibm.com> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 09/05/2018 04:07 PM Subject: Re: [gpfsug-discuss] RAID type for system pool Sent by: gpfsug-discuss-bounces@spectrumscale.org Hi, just think that your RAID controller on parity-backed redundancy needs to read the full stripe, modify it, and write it back (including parity) - the infamous Read-Modify-Write penalty. As long as your users don't bulk-create inodes and doo amend some metadata, (create a file sometimes, e.g.) The writing of a 4k inode, or the update of a 32k dir block causes your controller to read a full block (let's say you use 1MiB on MD) and write back the full block plus parity (on 4+1p RAID 5 at 1MiB that'll be 1.25MiB. Overhead two orders of magnitude above the payload. SSDs have become better now and expensive enterprise SSDs will endure quite a lot of full rewrites, but you need to estimate the MD change rate, apply the RMW overhead and see where you end WRT lifetime (and performance). Mit freundlichen Grüßen / Kind regards Dr. Uwe Falke IT Specialist High Performance Computing Services / Integrated Technology Services / Data Center Services ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Rathausstr. 7 09111 Chemnitz Phone: +49 371 6978 2165 Mobile: +49 175 575 2877 E-Mail: uwefalke@de.ibm.com ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Business & Technology Services GmbH / Geschäftsführung: Thomas Wolter, Sven Schooß Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 17122 From: "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 05/09/2018 17:35 Subject: [gpfsug-discuss] RAID type for system pool Sent by: gpfsug-discuss-bounces@spectrumscale.org Hi All, We are in the process of finalizing the purchase of some new storage arrays (so no sales people who might be monitoring this list need contact me) to life-cycle some older hardware. One of the things we are considering is the purchase of some new SSD?s for our ?/home? filesystem and I have a question or two related to that. Currently, the existing home filesystem has it?s metadata on SSD?s ? two RAID 1 mirrors and metadata replication set to two. However, the filesystem itself is old enough that it uses 512 byte inodes. We have analyzed our users files and know that if we create a new filesystem with 4K inodes that a very significant portion of the files would now have their _data_ stored in the inode as well due to the files being 3.5K or smaller (currently all data is on spinning HD RAID 1 mirrors). Of course, if we increase the size of the inodes by a factor of 8 then we also need 8 times as much space to store those inodes. Given that Enterprise class SSDs are still very expensive and our budget is not unlimited, we?re trying to get the best bang for the buck. We have always - even back in the day when our metadata was on spinning disk and not SSD - used RAID 1 mirrors and metadata replication of two. However, we are wondering if it might be possible to switch to RAID 5? Specifically, what we are considering doing is buying 8 new SSDs and creating two 3+1P RAID 5 LUNs (metadata replication would stay at two). That would give us 50% more usable space than if we configured those same 8 drives as four RAID 1 mirrors. Unfortunately, unless I?m misunderstanding something, mean that the RAID stripe size and the GPFS block size could not match. Therefore, even though we don?t need the space, would we be much better off to buy 10 SSDs and create two 4+1P RAID 5 LUNs? I?ve searched the mailing list archives and scanned the DeveloperWorks wiki and even glanced at the GPFS documentation and haven?t found anything that says ?bad idea, Kevin?? ;-) Expanding on this further ? if we just present those two RAID 5 LUNs to GPFS as NSDs then we can only have two NSD servers as primary for them. So another thing we?re considering is to take those RAID 5 LUNs and further sub-divide them into a total of 8 logical volumes, each of which could be a GPFS NSD and therefore would allow us to have each of our 8 NSD servers be primary for one of them. Even worse idea?!? Good idea? Anybody have any better ideas??? ;-) Oh, and currently we?re on GPFS 4.2.3-10, but are also planning on moving to GPFS 5.0.1-x before creating the new filesystem. Thanks much? ? Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu - (615)875-9633 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Hi, Marc, I was clearly unaware of that function. If my understanding of parity-based redundancy is about correct, then that method would only work with RAID 5, because that is a simple XOR-based hash, but RAID 6, if used, would not allow that stripped-down RMW. Is that correct? Mit freundlichen Grüßen / Kind regards Dr. Uwe Falke IT Specialist High Performance Computing Services / Integrated Technology Services / Data Center Services ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Rathausstr. 7 09111 Chemnitz Phone: +49 371 6978 2165 Mobile: +49 175 575 2877 E-Mail: uwefalke@de.ibm.com ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Business & Technology Services GmbH / Geschäftsführung: Thomas Wolter, Sven Schooß Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 17122 From: "Marc A Kaplan" <makaplan@us.ibm.com> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 06/09/2018 18:09 Subject: Re: [gpfsug-discuss] RAID type for system pool Sent by: gpfsug-discuss-bounces@spectrumscale.org A somewhat smarter RAID controller will "only" need to read the old values of the single changed segment of data and the corresponding parity segment, and know the new value of the data block. Then it can compute the new parity segment value. Not necessarily the entire stripe. Still 2 reads and 2 writes + access delay times ( guaranteed more than one full rotation time when on spinning disks, average something like 1.7x rotation time ). From: "Uwe Falke" <UWEFALKE@de.ibm.com> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 09/05/2018 04:07 PM Subject: Re: [gpfsug-discuss] RAID type for system pool Sent by: gpfsug-discuss-bounces@spectrumscale.org Hi, just think that your RAID controller on parity-backed redundancy needs to read the full stripe, modify it, and write it back (including parity) - the infamous Read-Modify-Write penalty. As long as your users don't bulk-create inodes and doo amend some metadata, (create a file sometimes, e.g.) The writing of a 4k inode, or the update of a 32k dir block causes your controller to read a full block (let's say you use 1MiB on MD) and write back the full block plus parity (on 4+1p RAID 5 at 1MiB that'll be 1.25MiB. Overhead two orders of magnitude above the payload. SSDs have become better now and expensive enterprise SSDs will endure quite a lot of full rewrites, but you need to estimate the MD change rate, apply the RMW overhead and see where you end WRT lifetime (and performance). Mit freundlichen Grüßen / Kind regards Dr. Uwe Falke IT Specialist High Performance Computing Services / Integrated Technology Services / Data Center Services ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Rathausstr. 7 09111 Chemnitz Phone: +49 371 6978 2165 Mobile: +49 175 575 2877 E-Mail: uwefalke@de.ibm.com ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Business & Technology Services GmbH / Geschäftsführung: Thomas Wolter, Sven Schooß Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 17122 From: "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 05/09/2018 17:35 Subject: [gpfsug-discuss] RAID type for system pool Sent by: gpfsug-discuss-bounces@spectrumscale.org Hi All, We are in the process of finalizing the purchase of some new storage arrays (so no sales people who might be monitoring this list need contact me) to life-cycle some older hardware. One of the things we are considering is the purchase of some new SSD?s for our ?/home? filesystem and I have a question or two related to that. Currently, the existing home filesystem has it?s metadata on SSD?s ? two RAID 1 mirrors and metadata replication set to two. However, the filesystem itself is old enough that it uses 512 byte inodes. We have analyzed our users files and know that if we create a new filesystem with 4K inodes that a very significant portion of the files would now have their _data_ stored in the inode as well due to the files being 3.5K or smaller (currently all data is on spinning HD RAID 1 mirrors). Of course, if we increase the size of the inodes by a factor of 8 then we also need 8 times as much space to store those inodes. Given that Enterprise class SSDs are still very expensive and our budget is not unlimited, we?re trying to get the best bang for the buck. We have always - even back in the day when our metadata was on spinning disk and not SSD - used RAID 1 mirrors and metadata replication of two. However, we are wondering if it might be possible to switch to RAID 5? Specifically, what we are considering doing is buying 8 new SSDs and creating two 3+1P RAID 5 LUNs (metadata replication would stay at two). That would give us 50% more usable space than if we configured those same 8 drives as four RAID 1 mirrors. Unfortunately, unless I?m misunderstanding something, mean that the RAID stripe size and the GPFS block size could not match. Therefore, even though we don?t need the space, would we be much better off to buy 10 SSDs and create two 4+1P RAID 5 LUNs? I?ve searched the mailing list archives and scanned the DeveloperWorks wiki and even glanced at the GPFS documentation and haven?t found anything that says ?bad idea, Kevin?? ;-) Expanding on this further ? if we just present those two RAID 5 LUNs to GPFS as NSDs then we can only have two NSD servers as primary for them. So another thing we?re considering is to take those RAID 5 LUNs and further sub-divide them into a total of 8 logical volumes, each of which could be a GPFS NSD and therefore would allow us to have each of our 8 NSD servers be primary for one of them. Even worse idea?!? Good idea? Anybody have any better ideas??? ;-) Oh, and currently we?re on GPFS 4.2.3-10, but are also planning on moving to GPFS 5.0.1-x before creating the new filesystem. Thanks much? ? Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu - (615)875-9633 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
No, but of course for a RAID with additional parity (error correction) bits the controller needs to read and write more. So if, for example, n+2 sub-blocks per stripe = n data and 2 error correction... Then the smallest update requires read-compute-write on 1 data and 2 ecc. = 3 reads and 3 writes. The calculation each parity block of the requires "subtracting" out the contribution of the old data value and adding in the contribution of the new data value Ref: http://igoro.com/archive/how-raid-6-dual-parity-calculation-works/ Look at it this way: The k'th parity value is Parityk= Ak*(data1) + Bk*(data2) + Ck*(data3) + ... (Ak, Bk, Ck, ... are coefficients for the computation of the k'th parity value) When updating data2 to data2x we update Parityk to Paritykx with Paritykx = Pariktyk - Bk*(data2) + Bk*(data2x) (Arithmetic done in a Galois Field chosen to make error correction practical.) From: "Uwe Falke" <UWEFALKE@de.ibm.com> Hi, Marc, I was clearly unaware of that function. If my understanding of parity-based redundancy is about correct, then that method would only work with RAID 5, because that is a simple XOR-based hash, but RAID 6, if used, would not allow that stripped-down RMW. Is that correct?
On Sep 5, 2018, at 11:34 AM, Buterbaugh, Kevin L <Kevin.Buterbaugh@Vanderbilt.Edu <mailto:Kevin.Buterbaugh@Vanderbilt.Edu>> wrote:
[…]
Of course, if we increase the size of the inodes by a factor of 8 then we also need 8 times as much space to store those inodes. Given that Enterprise class SSDs are still very expensive and our budget is not unlimited, we’re trying to get the best bang for the buck.
Nobody has gone in this direction yet, so I’ll play devil’s advocate: Are you sure you need enterprise class SSDs? The only practical difference between enterprise class SSDs and "read intensive" SSDs is the "endurance" in DWPD[1]. Read-intensive SSDs usually have a DWPD of 1-ish. Enterprise SSDs can have a DWPD as high as 30. So, how many times do you think you’ll actually write all of the data on the SSDs per day? I don’t know how much (meta)data you’ve got, but maybe consider buying the "cheap" SSDs (which will be *much* larger for your dollar) and just use fractions of them with GPFS replication[2] or maybe some vendor’s {distributed, de-clustererd} RAID. Keep some spares. This is probably bad advice, but the thought exercise will let you find the edges of what you meant. :) [1] DWPD = Drive Writes Per Day — write all of the cells on the entire storage device every 24 hours. [2] Okay, somebody already said to use GPFS replication. ;) -- Stephen
We have always - even back in the day when our metadata was on spinning disk and not SSD - used RAID 1 mirrors and metadata replication of two. However, we are wondering if it might be possible to switch to RAID 5? Specifically, what we are considering doing is buying 8 new SSDs and creating two 3+1P RAID 5 LUNs (metadata replication would stay at two). That would give us 50% more usable space than if we configured those same 8 drives as four RAID 1 mirrors.
Unfortunately, unless I’m misunderstanding something, mean that the RAID stripe size and the GPFS block size could not match. Therefore, even though we don’t need the space, would we be much better off to buy 10 SSDs and create two 4+1P RAID 5 LUNs?
I’ve searched the mailing list archives and scanned the DeveloperWorks wiki and even glanced at the GPFS documentation and haven’t found anything that says “bad idea, Kevin”… ;-)
Expanding on this further … if we just present those two RAID 5 LUNs to GPFS as NSDs then we can only have two NSD servers as primary for them. So another thing we’re considering is to take those RAID 5 LUNs and further sub-divide them into a total of 8 logical volumes, each of which could be a GPFS NSD and therefore would allow us to have each of our 8 NSD servers be primary for one of them. Even worse idea?!? Good idea?
Anybody have any better ideas??? ;-)
Oh, and currently we’re on GPFS 4.2.3-10, but are also planning on moving to GPFS 5.0.1-x before creating the new filesystem.
Thanks much…
— Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu <mailto:Kevin.Buterbaugh@vanderbilt.edu> - (615)875-9633
_______________________________________________ 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>
Perhaps repeating myself, but consider no-RAID or RAID "0" and -M MaxMetadataReplicas Specifies the default maximum number of copies of inodes, directories, and indirect blocks for a file. Valid values are 1, 2, and 3. This value cannot be less than the value of DefaultMetadataReplicas. The default is 2. SO you can have triple redundancy with no shared physical point of failure. When you depend a particular RAID controller to do replication and subsequent recovery for you, then you are depending on that RAID controller. Of course, when you take this point of view to the extreme, you realize that for any individual datum you are depending on the single generator or source of that datum being correct, the OS and filesystem software and CPU, etc, etc.... Until you get to the point just beyond where the datum is replicated...
Hi Kevin, as you already pointed out, having a RAID stripe size (or a multiple of it) not matching GPFS blocksize, is a bad idea. Every write would cause a read-modify-write operation to keep the parity. So for data LUNs RAID5 with 4+P or 8+P is fully ok. For metadata, if you are keen on performance, I would stay with RAID1, or even RAID0, so you aren’t affected by possible RAID rebuild performance drops. Regards, Achim
Am 05.09.2018 um 17:35 schrieb Buterbaugh, Kevin L <Kevin.Buterbaugh@Vanderbilt.Edu>:
Hi All,
We are in the process of finalizing the purchase of some new storage arrays (so no sales people who might be monitoring this list need contact me) to life-cycle some older hardware. One of the things we are considering is the purchase of some new SSD’s for our “/home” filesystem and I have a question or two related to that.
Currently, the existing home filesystem has it’s metadata on SSD’s … two RAID 1 mirrors and metadata replication set to two. However, the filesystem itself is old enough that it uses 512 byte inodes. We have analyzed our users files and know that if we create a new filesystem with 4K inodes that a very significant portion of the files would now have their _data_ stored in the inode as well due to the files being 3.5K or smaller (currently all data is on spinning HD RAID 1 mirrors).
Of course, if we increase the size of the inodes by a factor of 8 then we also need 8 times as much space to store those inodes. Given that Enterprise class SSDs are still very expensive and our budget is not unlimited, we’re trying to get the best bang for the buck.
We have always - even back in the day when our metadata was on spinning disk and not SSD - used RAID 1 mirrors and metadata replication of two. However, we are wondering if it might be possible to switch to RAID 5? Specifically, what we are considering doing is buying 8 new SSDs and creating two 3+1P RAID 5 LUNs (metadata replication would stay at two). That would give us 50% more usable space than if we configured those same 8 drives as four RAID 1 mirrors.
Unfortunately, unless I’m misunderstanding something, mean that the RAID stripe size and the GPFS block size could not match. Therefore, even though we don’t need the space, would we be much better off to buy 10 SSDs and create two 4+1P RAID 5 LUNs?
I’ve searched the mailing list archives and scanned the DeveloperWorks wiki and even glanced at the GPFS documentation and haven’t found anything that says “bad idea, Kevin”… ;-)
Expanding on this further … if we just present those two RAID 5 LUNs to GPFS as NSDs then we can only have two NSD servers as primary for them. So another thing we’re considering is to take those RAID 5 LUNs and further sub-divide them into a total of 8 logical volumes, each of which could be a GPFS NSD and therefore would allow us to have each of our 8 NSD servers be primary for one of them. Even worse idea?!? Good idea?
Anybody have any better ideas??? ;-)
Oh, and currently we’re on GPFS 4.2.3-10, but are also planning on moving to GPFS 5.0.1-x before creating the new filesystem.
Thanks much…
— Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu - (615)875-9633
participants (13)
-
Aaron Knister -
Achim Rehor -
Alex Chekholko -
Anderson Ferreira Nobre -
Bryan Banister -
Buterbaugh, Kevin L -
Frederick Stock -
Jonathan Buzzard -
Luis Bolinches -
Marc A Kaplan -
Simon Thompson -
Stephen Ulmer -
Uwe Falke
