sun.com | docs.sun.com | How To Buy | My Sun | Worldwide Sites |  |

| Previous Contents Index Next
Appendix B # Configuration File Examples for the `machine.conf` File The following examples give disk layout and file system configuration sections of the `machine.conf` configuration file: ## Example Disk Layout of a Master-Eligible Node Using Volume Management Software Example B-1 Disk Layout for Master-Eligible Node With Diskless Nodes
    # Disk partitioning (MEN + SVM + diskless)
    #
    #          Phys. slice  Meta slice  files system
    #
    #   disk1 -+ s0@disk1 +------------- ROOT
    #          + s1@disk1 +------------- SWAP
    #          + s3@disk1 +- d3@disk1 +- SHARED
    #          + s4@disk1 +- d4@disk1 +- EXPORT
    #          + s5@disk1 +- d5@disk1 +- USER2
    #          + s6@disk1 +- d6@disk1 +- USER1
    #          + s7@disk1 +- d31@disk1
    #                     +- d41@disk1
    #                     +- d51@disk1
    #                     +- d61@disk1
    #
    ELEMENT disk disk1@peerNode1 device c0t0d0 type SCSI size 18
    	CONTAIN slice s0@disk1
    		slice s1@disk1
    		slice s3@disk1
    		slice d3@disk1
    		slice d31@disk1
    		slice s4@disk1
    		slice d4@disk1
    		slice d41@disk1
    		slice s5@disk1
    		slice d5@disk1
    		slice d51@disk1
    		slice s6@disk1
    		slice d6@disk1
    		slice d61@disk1
    		slice s7@disk1

    # Root partition
    ELEMENT slice s0@disk1 number 0 rawDev /dev/rdsk blockDev /dev/dsk
            type PHYS size 2048
    	MAP filesys ROOT

    # Swap partition
    ELEMENT slice s1@disk1 number 1 rawDev /dev/rdsk blockDev /dev/dsk
            type PHYS size 1024
    	MAP filesys SWAP

    # Shared software and data partition (replicated)
    ELEMENT slice s3@disk1 number 3 rawDev /dev/rdsk blockDev /dev/dsk
            type PHYS size 2048

    ELEMENT slice d3@disk1 number 3 rawDev /dev/md/rdsk blockDev /dev/md/dsk
            type META size 2048 role REPLICATED
    	USE slice s3@disk1
    	MAP filesys SHARED

    ELEMENT slice d31@disk1 number 31 rawDev /dev/md/rdsk blockDev /dev/md/dsk
            type SOFT size 10 role BITMAP_SNDR
            USE slice s7@disk1
            MANAGE replicatedSlice d3@disk1

    # User partition 1 (replicated)
    ELEMENT slice s4@disk1 number 4 rawDev /dev/rdsk blockDev /dev/dsk
            type PHYS size 2048

    ELEMENT slice d4@disk1 number 4 rawDev /dev/md/rdsk blockDev /dev/md/dsk
            type META size 2048 role REPLICATED
    	USE slice s4@disk1
    	MAP filesys EXPORT

    ELEMENT slice d41@disk1 number 41 rawDev /dev/md/rdsk blockDev /dev/md/dsk
            type SOFT size 10 role BITMAP_SNDR
            USE slice s7@disk1
            MANAGE replicatedSlice d4@disk1

    # User partition 2 (replicated)
    ELEMENT slice s5@disk1 number 5 rawDev /dev/rdsk blockDev /dev/dsk
            type PHYS size 2048

    ELEMENT slice d5@disk1 number 5 rawDev /dev/md/rdsk blockDev /dev/md/dsk
            type META size 2048 role REPLICATED
    	USE slice s5@disk1
    	MAP filesys USER1

    ELEMENT slice d51@disk1 number 51 rawDev /dev/md/rdsk blockDev /dev/md/dsk
            type SOFT size 10 role BITMAP_SNDR
            USE slice s7@disk1
            MANAGE replicatedSlice d5@disk1

    # User partition 3 (replicated)
    ELEMENT slice s6@disk1 number 6 rawDev /dev/rdsk blockDev /dev/dsk
            type PHYS size 2048

    ELEMENT slice d6@disk1 number 6 rawDev /dev/md/rdsk blockDev /dev/md/dsk
            type META size 2048 role REPLICATED
    	USE slice s6@disk1
    	MAP filesys USER2

    ELEMENT slice d61@disk1 number 61 rawDev /dev/md/rdsk blockDev /dev/md/dsk
            type SOFT size 10 role BITMAP_SNDR
            USE slice s7@disk1
            MANAGE replicatedSlice d6@disk1

    # Meta-DB + bitmap partition
    ELEMENT slice s7@disk1 number 7 rawDev /dev/rdsk blockDev /dev/dsk
            type PHYS size 512 role META_DB
Example B-2 File Systems Associated With the Master-Eligible Node This example is for the master-eligible node in Example B-1.
    # MEN and NMEN file systems
    #
    #      local       nfs-shared
    #
    #      ROOT
    #      SWAP
    #      EXPORT
    #      SHARED +- CLUSTER_DATA
    #             +- CLUSTER_DATABASE
    #             +- SHARED_SOFTWARE
    #      USER1
    #      USER2
    #
    # Root file system
    ELEMENT filesys ROOT role root type ufs fsck 1 size 2048
            mntPt / mntBt no mntOpt logging
    #
    # Swap
    ELEMENT filesys SWAP role swap type swap  mntBt no size 1024
    #
    # Diskless node shared file system
    ELEMENT filesys EXPORT role export type ufs fsck 2 size 2048
            mntPt /export mntBt no mntOpt logging
    #
    # Shared data and software exported file system
    ELEMENT filesys SHARED role shared type ufs fsck 2 size 2048
            mntPt /SUNWcgha/local mntBt no mntOpt logging
    	CONTAIN exportedFileSys CLUSTER_DATA
    		exportedFileSys CLUSTER_DATABASE
    		exportedFileSys SHARED_SOFTWARE
    #
    # Shared cluster data (e.g. CMM nodes table, ...)
    ELEMENT filesys CLUSTER_DATA role data type nfs
            mntPt export/data
            remMntPt /SUNWcgha/remote mntBt no
    	mntOpt rw,hard,fg,intr,noac,proto=udp
    #
    # Shared middleware (e.g. JDMK, application services, ...)
    ELEMENT filesys SHARED_SOFTWARE role services type nfs
            mntPt export/services/<--SWLID-->/opt
    	remMntPt /SUNWcgha/services mntBt no
    	mntOpt rw,hard,fg,intr,noac,proto=udp
    #
    # Shared application services ldap database
    ELEMENT filesys CLUSTER_DATABASE role database type nfs
            mntPt export/services
    	remMntPt /SUNWcgha/swdb mntBt no
    	mntOpt rw,hard,fg,intr,noac,proto=udp
    #
    # User 1 defined file system
    ELEMENT filesys USER1 role user type ufs fsck 2 size 2048
            mntPt /user1 mntBt no mntOpt logging
    #
    # User 2 defined file system
    ELEMENT filesys USER2 role user type ufs fsck 2 size 2048
            mntPt /user2 mntBt no mntOpt logging
Previous Contents Index Next

Copyright 1994-2004 Sun Microsystems