maybe a silly question about "old school" gpfs
Hello again, to understand better GPFS, recently i build up an test gpfs cluster using some old hardware that was going to be retired. THe storage was SAN devices, so instead to use native raids I went for the old school gpfs. the configuration is basically: 3x servers 3x san storages 2x san switches I did no zoning, so all the servers can see all the LUNs, but on nsd creation I gave each LUN a primary, secondary and third server. with the following rule: STORAGE primary secondary tertiary storage1 server1 server2 server3 storage2 server2 server3 server1 storage3 server3 server1 server2 looking at the mmcrnsd, it was my understanding that the primary server is the one that wrote on the NSD unless it fails, then the following server take the ownership of the lun. Now come the question: when i did from server 1 a dd surprisingly i discovered that server1 was writing to all the luns. the other 2 server was doing nothing. this behaviour surprises me because on GSS only the RG owner can write, so one server "ask" the other server to write to his own RG's.In fact on GSS can be seen a lot of ETH traffic and io/s on each server. While i understand that the situation it's different I'm puzzled about the fact that all the servers seems able to write to all the luns. SAN deviced usually should be connected to one server only, as paralled access could create data corruption. In environments where you connect a SAN to multiple servers ( example VMWARE cloud) its softeware task to avoid data overwriting between server ( and data corruption ). Honestly, what i was expecting is: server1 writing on his own luns, and data traffic ( ethernet) to the other 2 server , basically asking *them* to write on the other luns. I dont know if this behaviour its normal or not. I triied to find a documentation about that, but could not find any. Could somebody tell me if this _/"every server write to all the luns"/_ its intended or not? Thanks in advance, Salvatore
Hi Salvatore, If you are doing the IO on the NSD server itself and it can see all of the NSDs it will use its "local” access to write to the LUNS. You need some GPFS clients to see the workload spread across all of the NSD servers. Vic
On 5 Nov 2014, at 10:15, Salvatore Di Nardo <sdinardo@ebi.ac.uk> wrote:
Hello again, to understand better GPFS, recently i build up an test gpfs cluster using some old hardware that was going to be retired. THe storage was SAN devices, so instead to use native raids I went for the old school gpfs. the configuration is basically:
3x servers 3x san storages 2x san switches
I did no zoning, so all the servers can see all the LUNs, but on nsd creation I gave each LUN a primary, secondary and third server. with the following rule:
STORAGE primary secondary tertiary storage1 server1 server2 server3 storage2 server2 server3 server1 storage3 server3 server1 server2
looking at the mmcrnsd, it was my understanding that the primary server is the one that wrote on the NSD unless it fails, then the following server take the ownership of the lun.
Now come the question: when i did from server 1 a dd surprisingly i discovered that server1 was writing to all the luns. the other 2 server was doing nothing. this behaviour surprises me because on GSS only the RG owner can write, so one server "ask" the other server to write to his own RG's.In fact on GSS can be seen a lot of ETH traffic and io/s on each server. While i understand that the situation it's different I'm puzzled about the fact that all the servers seems able to write to all the luns.
SAN deviced usually should be connected to one server only, as paralled access could create data corruption. In environments where you connect a SAN to multiple servers ( example VMWARE cloud) its softeware task to avoid data overwriting between server ( and data corruption ).
Honestly, what i was expecting is: server1 writing on his own luns, and data traffic ( ethernet) to the other 2 server , basically asking them to write on the other luns. I dont know if this behaviour its normal or not. I triied to find a documentation about that, but could not find any.
Could somebody tell me if this "every server write to all the luns" its intended or not?
Thanks in advance, Salvatore _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
I understand that my test its a bit particular because the client was also one of the servers. Usually clients don't have direct access to the storages, but still it made think, hot the things are supposed to work. For example i did another test with 3 dd's, one each server. All the servers was writing to all the luns. In other words a lun was accessed in parallel by 3 servers. Its that a problem, or gpfs manage properly the concurrency and avoid data corruption? I'm asking because i was not expecting a server to write to an NSD he doesn't own, even if its locally available. I thought that the general availablity was for failover, not for parallel access. Regards, Salvatore On 05/11/14 10:22, Vic Cornell wrote:
Hi Salvatore,
If you are doing the IO on the NSD server itself and it can see all of the NSDs it will use its "local” access to write to the LUNS.
You need some GPFS clients to see the workload spread across all of the NSD servers.
Vic
On 5 Nov 2014, at 10:15, Salvatore Di Nardo <sdinardo@ebi.ac.uk <mailto:sdinardo@ebi.ac.uk>> wrote:
Hello again, to understand better GPFS, recently i build up an test gpfs cluster using some old hardware that was going to be retired. THe storage was SAN devices, so instead to use native raids I went for the old school gpfs. the configuration is basically:
3x servers 3x san storages 2x san switches
I did no zoning, so all the servers can see all the LUNs, but on nsd creation I gave each LUN a primary, secondary and third server. with the following rule:
STORAGE primary secondary tertiary storage1 server1 server2 server3 storage2 server2 server3 server1 storage3 server3 server1 server2
looking at the mmcrnsd, it was my understanding that the primary server is the one that wrote on the NSD unless it fails, then the following server take the ownership of the lun.
Now come the question: when i did from server 1 a dd surprisingly i discovered that server1 was writing to all the luns. the other 2 server was doing nothing. this behaviour surprises me because on GSS only the RG owner can write, so one server "ask" the other server to write to his own RG's.In fact on GSS can be seen a lot of ETH traffic and io/s on each server. While i understand that the situation it's different I'm puzzled about the fact that all the servers seems able to write to all the luns.
SAN deviced usually should be connected to one server only, as paralled access could create data corruption. In environments where you connect a SAN to multiple servers ( example VMWARE cloud) its softeware task to avoid data overwriting between server ( and data corruption ).
Honestly, what i was expecting is: server1 writing on his own luns, and data traffic ( ethernet) to the other 2 server , basically asking *them* to write on the other luns. I dont know if this behaviour its normal or not. I triied to find a documentation about that, but could not find any.
Could somebody tell me if this _/"every server write to all the luns"/_ its intended or not?
Thanks in advance, Salvatore _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org <http://gpfsug.org> http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
On 5 Nov 2014, at 10:33, Salvatore Di Nardo <sdinardo@ebi.ac.uk> wrote:
I understand that my test its a bit particular because the client was also one of the servers. Usually clients don't have direct access to the storages, but still it made think, hot the things are supposed to work.
For example i did another test with 3 dd's, one each server. All the servers was writing to all the luns. In other words a lun was accessed in parallel by 3 servers.
Its that a problem, or gpfs manage properly the concurrency and avoid data corruption?
Its not a problem if you use locks. Remember the clients - even the ones running on the NSD servers are talking to the filesystem - not to the LUNS/NSDs directly. It is the NSD processes that talk to the NSDs. So loosely speaking it is as if all of the processes you are running were running on a single system with a local filesystem So yes - gpfs is designed to manage the problems created by having a distributed, shared filesystem, and does a pretty good job IMHO.
I'm asking because i was not expecting a server to write to an NSD he doesn't own, even if its locally available. I thought that the general availablity was for failover, not for parallel access.
Bear in mind that GPFS supports a number of access models, one of which is where all of the systems in the cluster have access to all of the disks. So parallel access is most commonly used for failover, but that is not the limit of its capabilities. Vic
Regards, Salvatore
On 05/11/14 10:22, Vic Cornell wrote:
Hi Salvatore,
If you are doing the IO on the NSD server itself and it can see all of the NSDs it will use its "local” access to write to the LUNS.
You need some GPFS clients to see the workload spread across all of the NSD servers.
Vic
On 5 Nov 2014, at 10:15, Salvatore Di Nardo <sdinardo@ebi.ac.uk <mailto:sdinardo@ebi.ac.uk>> wrote:
Hello again, to understand better GPFS, recently i build up an test gpfs cluster using some old hardware that was going to be retired. THe storage was SAN devices, so instead to use native raids I went for the old school gpfs. the configuration is basically:
3x servers 3x san storages 2x san switches
I did no zoning, so all the servers can see all the LUNs, but on nsd creation I gave each LUN a primary, secondary and third server. with the following rule:
STORAGE primary secondary tertiary storage1 server1 server2 server3 storage2 server2 server3 server1 storage3 server3 server1 server2
looking at the mmcrnsd, it was my understanding that the primary server is the one that wrote on the NSD unless it fails, then the following server take the ownership of the lun.
Now come the question: when i did from server 1 a dd surprisingly i discovered that server1 was writing to all the luns. the other 2 server was doing nothing. this behaviour surprises me because on GSS only the RG owner can write, so one server "ask" the other server to write to his own RG's.In fact on GSS can be seen a lot of ETH traffic and io/s on each server. While i understand that the situation it's different I'm puzzled about the fact that all the servers seems able to write to all the luns.
SAN deviced usually should be connected to one server only, as paralled access could create data corruption. In environments where you connect a SAN to multiple servers ( example VMWARE cloud) its softeware task to avoid data overwriting between server ( and data corruption ).
Honestly, what i was expecting is: server1 writing on his own luns, and data traffic ( ethernet) to the other 2 server , basically asking them to write on the other luns. I dont know if this behaviour its normal or not. I triied to find a documentation about that, but could not find any.
Could somebody tell me if this "every server write to all the luns" its intended or not?
Thanks in advance, Salvatore _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org <http://gpfsug.org/> http://gpfsug.org/mailman/listinfo/gpfsug-discuss <http://gpfsug.org/mailman/listinfo/gpfsug-discuss>
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss <http://gpfsug.org/mailman/listinfo/gpfsug-discuss>
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Hi Salvatore, GSS and GPFS systems are different beasts. In a traditional GPFS configuration I would expect any NSD server to write to any/all LUN's that it can see as a local disk providing it's part of the same FS. In GSS there is effectively a software RAID level added on top of the disks, with this I would expect only the RG owner to write down to the vdisk. As for corruption, GPFS uses a token system to manage access to LUN's, Metadata, etc. Kind Regards, Laurence Horrocks-Barlow Linux Systems Software Engineer OCF plc Tel: +44 (0)114 257 2200 Fax: +44 (0)114 257 0022 Web: www.ocf.co.uk <http://www.ocf.co.uk> Blog: blog.ocf.co.uk <http://blog.ocf.co.uk> Twitter: @ocfplc <http://twitter.com/#%21/ocfplc> OCF plc is a company registered in England and Wales. Registered number 4132533, VAT number GB 780 6803 14. Registered office address: OCF plc, 5 Rotunda Business Centre, Thorncliffe Park, Chapeltown, Sheffield, S35 2PG. This message is private and confidential. If you have received this message in error, please notify us and remove it from your system. On 11/05/2014 10:33 AM, Salvatore Di Nardo wrote:
I understand that my test its a bit particular because the client was also one of the servers. Usually clients don't have direct access to the storages, but still it made think, hot the things are supposed to work.
For example i did another test with 3 dd's, one each server. All the servers was writing to all the luns. In other words a lun was accessed in parallel by 3 servers.
Its that a problem, or gpfs manage properly the concurrency and avoid data corruption? I'm asking because i was not expecting a server to write to an NSD he doesn't own, even if its locally available. I thought that the general availablity was for failover, not for parallel access.
Regards, Salvatore
On 05/11/14 10:22, Vic Cornell wrote:
Hi Salvatore,
If you are doing the IO on the NSD server itself and it can see all of the NSDs it will use its "local” access to write to the LUNS.
You need some GPFS clients to see the workload spread across all of the NSD servers.
Vic
On 5 Nov 2014, at 10:15, Salvatore Di Nardo <sdinardo@ebi.ac.uk <mailto:sdinardo@ebi.ac.uk>> wrote:
Hello again, to understand better GPFS, recently i build up an test gpfs cluster using some old hardware that was going to be retired. THe storage was SAN devices, so instead to use native raids I went for the old school gpfs. the configuration is basically:
3x servers 3x san storages 2x san switches
I did no zoning, so all the servers can see all the LUNs, but on nsd creation I gave each LUN a primary, secondary and third server. with the following rule:
STORAGE primary secondary tertiary storage1 server1 server2 server3 storage2 server2 server3 server1 storage3 server3 server1 server2
looking at the mmcrnsd, it was my understanding that the primary server is the one that wrote on the NSD unless it fails, then the following server take the ownership of the lun.
Now come the question: when i did from server 1 a dd surprisingly i discovered that server1 was writing to all the luns. the other 2 server was doing nothing. this behaviour surprises me because on GSS only the RG owner can write, so one server "ask" the other server to write to his own RG's.In fact on GSS can be seen a lot of ETH traffic and io/s on each server. While i understand that the situation it's different I'm puzzled about the fact that all the servers seems able to write to all the luns.
SAN deviced usually should be connected to one server only, as paralled access could create data corruption. In environments where you connect a SAN to multiple servers ( example VMWARE cloud) its softeware task to avoid data overwriting between server ( and data corruption ).
Honestly, what i was expecting is: server1 writing on his own luns, and data traffic ( ethernet) to the other 2 server , basically asking *them* to write on the other luns. I dont know if this behaviour its normal or not. I triied to find a documentation about that, but could not find any.
Could somebody tell me if this _/"every server write to all the luns"/_ its intended or not?
Thanks in advance, Salvatore _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org <http://gpfsug.org> http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
yes, this behaviour is normal, and a bit annoying sometimes, but GPFS doesn't really like (or isn't designed) to run stuff on the NSDs directly. the GSS probably send the data to the other NSD to distribute the (possible) compute cost from the raid, where there is none for regular LUN access. (but you also shouldn't be running on the GSS NSDs ;) stijn On 11/05/2014 11:15 AM, Salvatore Di Nardo wrote:
Hello again, to understand better GPFS, recently i build up an test gpfs cluster using some old hardware that was going to be retired. THe storage was SAN devices, so instead to use native raids I went for the old school gpfs. the configuration is basically:
3x servers 3x san storages 2x san switches
I did no zoning, so all the servers can see all the LUNs, but on nsd creation I gave each LUN a primary, secondary and third server. with the following rule:
STORAGE primary secondary tertiary storage1 server1 server2 server3 storage2 server2 server3 server1 storage3 server3 server1 server2
looking at the mmcrnsd, it was my understanding that the primary server is the one that wrote on the NSD unless it fails, then the following server take the ownership of the lun.
Now come the question: when i did from server 1 a dd surprisingly i discovered that server1 was writing to all the luns. the other 2 server was doing nothing. this behaviour surprises me because on GSS only the RG owner can write, so one server "ask" the other server to write to his own RG's.In fact on GSS can be seen a lot of ETH traffic and io/s on each server. While i understand that the situation it's different I'm puzzled about the fact that all the servers seems able to write to all the luns.
SAN deviced usually should be connected to one server only, as paralled access could create data corruption. In environments where you connect a SAN to multiple servers ( example VMWARE cloud) its softeware task to avoid data overwriting between server ( and data corruption ).
Honestly, what i was expecting is: server1 writing on his own luns, and data traffic ( ethernet) to the other 2 server , basically asking *them* to write on the other luns. I dont know if this behaviour its normal or not. I triied to find a documentation about that, but could not find any.
Could somebody tell me if this _/"every server write to all the luns"/_ its intended or not?
Thanks in advance, Salvatore
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
In case of SAN connectivity, all nodes can write to disks. This avoids going over the network to get to disks. Only when local access isn't present either due to connectivity or zoning will it use the defined NSD server. If there is a need to have the node always use a NSD server, you can enforce it via mount option -o usensdserver=always If the first nsd server is down, it will use the next NSD server in the list. In general NSD servers are a priority list of servers rather than a primary/secondary config which is the case when using native raid. Also note that multiple nodes accessing the same disk will not cause corruption as higher level token mgmt in GPFS will take care of data consistency. Regards Kalyan C Gunda STSM, Elastic Storage Development Member of The IBM Academy of Technology EGL D Block, Bangalore From: Salvatore Di Nardo <sdinardo@ebi.ac.uk> To: gpfsug main discussion list <gpfsug-discuss@gpfsug.org> Date: 11/05/2014 03:44 PM Subject: [gpfsug-discuss] maybe a silly question about "old school" gpfs Sent by: gpfsug-discuss-bounces@gpfsug.org Hello again, to understand better GPFS, recently i build up an test gpfs cluster using some old hardware that was going to be retired. THe storage was SAN devices, so instead to use native raids I went for the old school gpfs. the configuration is basically: 3x servers 3x san storages 2x san switches I did no zoning, so all the servers can see all the LUNs, but on nsd creation I gave each LUN a primary, secondary and third server. with the following rule: |-------------------+---------------+--------------------+---------------| |STORAGE |primary |secondary |tertiary | |-------------------+---------------+--------------------+---------------| |storage1 |server1 |server2 |server3 | |-------------------+---------------+--------------------+---------------| |storage2 |server2 |server3 |server1 | |-------------------+---------------+--------------------+---------------| |storage3 |server3 |server1 |server2 | |-------------------+---------------+--------------------+---------------| looking at the mmcrnsd, it was my understanding that the primary server is the one that wrote on the NSD unless it fails, then the following server take the ownership of the lun. Now come the question: when i did from server 1 a dd surprisingly i discovered that server1 was writing to all the luns. the other 2 server was doing nothing. this behaviour surprises me because on GSS only the RG owner can write, so one server "ask" the other server to write to his own RG's.In fact on GSS can be seen a lot of ETH traffic and io/s on each server. While i understand that the situation it's different I'm puzzled about the fact that all the servers seems able to write to all the luns. SAN deviced usually should be connected to one server only, as paralled access could create data corruption. In environments where you connect a SAN to multiple servers ( example VMWARE cloud) its softeware task to avoid data overwriting between server ( and data corruption ). Honestly, what i was expecting is: server1 writing on his own luns, and data traffic ( ethernet) to the other 2 server , basically asking them to write on the other luns. I dont know if this behaviour its normal or not. I triied to find a documentation about that, but could not find any. Could somebody tell me if this "every server write to all the luns" its intended or not? Thanks in advance, Salvatore_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
You can designate how many of the nodes do token management as well. mmlscluster should show which are "manager"s. Under some circumstances you may want to increase the defaults on heavily used file systems using mmchnode, especially with few NSDs and many writers. Ed Wahl OSC ________________________________________ From: gpfsug-discuss-bounces@gpfsug.org [gpfsug-discuss-bounces@gpfsug.org] on behalf of Salvatore Di Nardo [sdinardo@ebi.ac.uk] Sent: Wednesday, November 05, 2014 5:46 AM To: gpfsug main discussion list Subject: Re: [gpfsug-discuss] maybe a silly question about "old school" gpfs On 05/11/14 10:25, Kalyan Gunda wrote:
Also note that multiple nodes accessing the same disk will not cause corruption as higher level token mgmt in GPFS will take care of data consistency.
This is exactly what I wanted to be sure. Thanks! _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
On Wed, 2014-11-05 at 10:15 +0000, Salvatore Di Nardo wrote: [SNIP]
Now come the question: when i did from server 1 a dd surprisingly i discovered that server1 was writing to all the luns. the other 2 server was doing nothing. this behaviour surprises me because on GSS only the RG owner can write, so one server "ask" the other server to write to his own RG's.In fact on GSS can be seen a lot of ETH traffic and io/s on each server. While i understand that the situation it's different I'm puzzled about the fact that all the servers seems able to write to all the luns.
The difference is that in GSS the NSD servers are in effect doing software RAID on the disks. Therefore they and they alone can write to the NSD. In the traditional setup the NSD is on a RAID device on SAN controller and multiple machines are able to access the block device at the same time with token management in GPFS preventing corruption. I guess from a technical perspective you could have the GSS software RAID distributed between the NSD servers, but that would be rather more complex software and it is no surprise IBM have gone down the easy route. JAB. -- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom.
participants (7)
-
Ed Wahl -
Jonathan Buzzard -
Kalyan Gunda -
Laurence Horrocks- Barlow -
Salvatore Di Nardo -
Stijn De Weirdt -
Vic Cornell
