SpyderByte.com: OpenVMS.org dcl.OpenVMS.org de.OpenVMS.org fr.OpenVMS.org Tru64.org
Island Computers

Home Contribute News, Jobs, Press Releases, etc. Advertise on OpenVMS.org About/Contact Search News Archives
More Links
  • downloadable
  • downloadable
  • OpenVMS Consultant
  • << Logical Names (Part 4)
  • << Logical Names (Part 3)
  • << Logical Names (Part 2)
  • << Logical Names (Part 1)
  • www.rlgsc.com
  • gezelter@rlgsc.com
  • Printer friendly version
    Share this story

    OpenVMS.org Features
    Hobbyist Registration
    Featured Articles
    VMS Audio Update (archives)
    Golden Eggs
    Need Help
    Forums, Lists & Groups
    Docs, Manuals & Tutorials, etc.
    VMS Beginners
    Developer Resources
    Misc. Resources
    For Hire
    Hardware Vendors
    Training & Education
    Opensource & Freeware
    Security, Patches, ECOs
    Security Advisories
    Alphaserver firmware
    Older Alphaserver firmware
    HP OpenVMS Roadmap
    VMS Software Inc Roadmap

    HPSC: OpenVMS
    Hobbyist Forums
    Usenet: comp.os.vms
    StackOverflow (VMS)

    OpenVMS.org Info
    OpenVMS.org Staff:
    Ken Farmer Follow OpenVMS.Org on Twitter
    Ian Miller Follow Ian Miller on Twitter
    Susan Skonetski Follow MamaVMS on Twitter
    Submit News

    Google Ads

    OpenVMS.org Polls
    What brand of smartphone do you use?
    Don't have smartphone

    [ results | polls ]

    Latest News

    The OpenVMS Consultant: Logical Names: Part 5
    Posted by Bob Gezelter on Monday March 03 2003 @ 12:59PM EST

    In a prior installment, I promised a slightly more sophisticated example using logical names. A straightforward, yet extraordinarily common situation presents a logical first example: DISK$USERS (or as I often encounter it, DISK$department, where department can be anything from ACCOUNTING to ZOOLOGY).

    The goal is simple and straightforward: create a directory structure on the disk, with each department viewing their branch of the tree as a logically separate disk/directory structure. In days before virtual volume managers, this permitted system managers to migrate segments of the user community from one disk to another as workloads waxed and waned; matching backup schedules and scale to each department's budget and needs. Even with virtual volume management systems and Enterprise Storage Arrays, this technique allows users or teams of users to create their own environments without needing assistance from a system's managers.

    As an example, we will work with a mythical two disk system named MIRAGE with two disks, DKA0: and DKA100:. We will ignore DKA0: (used as the system disk). However, we want to structure DKA100: (which is labeled MIRAGEUSER1) into several seemingly separate trees of directories. To make the example real, let's create departmental directory trees for ACCOUNTING, PAYROLL, and DATAENTRY. For our convenience, the base of our sub-tree will be owned by the department.

    We begin with MIRAGEUSER1 already mounted with the /SYSTEM qualifier, so it is fully available to all users authorized to access files on the volume (we will examine security issues in a future column). We have also created the roots for our logical directories in the Master File Directory (directory [000000], also referred to as the "MFD") using the following commands (which are downloadable from OpenVMS.ORG):


    Before creating the directories, create the RIGHTSLIST identifiers for the individual departments (remember Account names can be a maximum of eight characters in the UAF). Since the account names need be within the length limits set by OpenVMS, some artful abbreviation may be in order. If taking advantage of this opportunity to create a departmental umbrella account in the UAF, be mindful of the UAF imposed limits (not to mention the limits of any procedure used to access the UAF, such as SYS$EXAMPLES:ADDUSER.COM – which requires the account's default disk to exist in advance of running the procedure).

    Once we have created the directories for the highest levels of the structure, we can address the user visible environment. All user access to the disk structure is (and must be) via logical names. The next step is the creation of a series of logical names for users to access the departmental sub-trees as if they were individual disks. Specifically, the logical names need to be created:

    • in Executive mode using the /EXECUTIVE_MODE qualifier (so they can be used by elevated mode programs),
    • in the System logical name table using the /SYSTEM qualifier (to ensure consistency between different groups and users), and
    • with the /TRANSLATION_ATTRIBUTES=CONCEALED attribute to encourage users, programs and command procedures to be independent of the actual mapping of a directory to a particular disk volume.
    To generate the illusion that each logical name represents a separate disk, use names that resemble those generated by the MOUNT command, e.g. DISK$ACCOUNTING, DISK$PAYROLL, and DISK$DATAENTRY. Creating the Executive mode, System logical names is straightforward, to wit, we use the commands (which are downloadable from OpenVMS.ORG):


    Of course, the process issuing these commands needs to hold the SYSNAM and CMEXEC privileges.

    The next question is when these commands should be executed. Generally, I suggest that users locate these commands adjacent to the commands that are used to actually mount the underlying disks. It is important to remember to check the mount status of the volume before actually creating the logical names. Also, it may be desireable to disable all (or some) logins if the volume(s) fail to mount correctly (the are several approaches to address this issue, each with slightly different advantages and disadvantages, some of which we will look at in the future).

    The OpenVMS Consultant welcomes questions from readers about OpenVMS and related technologies. Please submit your questions to the OpenVMS Consultant.

    Previous articles in this series by Robert Gezelter:
    << Logical Names (Part 4)
    << Logical Names (Part 3)
    << Logical Names (Part 2)
    << Logical Names (Part 1)


    Robert Gezelter is the Founding Principal of the consulting firm that bears his name (www.rlgsc.com).

    The firm's consulting practice emphasizes in-depth technical expertise in computer architectures, operating systems, networks, security, APIs, and related matters. Mr. Gezelter has worked with OpenVMS since the initial release of VAX/VMS in 1978.

    His clients include small businesses to the Fortune 10, locally, nationally, and internationally on matters spanning the range from individual telephone questions to major projects.

    He can be reached at gezelter@rlgsc.com.

    < New HG/Process freeware packages: MORE and CLEAR_ERRORS | Back by Popular Demand! RDB "Tech Day" comes to New York! >

    Island Computers

    Virtual VAX & Alpha


    The OpenVMS Consultant

    Interested in Advertising?
    Contact us...

    Friends of VMS
    HP usergroups...
    OpenVMS Hobbyist
    Itanium Solutions Alliance
    Aaron's OpenVMS blog
    Alexey Chupahin
    Arne Vajhoej
    DECUS Library Compendium
    DJE Systems
    Dr OpenVMS blog
    Francesco Gennai
    Eight-Cubed blog
    Free OpenVMS Software
    Galen Tackett
    Hunter Goatley
    Ian Miller
    Influential Software
    Itanium Solutions Alliance
    Jeff Cameron
    John Fisher
    Syltrem VMS Page (French)
    Kednos PL/I
    Keith Parris
    Migration Specialties
    Noetic Systems, Inc
    OpenOffice Port to VMS
    OpenVMS Rocks
    Steven M. Schweda
    SYSMGR Blog
    TMESIS Software
    Trends That Matter
    VAMP (VMS, Apache, MySQL, PHP)
    Visio Cafe (HP Templates)
    Free VMS Accounts:
    Deathrow Public OpenVMS Cluster
    Poetry Hacklab

    In Memory: John Wisniewski
    In Memory:Terry Shannon

    Add, edit, report problems here...

    OpenVMS Ring

    OpenVMS Webring







    Home About & Contact Search Archive Mobile Submit News Sponsorship & Advertising
         Copyright © 2001-2012 SCORSE, LLC
    OpenVMS® is a trademark of HP
    All other trademarks are those of their owners.
      SpyderByte.com ;Technical Portals