RAID config for SSD's used for data
Hi All, We currently have what I believe is a fairly typical setup … metadata for our GPFS filesystems is the only thing in the system pool and it’s on SSD, while data is on spinning disk (RAID 6 LUNs). Everything connected via 8 Gb FC SAN. 8 NSD servers. Roughly 1 PB usable space. Now lets just say that you have a little bit of money to spend. Your I/O demands aren’t great - in fact, they’re way on the low end … typical (cumulative) usage is 200 - 600 MB/sec read, less than that for writes. But while GPFS has always been great and therefore you don’t need to Make GPFS Great Again, you do want to provide your users with the best possible environment. So you’re considering the purchase of a dual-controller FC storage array with 12 or so 1.8 TB SSD’s in it, with the idea being that that storage would be in its’ own storage pool and that pool would be the default location for I/O for your main filesystem … at least for smaller files. You intend to use mmapplypolicy nightly to move data to / from this pool and the spinning disk pools. Given all that … would you configure those disks as 6 RAID 1 mirrors and have 6 different primary NSD servers or would it be feasible to configure one big RAID 6 LUN? I’m thinking the latter is not a good idea as there could only be one primary NSD server for that one LUN, but given that: 1) I have no experience with this, and 2) I have been wrong once or twice before (<grin>), I’m looking for advice. Thanks! — 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
Hi I'll give my opinion. Worth what you pay for. Do as many as you can, six in this case for the good reason you mentioned. But play with the callbacks so the migration happens on watermarks when it happens. Otherwise you might hit no space till your next policy run. The second is well documented on the redbook AFAIK Cheers -- Cheers
On 19 Apr 2017, at 22.54, Buterbaugh, Kevin L <Kevin.Buterbaugh@Vanderbilt.Edu> wrote:
Hi All,
We currently have what I believe is a fairly typical setup … metadata for our GPFS filesystems is the only thing in the system pool and it’s on SSD, while data is on spinning disk (RAID 6 LUNs). Everything connected via 8 Gb FC SAN. 8 NSD servers. Roughly 1 PB usable space.
Now lets just say that you have a little bit of money to spend. Your I/O demands aren’t great - in fact, they’re way on the low end … typical (cumulative) usage is 200 - 600 MB/sec read, less than that for writes. But while GPFS has always been great and therefore you don’t need to Make GPFS Great Again, you do want to provide your users with the best possible environment.
So you’re considering the purchase of a dual-controller FC storage array with 12 or so 1.8 TB SSD’s in it, with the idea being that that storage would be in its’ own storage pool and that pool would be the default location for I/O for your main filesystem … at least for smaller files. You intend to use mmapplypolicy nightly to move data to / from this pool and the spinning disk pools.
Given all that … would you configure those disks as 6 RAID 1 mirrors and have 6 different primary NSD servers or would it be feasible to configure one big RAID 6 LUN? I’m thinking the latter is not a good idea as there could only be one primary NSD server for that one LUN, but given that: 1) I have no experience with this, and 2) I have been wrong once or twice before (<grin>), I’m looking for advice. Thanks!
— Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu - (615)875-9633
Ellei edellä ole toisin mainittu: / Unless stated otherwise above: Oy IBM Finland Ab PL 265, 00101 Helsinki, Finland Business ID, Y-tunnus: 0195876-3 Registered in Finland
By having many LUNs, you get many IO queues for Linux to play with. Also the raid6 overhead can be quite significant, so it might be better to go with raid1 anyway depending on the controller... And if only gpfs had some sort of auto tier back up the pools for hot or data caching :-) Simon ________________________________________ From: gpfsug-discuss-bounces@spectrumscale.org [gpfsug-discuss-bounces@spectrumscale.org] on behalf of Buterbaugh, Kevin L [Kevin.Buterbaugh@Vanderbilt.Edu] Sent: 19 April 2017 20:53 To: gpfsug main discussion list Subject: [gpfsug-discuss] RAID config for SSD's used for data Hi All, We currently have what I believe is a fairly typical setup … metadata for our GPFS filesystems is the only thing in the system pool and it’s on SSD, while data is on spinning disk (RAID 6 LUNs). Everything connected via 8 Gb FC SAN. 8 NSD servers. Roughly 1 PB usable space. Now lets just say that you have a little bit of money to spend. Your I/O demands aren’t great - in fact, they’re way on the low end … typical (cumulative) usage is 200 - 600 MB/sec read, less than that for writes. But while GPFS has always been great and therefore you don’t need to Make GPFS Great Again, you do want to provide your users with the best possible environment. So you’re considering the purchase of a dual-controller FC storage array with 12 or so 1.8 TB SSD’s in it, with the idea being that that storage would be in its’ own storage pool and that pool would be the default location for I/O for your main filesystem … at least for smaller files. You intend to use mmapplypolicy nightly to move data to / from this pool and the spinning disk pools. Given all that … would you configure those disks as 6 RAID 1 mirrors and have 6 different primary NSD servers or would it be feasible to configure one big RAID 6 LUN? I’m thinking the latter is not a good idea as there could only be one primary NSD server for that one LUN, but given that: 1) I have no experience with this, and 2) I have been wrong once or twice before (<grin>), I’m looking for advice. Thanks! — 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
On 4/19/17 4:05 PM, Simon Thompson (IT Research Support) wrote:
By having many LUNs, you get many IO queues for Linux to play with. Also the raid6 overhead can be quite significant, so it might be better to go with raid1 anyway depending on the controller...
And if only gpfs had some sort of auto tier back up the pools for hot or data caching :-)
You mean like HAWC but for writes larger than 64K? ;-) Or I guess "HARC" as it might be called for a read cache... -- Aaron Knister NASA Center for Climate Simulation (Code 606.2) Goddard Space Flight Center (301) 286-2776
I assume you are making the joke of external LROC. But not sure I would use external storage for LROC, as the whole point is to have really fast storage as close to the node (L for local) as possible. Maybe those SSD that will get replaced with the fancy external storage? -- Cheers
On 19 Apr 2017, at 23.13, Aaron Knister <aaron.s.knister@nasa.gov> wrote:
On 4/19/17 4:05 PM, Simon Thompson (IT Research Support) wrote: By having many LUNs, you get many IO queues for Linux to play with. Also the raid6 overhead can be quite significant, so it might be better to go with raid1 anyway depending on the controller...
And if only gpfs had some sort of auto tier back up the pools for hot or data caching :-)
You mean like HAWC but for writes larger than 64K? ;-)
Or I guess "HARC" as it might be called for a read cache...
-- 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
Ellei edell� ole toisin mainittu: / Unless stated otherwise above: Oy IBM Finland Ab PL 265, 00101 Helsinki, Finland Business ID, Y-tunnus: 0195876-3 Registered in Finland
On Wed, 2017-04-19 at 20:05 +0000, Simon Thompson (IT Research Support) wrote:
By having many LUNs, you get many IO queues for Linux to play with. Also the raid6 overhead can be quite significant, so it might be better to go with raid1 anyway depending on the controller...
And if only gpfs had some sort of auto tier back up the pools for hot or data caching :-)
If you have sized the "fast" pool correctly then the "slow" pool will be spending most of it's time doing diddly squat, aka under 10 IOPS per second unless you are flushing the pool of old files to make space. I have graphs that show this. Then two things happen, if you are just reading the file then fine, probably coming from the cache or the disks are not very busy anyway so you won't notice. If you happen to *change* the file and start doing things actively with it again, then because most programs approach this by creating an entirely new file with a temporary name, then doing a rename and delete shuffle so a crash will leave you with a valid file somewhere then the changed version ends up on the fast disk by virtue of being a new file. JAB. -- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom.
As I've mentioned before, RAID choices for GPFS are not so simple. Here are a couple points to consider, I'm sure there's more. And if I'm wrong, someone will please correct me - but I believe the two biggest pitfalls are: Some RAID configurations (classically 5 and 6) work best with large, full block writes. When the file system does a partial block write, RAID may have to read a full "stripe" from several devices, compute the differences and then write back the modified data to several devices. This is certainly true with RAID that is configured over several storage devices, with error correcting codes. SO, you do NOT want to put GPFS metadata (system pool!) on RAID configured with large stripes and error correction. This is the Read-Modify-Write Raid pitfall. GPFS has built-in replication features - consider using those instead of RAID replication (classically Raid-1). GPFS replication can work with storage devices that are in different racks, separated by significant physical space, and from different manufacturers. This can be more robust than RAID in a single box or single rack. Consider a fire scenario, or exploding power supply or similar physical disaster. Consider that storage devices and controllers from the same manufacturer may have the same bugs, defects, failures.
Hi Marc, But the limitation on GPFS replication is that I can set replication separately for metadata and data, but no matter whether I have one data pool or ten data pools they all must have the same replication, correct? And believe me I *love* GPFS replication … I would hope / imagine that I am one of the few people on this mailing list who has actually gotten to experience a “fire scenario” … electrical fire, chemical suppressant did it’s thing, and everything in the data center had a nice layer of soot, ash, and chemical suppressant on and in it and therefore had to be professionally cleaned. Insurance bought us enough disk space that we could (temporarily) turn on GPFS data replication and clean storage arrays one at a time! But in my current hypothetical scenario I’m stretching the budget just to get that one storage array with 12 x 1.8 TB SSD’s in it. Two are out of the question. My current metadata that I’ve got on SSDs is on RAID 1 mirrors and has GPFS replication set to 2. I thought the multiple RAID 1 mirrors approach was the way to go for SSDs for data as well, as opposed to one big RAID 6 LUN, but wanted to get the advice of those more knowledgeable than me. Thanks! Kevin On Apr 19, 2017, at 3:49 PM, Marc A Kaplan <makaplan@us.ibm.com<mailto:makaplan@us.ibm.com>> wrote: As I've mentioned before, RAID choices for GPFS are not so simple. Here are a couple points to consider, I'm sure there's more. And if I'm wrong, someone will please correct me - but I believe the two biggest pitfalls are: * Some RAID configurations (classically 5 and 6) work best with large, full block writes. When the file system does a partial block write, RAID may have to read a full "stripe" from several devices, compute the differences and then write back the modified data to several devices. This is certainly true with RAID that is configured over several storage devices, with error correcting codes. SO, you do NOT want to put GPFS metadata (system pool!) on RAID configured with large stripes and error correction. This is the Read-Modify-Write Raid pitfall. * GPFS has built-in replication features - consider using those instead of RAID replication (classically Raid-1). GPFS replication can work with storage devices that are in different racks, separated by significant physical space, and from different manufacturers. This can be more robust than RAID in a single box or single rack. Consider a fire scenario, or exploding power supply or similar physical disaster. Consider that storage devices and controllers from the same manufacturer may have the same bugs, defects, failures. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org<http://spectrumscale.org> http://gpfsug.org/mailman/listinfo/gpfsug-discuss — 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
Kevin asked: " ... data pools they all must have the same replication, correct?" Actually no! You can use policy RULE ... SET POOL 'x' REPLICATE(2) to set the replication factor when a file is created. Use mmchattr or mmapplypolicy to change the replication factor after creation. You specify the maximum data replication factor when you create the file system (1,2,3), but any given file can have replication factor set to 1 or 2 or 3.
Hi,
As I've mentioned before, RAID choices for GPFS are not so simple. Here are a couple points to consider, I'm sure there's more. And if I'm wrong, someone will please correct me - but I believe the two biggest pitfalls are:
Some RAID configurations (classically 5 and 6) work best with large, full block writes. When the file system does a partial block write, RAID may have to read a full "stripe" from several devices, compute the differences and then write back the modified data to several devices. This is certainly true with RAID that is configured over several storage devices, with error correcting codes. SO, you do NOT want to put GPFS metadata (system pool!) on RAID configured with large stripes and error correction. This is the Read-Modify-Write Raid pitfall.
As you pointed out, the RAID choices for GPFS may not be simple and we need to take into consideration factors such as storage subsystem configuration/capabilities such as if all drives are homogenous or there is mix of drives. If all the drives are homogeneous, then create dataAndMetadata NSDs across RAID-6 and if the storage controller supports write-cache + write-cache mirroring (WC + WM) then enable this (WC +WM) can alleviate read-modify-write for small writes (typical in metadata). If there is MIX of SSD and HDD (e.g. 15K RPM), then we need to take into consideration the aggregate IOPS of RAID-1 SSD volumes vs. RAID-6 HDDs before separating data and metadata into separate media. For example, if the storage subsystem has 2 x SSDs and ~300 x 15K RPM or NL_SAS HDDs then most likely aggregate IOPS of RAID-6 HDD volumes will be higher than RAID-1 SSD volumes. It would be recommended to also assess the I/O performance on different configuration (dataAndMetadata vs dataOnly/metadataOnly NSDs) with some application workload + production scenarios before deploying the final solution.
GPFS has built-in replication features - consider using those instead of RAID replication (classically Raid-1). GPFS replication can work with storage devices that are in different racks, separated by significant physical space, and from different manufacturers. This can be more robust than RAID in a single box or single rack. Consider a fire scenario, or exploding power supply or similar physical disaster. Consider that storage devices and controllers from the same manufacturer may have the same bugs, defects, failures.
For high-resiliency (for e.g. metadataOnly) and if there are multiple storage across different failure domains (different racks/rooms/DC etc), it will be good to enable BOTH hardware RAID-1 as well as GPFS metadata replication enabled (at the minimum, -m 2). If there is single shared storage for GPFS file-system storage and metadata is separated from data, then RAID-1 would minimize administrative overhead compared to GPFS replication in the event of drive failure (since with GPFS replication across single SSD would require mmdeldisk/mmdelnsd/mmcrnsd/mmadddisk every time disk goes faulty and needs to be replaced). Best, -Kums From: Marc A Kaplan/Watson/IBM@IBMUS To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 04/19/2017 04:50 PM Subject: Re: [gpfsug-discuss] RAID config for SSD's - potential pitfalls Sent by: gpfsug-discuss-bounces@spectrumscale.org As I've mentioned before, RAID choices for GPFS are not so simple. Here are a couple points to consider, I'm sure there's more. And if I'm wrong, someone will please correct me - but I believe the two biggest pitfalls are: Some RAID configurations (classically 5 and 6) work best with large, full block writes. When the file system does a partial block write, RAID may have to read a full "stripe" from several devices, compute the differences and then write back the modified data to several devices. This is certainly true with RAID that is configured over several storage devices, with error correcting codes. SO, you do NOT want to put GPFS metadata (system pool!) on RAID configured with large stripes and error correction. This is the Read-Modify-Write Raid pitfall. GPFS has built-in replication features - consider using those instead of RAID replication (classically Raid-1). GPFS replication can work with storage devices that are in different racks, separated by significant physical space, and from different manufacturers. This can be more robust than RAID in a single box or single rack. Consider a fire scenario, or exploding power supply or similar physical disaster. Consider that storage devices and controllers from the same manufacturer may have the same bugs, defects, failures. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Kums is our performance guru, so weigh that appropriately and relative to my own remarks... Nevertheless, I still think RAID-5or6 is a poor choice for GPFS metadata. The write cache will NOT mitigate the read-modify-write problem of a workload that has a random or hop-scotch access pattern of small writes. In the end you've still got to read and write several times more disk blocks than you actually set out to modify. Same goes for any large amount of data that will be written in a pattern of non-sequential small writes. (Define a small write as less than a full RAID stripe). For sure, non-volatile write caches are a good thing - but not a be all end all solution. Relying on RAID-1 to protect your metadata may well be easier to administer, but still GPFS replication can be more robust. Doing both - belt and suspenders is fine -- if you can afford it. Either is buying 2x storage, both is 4x.
On 04/19/2017 12:53 PM, Buterbaugh, Kevin L wrote:
So you’re considering the purchase of a dual-controller FC storage array with 12 or so 1.8 TB SSD’s in it, with the idea being that that storage would be in its’ own storage pool and that pool would be the default location for I/O for your main filesystem … at least for smaller files. You intend to use mmapplypolicy nightly to move data to / from this pool and the spinning disk pools.
We did this and failed in interesting (but in retrospect obvious) ways. You will want to ensure that your users cannot fill your write target pool within a day. The faster the storage, the more likely that is to happen. Or else your users will get ENOSPC. You will want to ensure that your pools can handle the additional I/O from the migration in aggregate with all the user I/O. Or else your users will see worse performance from the fast pool than the slow pool while the migration is running. You will want to make sure that the write throughput of your slow pool is faster than the read throughput of your fast pool. In our case, the fast pool was undersized in capacity, and oversized in terms of performance. And overall the filesystem was oversubscribed (~100 10GbE clients, 8 x 10GbE NSD servers) So the fast pool would fill very quickly. Then I would switch the placement policy to the big slow pool and performance would drop dramatically, and then if I ran a migration it would either (depending on parameters) take up all the I/O to the slow pool (leaving none for the users), or else take forever (weeks) because the user I/O was maxing out the slow pool. Things should better today with QoS stuff, but your relative pool capacities (in our case it was like 1% fast, 99% slow) and your relative pool performance (in our case, slow pool had fewer IOPS than fast pool) are still going to matter a lot. -- Alex Chekholko chekh@stanford.edu
On Wed, 2017-04-19 at 14:23 -0700, Alex Chekholko wrote:
On 04/19/2017 12:53 PM, Buterbaugh, Kevin L wrote:
So you’re considering the purchase of a dual-controller FC storage array with 12 or so 1.8 TB SSD’s in it, with the idea being that that storage would be in its’ own storage pool and that pool would be the default location for I/O for your main filesystem … at least for smaller files. You intend to use mmapplypolicy nightly to move data to / from this pool and the spinning disk pools.
We did this and failed in interesting (but in retrospect obvious) ways. You will want to ensure that your users cannot fill your write target pool within a day. The faster the storage, the more likely that is to happen. Or else your users will get ENOSPC.
Eh? Seriously you should have a fail over rule so that when your "fast" pool is filled up it starts allocating in the "slow" pool (nice good names that are descriptive and less than 8 characters including termination character). Now there are issues when you get close to very full so you need to set the fail over to as sizeable bit less than the full size, 95% is a good starting point. The pool names size is important because if the fast pool is less than eight characters and the slow is more because you called in "nearline" (which is 9 including termination character) once the files get moved they get backed up again by TSM, yeah!!! The 95% bit comes about from this. Imagine you had 12KB left in the fast pool and you go to write a file. You open the file with 0B in size and then start writing. At 12KB you run out of space in the fast pool and as the file can only be in one pool you get a ENOSPC, and the file gets canned. This then starts repeating on a regular basis. So if you start allocating at significantly less than 100%, say 95% where that 5% is larger than the largest file you expect that file works, but all subsequent files get allocated in the slow pool, till you flush the fast pool. Something like this as the last two rules in your policy should do the trick. /* by default new files to the fast disk unless full, then to slow */ RULE 'new' SET POOL 'fast' LIMIT(95) RULE 'spillover' SET POOL 'slow' However in general your fast pool needs to have sufficient capacity to take your daily churn and then some. JAB. -- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom.
Some thoughts: you give typical cumulative usage values. However, a fast pool might matter most for spikes of the traffic. Do you have spikes driving your current system to the edge? Then: using the SSD pool for writes is straightforward (placement), using it for reads will only pay off if data are either pre-fetched to the pool somehow, or read more than once before getting migrated back to the HDD pool(s). Write traffic is less than read as you wrote. RAID1 vs RAID6: RMW penalty of parity-based RAIDs was mentioned, which strikes at writes smaller than the full stripe width of your RAID - what type of write I/O do you have (or expect)? (This may also be important for choosing the quality of SSDs, with RMW in mind you will have a comparably huge amount of data written on the SSD devices if your I/O traffic consists of myriads of small IOs and you organized the SSDs in a RAID5 or RAID6) I suppose your current system is well set to provide the required aggregate throughput. Now, what kind of improvement do you expect? How are the clients connected? Would they have sufficient network bandwidth to see improvements at all? 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: Andreas Hasse, Thorsten Moehring Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 17122 gpfsug-discuss-bounces@spectrumscale.org wrote on 04/19/2017 09:53:42 PM:
From: "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 04/19/2017 09:54 PM Subject: [gpfsug-discuss] RAID config for SSD's used for data Sent by: gpfsug-discuss-bounces@spectrumscale.org
Hi All,
We currently have what I believe is a fairly typical setup ? metadata for our GPFS filesystems is the only thing in the system pool and it?s on SSD, while data is on spinning disk (RAID 6 LUNs). Everything connected via 8 Gb FC SAN. 8 NSD servers. Roughly 1 PB usable space.
Now lets just say that you have a little bit of money to spend. Your I/O demands aren?t great - in fact, they?re way on the low end ? typical (cumulative) usage is 200 - 600 MB/sec read, less than that for writes. But while GPFS has always been great and therefore you don?t need to Make GPFS Great Again, you do want to provide your users with the best possible environment.
So you?re considering the purchase of a dual-controller FC storage array with 12 or so 1.8 TB SSD?s in it, with the idea being that that storage would be in its? own storage pool and that pool would be the default location for I/O for your main filesystem ? at least for smaller files. You intend to use mmapplypolicy nightly to move data to / from this pool and the spinning disk pools.
Given all that ? would you configure those disks as 6 RAID 1 mirrors and have 6 different primary NSD servers or would it be feasible to configure one big RAID 6 LUN? I?m thinking the latter is not a good idea as there could only be one primary NSD server for that one LUN, but given that: 1) I have no experience with this, and 2) I have been wrong once or twice before (<grin>), I?m looking for advice. Thanks!
? 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
participants (9)
-
Aaron Knister -
Alex Chekholko -
Buterbaugh, Kevin L -
Jonathan Buzzard -
Kumaran Rajaram -
Luis Bolinches -
Marc A Kaplan -
Simon Thompson (IT Research Support) -
Uwe Falke
