Cool Solutions

Setting up a Clustered NSS Volume in a DSfW Environment



By:

February 25, 2009 10:43 am

Reads:6,926

Comments:0

Score:Unrated

Authors : Shreyas Rao
Suresh Kumar GP

Synopsis:

With the introduction of Novell Domain Services for Windows (DSfW), it is now possible for users to log in and authenticate to both eDirectory and Active directory from a Windows workstation without requiring multiple logins or having the Novell Client, and access the NSS volumes without the client.

This AppNote provides a step by step procedure to configure and access the clustered NSS Volume on a DSfW server and access the volumes from Windows without using the Novell client.

Introduction to some of terms/technologies used in this AppNote:

NCS: Novell Cluster Services is a server clustering system that ensures high availability and manageability of critical network resources including data, applications, and services. It is a multinode clustering product for Linux that is enabled for Novell eDirectory and supports failover, fail back, and migration of individually managed cluster resources.

DSfW: Novell Domain Services for Windows (DSfW), a component of Open Enterprise Server (OES) 2 SP1, creates seamless cross-authentication capabilities between Windows/Active Directory and Novell OES 2 Linux/eDirectory servers. This suite of technologies allows Novell customers with Windows networking environments to set up one or more “virtual” Active Directory domains in an eDirectory tree. Users can then log in and authenticate to both eDirectory and Active Directory from a Windows workstation without requiring multiple logins or having the Novell Client for Windows installed With Domain Services for Windows. eDirectory users can use familiar Windows desktop operations to access file services regardless of the platform/operating system where the service resides. Users can access Novell Storage Services (NSS) volumes on Linux servers by using Samba shares or NTFS files on Windows servers that use CIFS shares. eDirectory users can also access shares in trusted Active Directory forests.

More information on these is available at: http://www.novell.com/documentation/oes2/

Set up:

Let us consider an example of a DSfW server set up where there is a Master eDirectory replica – which is a eDirectory server running on a OES 2 SP1 server.

This Tree has an OES 2 SP1 server attached as a FRD server in the domain ‘frd.com’.

There is also an ADC server attached at this level to the server.

We will refer these servers are Master server, FRD server and ADC server henceforth in this document.

A Windows client is added to the FRD domain.

Note:

Forest Root Domain (FRD): The domain that provides the base (foundation) directory forest. It is usually the first domain that you create in your directory forest and is known as the default forest root domain.

Additional Domain Controller (ADC): It is an added server used to improve the availability and reliability of network services. If you have an additional domain controller, it helps in fault tolerance and balances the load of existing domain controllers. It also provides additional infrastructure support to the sites. An ADC will have all the parameters same its peer in that domain.

The Tree view is as shown below.

In the above shown screen shot,

The server ‘systst-ts-124′ is the Master server.
The server ‘systst-ts-123′ is the FRD server.
The server ‘systst-ts-126′ is the ADC server.

The installation of the FRD server and ADC server is elaborately mentioned in the novell documentation:

http://www.novell.com/documentation/oes2/acc_dsfw_lx/index.html?page=/documentation/oes2/acc_dsfw_lx/data/bookinfo.html#bookinfo

Once the above mentioned DSfW setup is configured, the following operations are done to set up a Clustered NSS Volume in a DSfW Environment:

  1. Set up NCS on the on the FRD server and the ADC server.
  2. Create a shared pool and two volumes on one of the nodes.
  3. Create two users and home directories for the same.
  4. Assigned trustee rights to their respective home directories.
  5. Create a samba share for the two cluster shared volume
  6. Configure the samba and NCS scripts to cluster enable the NSS volume for clustering
  7. Testing the configuration
  1. Set up NCS on the on the FRD server and the ADC server
    1. If you are planning to set up iSCSI based NCS cluster, then we need to set up iSCSI before setting up the NCS. This involves configuring the FRD server and the ADC server as the iSCSI initiators, initializing a disk and then sharing that disk for NCS.

      The configuration of the iSCSI is explained:

      http://www.novell.com/documentation/oes2/stor_iscsi_nw/index.html?page=/documentation/oes2/stor_iscsi_nw/data/h2mdblj1.html

      We can skip the above mentioned if your using a Shared SAN box between FRD server and ADC server.

    2. After the iSCSI configuration on the FRD server and ADC server, we need to initialize the shared disk and mark it sharable for clustering.
    3. On FRD server, open a terminal window, type nssmu and press enter.
    4. From devices option, select the shared disk corresponding to our above created iSCSI disk and press F3 to initialize the disk. Initialization will prepare the disk for our use. Press Y to confirm initialization and then press F6 to mark it shareable for clustering.
    5. To exit the NSS utility press Esc until you reach back to terminal prompt.
    6. On this terminal window type “yast2 ncs” to start NCS configuration wizard.
    7. Enter the password of tree admin user when asked during wizard and click ok.
    8. After authentication, you would be presented with main “NCS” configuration screen.
    9. On the main NCS configuration screen, select “New cluster” and enter FDN of the new cluster you wish to build in “cluster FDN” field.
    10. In the screenshot above , cluster_dsfw is the name of cluster, o=novell is where the cluster object would be created in eDirectory
    11. Enter an IP address in “cluster IP address” field. This is Master IP address resource and will be bound to the master node and will remain with the master node regardless of which server is the master node.
    12. From the next drop down list, select the shared media corresponding to your iSCSI or SAN shared disk and click next.
    13. Confirm in the next window that NCS configuration wizard has correctly identified your current node and click finish.
    14. The wizard will end after the configuration is finished.
    15. We now have a single node cluster. To add another node to the cluster, login to the second machine with OES2 SP1.
  2. Add another node to already existing cluster
    1. On the ADC server, launch “yast2 ncs” from a terminal window.
    2. Wait for the wizard to launch and enter the eDirectory admin password in the required field and click ok.
    3. You would be presented with a similar NCS configuration window as were presented during configuration of NCS on our first node (FCS).
    4. To add this machine to the already created cluster, on the main “Novell Cluster Services Configuration” window select “existing cluster” and enter the FDN detail of the cluster we wish to add this node to (cluster cluster_dsfw we created above). All other fields would get disabled.
    5. Click next and finish buttons to add this machine as node to the cluster.
    6. To verify that out NCS configuration is correct, open a terminal window on booth NCS nodes (FRD server and ADC) one by one and execute command “cluster view”. If you see information similar to the screenshot below on both the machines, your configuration is correct.
  3. Create a shared pool and a volume on one of the nodes.
    1. Login to the FRD server as root and in a terminal window run nssmu to launch NSS Management Utility.
    2. Select Pools from the Main menu and press Enter key.
    3. Press Insert key to create a new pool.
    4. Enter the Pool name, say “CLUSTPOOL” and press Enter key.
    5. Select the iSCSI or SAN shared device to create a new cluster pool.
    6. Specify the size of the pool and press Enter
    7. Assign a IP address for the newly created pool, Here The IP given is 164.99.183.56
    8. Apply and then press Enter to complete the creation of the pool on the shared device.
    9. Press Esc key to come back to main menu of NSS Management Utility.
    10. Select Volumes from the main menu and press Enter.
    11. Press Insert key.
    12. Enter a name for the volume say “CLUSTVOL1″.

    We now have a Clustered NSS Volume on a DSfW server set up.

  4. User creation, Rights assignments and Share the cluster volume using samba.

  5. Create a User in the FRD Domain
    1. In the iManager, create a user, say user1.
    2. These users are created in the FRD.com domain.
    3. While creating the users, make sure Home directories are created for these users.
  6. Assign trustee rights to their respective home directories:
    1. All users will have all rights to their respective home directory by default. Suppose you want to give access to the NSS Volume as well, you can give it in the iManager
    2. Traverse along – Roles and tasks,
    3. Select ‘Files and Folders’
    4. Select ‘Properties’
    5. Select the eDirectory object for the CLUSTVOL1
    6. Click on ‘Rights’ Tab
    7. Add the user ‘user1′ and give necessary rights.
  7. Create samba share for the cluster shared volume
    1. In iManager, Traverse along the ‘Roles and Tasks’
    2. Select ‘File Protocols’
    3. Select samba
    4. Open the eDirectory object for the cluster resource
    5. Check if Samba is running
    6. Click on the ‘Shares’ Tab
    7. Select new share
    8. Enter a name for the samba share of the Clustered Volume
    9. Enter the Path – /media/nss/CLUSTVOL1
    10. Click ok
  8. Configure the samba scripts
    1. Create a new Directory ‘samba’ on the cluster volume CLUSTVOL1
    2. Create 3 subdirectories – log ,etc and locks in the samba folder
    3. Copy the existing smb.conf file from the /etc/smb/ folder of one of the machines to the etc folder on the Cluster volume.
      cp /etc/smb.conf  /media/nss/CLUSTVOL1/samba/etc/
    4. Edit the smb.conf in the cluster volume, delete all other existing local shares info and add or modify only the below mentioned under ‘[global]‘ section:
      1. Modify the existing netbios name to a different name , here we changed to ‘DSFWCLUSTER
      2. Add the following entries:
                            
        bind interfaces only = yes                
        interfaces = 164.99.183.56         
        pid directory = /media/nss/CLUSTVOL1/samba/locks
        
        Note: the IP address entered there is the cluster shared pool resource IP
      3. Add the line ‘browseable =yes’ under the cluster share
        [clustvol1]                                      
        path = /media/nss/CLUSTVOL1 
        read only = No 
        browseable = yes 
         inherit acls = yes 
         comment =
         
         
  9. Configure the NCS Scripts
    1. Add the following lines in the NSS resource load scripts SAMBA_ROOT=/media/nss/CLUSTVOL1/samba 
      exit_on_error /usr/sbin/nmbd -l $SAMBA_ROOT/log -s $SAMBA_ROOT/etc/smb.conf 
      exit_on_error /usr/sbin/smbd -l $SAMBA_ROOT/log -s $SAMBA_ROOT/etc/smb.conf 
      exit 0
    2. Add the following lines in the  NSS resource unload scripts SAMBA_ROOT=/media/nss/CLUSTVOL1/samba
      ignore_error killproc -p $SAMBA_ROOT/locks/nmbd-smb.conf.pid /usr/sbin/nmbd
      ignore_error killproc -p $SAMBA_ROOT/locks/smbd-smb.conf.pid /usr/sbin/smbd
      sleep 10

    3. Offline and Online resource. Scripts will get effective.
    Note: During the Migration, the smbd and nmbd will be restarted. If you have any local samba shares, and still don’t want the smbd and nmbd process to be restarted or killed during cluster resource migration, then edit the local /etc/samba/smb.conf files of two nodes and add these entries to the global section.
    bind interfaces only = yes 
    interfaces = 164.99.182.80     <- local server IP address or the cluster node IP address.
    
    

    Now different instances of smbd and nmbd process will be run for local and cluster configuration scripts.

  10. Testing the Clustered NSS Volume in a DSfW Environment works fine after migration:
    1. On the Windows client, Login as the user1
    2. On the Explorer, click on ‘My network places’ *
    3. In ‘My network places’, You should be able to see the domain ‘FRD’, click on it.
    4. Inside the FRD Domain, netbios name DSFWCLUSTER will be available
    5. Go to any folder on the share, you should be able to do it.
    6. Keep the Folder open.
    7. Migrate the Clustered Volume from the FRD server to the ADC server in iManager
    8. Once the Cluster Migration is complete, a refresh on the Client should suffice to continue accessing the files in the Folder.

    Thus the user on the Client will be able to access the files seamlessly even if the Volume will have migrated.

*There are others ways to map to the cluster volumes as well like Mapping Network drives using NSS Pool resource IP or by netbios name.

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.
Loading ... Loading ...

Categories: Uncategorized

Disclaimer: This content is not supported by Novell. It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test it thoroughly before using it in a production environment.

Comment

RSS