From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,71cbdf1522a29f53 X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1994-11-04 07:58:13 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!gatech!newsxfer.itd.umich.edu!news.itd.umich.edu!markc From: markc@citi.umich.edu (Mark Carter) Newsgroups: comp.unix.osf.misc Subject: Re: Autonomy of cell Date: 4 Nov 1994 15:58:13 GMT Organization: IFS Project, University of Michigan Distribution: world Message-ID: <39dlml$25a@lastactionhero.rs.itd.umich.edu> References: Reply-To: markc@citi.umich.edu NNTP-Posting-Host: atlanta.citi.umich.edu In article , dierick@eunet.be (Dominique Dierick) writes: |> |> If we have a DCE architecture where a cell |> spans multiple physical |> locations, we could have one CDS server and one |> Security Server in the |> cell, using in each physical location a |> replica of the CDS and the |> Security registry. |> Now suppose the network between one physical |> location and the place |> where the master replica of CDS and the |> SEcurity server reside comes |> down. |> Can the cut off cell continue to work as normal |> based on the replicas |> we have there ? Could users still be added ( |> guess not ) and servers |> still register into CDS ? This is important if |> the Unix server would |> reboot and servers would register their |> interface dynamically I guess. |> |> If servers couldn't register anymore because |> they need write access |> to the replica, can we define servers manually |> and statically in the |> CDS from the beginning ( avoiding them to write |> into CDS when they |> start up ) ? After all, the only thing which is |> dynamic about most |> servers is their endpoints, and those are |> better not put in CDS. |> |> I ask this question because it is not very |> clear from the docs how |> much autonomy a location has once cut off from |> the master CDS and |> sercurity. |> |> Tx. |> |> Dominique These are good questions, and I concur that the documentation is sparse about what actually happens in this situation. Essentially, you ask these two questions: 1) What happens to the security service in the portion of the cell that is equipped with a secondary security server if that portion is separated from the rest of the cell by a network outage? 2) What happens to the namespace service in the portion of the cell that is equipped with a additional CDS server if that portion is separated from the rest of the cell by a network outage? I think it is important to separate the security and CDS because these services behave differently, and the concepts and administrative tasks of replication are also different. I hope the following information is helpful. PHYSICAL LOCATIONS: In your message, when you say "where a cell spans multiple physical locations" I do not know whether this means several floors of a building, or a WAN. OSF recommends that cells be LAN-based. Putting a single cell together on a large WAN is not a good idea practically for several reasons, and I would recommend you create several smaller cells instead. I think intercell communication is more practical than replication for linking physically disparate locations together, but some DCE architectures can conflict with corporate culture and you may have to replicate. It is better to use intercell communication than to use replication for gluing physically disparate locations together. Replication is still a good idea, even in the LAN-based cell. REGISTRY REPLICATION: We know that secondary security servers always maintain a slave (read-only copy) of the registry and ACL databases for the cell. Updates of the master DBs are sent from the primary security server to the secondary servers via a propagation queuing mechanism. We know that one can designate that a particular secondary security server's slave database be made the master, but there is always only one master database at a time. Therefore, if links between a primary and secondary security server are broken, no writes can be sent to the primary server -- and no changes made at the primary site will be propagated to the secondary site -- until the connection is restored. Users at the secondary site can still dce_login (using a pre-existing account of course) to maintain authentication and ACLs can be evaluated (read) to enable authorization. We certainly cannot add any new users, and we probably cannot change ACLs at the secondary site during the down time. Machines may not fair as well as users because machines change their passwords quite often (every 10 minutes or so, as I recall), and this password change obviously requires a write. Local keytab files (/krb5/v5srvtab) are available to the hosts at the secondary site, but I do not think a writeable key service will be available. I often wonder what will happen to services running at the secondary site. We have not worked with replicated security servers here yet, but I am interested in what happens in this situation. I would like to know for sure that people (and machines) at the secondary site can continue to work. I would like to see how long it takes changes at the primary site to reach the secondary site after the connection is restored. In summary, replicating the security service is supposed to allow the cut off cell to work normally, but I am not sure how periodic machine password changes are handled. Also, bear in mind that security replication can consume prodigious administrative time. CDS: Namespace replication differs from security service replication. Additional CDS servers do not necessarily maintain "read-only" information because CDS replication actually takes place at the level of the CDS directory. Creating a CDS directory results in the creation of a "master replica" in the server's clearinghouse. The use of the term master "replica" can be very misleading because master replicas are always created when a CDS directory is created, even when there is only one CDS server, and CDS replication is not yet established. (I wish another term could have been used, and I am always glad I did not have to write the DCE documentation!) After CDS replication is established (i.e., more than one CDS server is running, and each is maintaining its own clearinghouse), read-only replicas are created from the master replicas. These read-only replicas are stored in a different clearinghouse from where the master replica is stored. CDS Replication is a result of storing a master and a read-only replica (CDS directory) in separate places (clearinghouses) on separate hosts. The twist is that the master replica can be created in any clearinghouse in the cell. When one creates a directory, the master replica is automatically placed in a default (which is usually the first) clearinghouse. One can override this behavior and specify where to place the master replica when one create the CDS directory: % cdscp create dir /.:/foo clearinghouse /.:/second_ch This means that the system administrator can locate "local" portions of the namespace on the closest clearinghouse and, in theory, eliminate or at least mitigate some of the namespace problems created when the cell network is divided. Finally, to server registration. OSF recommends that the information about a server that is kept in the namespace be persistent and not change very often. (We do not rename things in real life very often either.) When one bring up a server on host A, the server can automatically export it's bindings to a CDS entry indicating to other's that the service is available on host A. Alternatively, a system administrator can add the server entry to the namespace as part of service configuration. Whether the service is running or down, the server entry can remain in the namespace because the server entry only contains the protocol sequence and host address. No port numbers are included. When the service is runing on Host A, Host A's endpoint map will contain valid endpoints, and a client can construct a complete binding using namespace APIs to find out what host is running the service and the port number on that host. This is analogous to [always] knowing where someone lives, and how to get there (ip address and protocol sequence), but having to check whether they are home at any given time with a telephone call. In summary, if one plan where to put master replicas (storing "local" namespace entries on the "local" clearinghouse), and export only incomplete binding information to the namespace, one can see that a secondary CDS server can provide acceptable name resolution while cut off from the cell's primary CDS server. The primary and secondary servers will not be able to talk to each other, and no skulks can occur, but users and services at the secondary site can still use (and change) "local" namespace resources. We have limited experience with namespace replication here, but two things I know for sure: One must plan namespace configuration carefully, and one should count on spending considerable sys admin time administrating CDS replication. -Mark