Go to main content

Administering Resource Management in Oracle® Solaris 11.4

Exit Print View

Updated: August 2018

How to Create a Static Pools Configuration

Use the –s option to /usr/sbin/pooladm to create a static configuration file that matches the current dynamic configuration, preserving changes across reboots. Unless a different file name is specified, the default location /etc/pooladm.conf is used.

Commit your configuration using the pooladm command with the –c option. Then, use the pooladm command with the –s option to update the static configuration to match the state of the dynamic configuration.

Note -  The later functionality pooladm –s is preferred over the earlier functionality poolcfg –c discover for creating a new configuration that matches the dynamic configuration.

Before You Begin

Enable pools on your system.

  1. Assume the root role.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.4.

  2. Update the static configuration file to match the current dynamic configuration.
    $ pooladm -s
  3. View the contents of the configuration file in readable form.

    Note that the configuration contains default elements created by the system.

    $ poolcfg -c info
    system tester
            string  system.comment
            int     system.version 1
            boolean system.bind-default true
            int     system.poold.pid 177916
            pool pool_default
                    int     pool.sys_id 0
                    boolean pool.active true
                    boolean pool.default true
                    int     pool.importance 1
                    string  pool.comment 
                    pset    pset_default
            pset pset_default
                    int     pset.sys_id -1
                    boolean pset.default true
                    uint    pset.min 1
                    uint    pset.max 65536
                    string  pset.units population
                    uint    pset.load 10
                    uint    pset.size 4
                    string  pset.comment 
                    boolean testnullchanged true
                            int     cpu.sys_id 3
                            string  cpu.comment 
                            string  cpu.status on-line
                            int     cpu.sys_id 2
                            string  cpu.comment 
                            string  cpu.status on-line
                            int     cpu.sys_id 1
                            string  cpu.comment 
                            string  cpu.status on-line
                            int     cpu.sys_id 0
                            string  cpu.comment 
                            string  cpu.status on-line
  4. Commit the configuration at /etc/pooladm.conf.
    $ pooladm -c
  5. (Optional) Copy the dynamic configuration to a static configuration file called /tmp/backup.
    $ pooladm -s /tmp/backup