Skip Navigation Links | |
Exit Print View | |
Oracle Solaris 11.1 Administration: Oracle Solaris Zones, Oracle Solaris 10 Zones, and Resource Management Oracle Solaris 11.1 Information Library |
Part I Oracle Solaris Resource Management
1. Introduction to Resource Management
2. Projects and Tasks (Overview)
3. Administering Projects and Tasks
Administering Projects and Tasks (Task Map)
Example Commands and Command Options
Command Options Used With Projects and Tasks
Using cron and su With Projects and Tasks
How to Define a Project and View the Current Project
How to Delete a Project From the /etc/project File
How to Validate the Contents of the /etc/project File
How to Obtain Project Membership Information
How to Move a Running Process Into a New Task
Editing and Validating Project Attributes
How to Add Attributes and Attribute Values to Projects
How to Remove Attribute Values From Projects
How to Remove a Resource Control Attribute From a Project
How to Substitute Attributes and Attribute Values for Projects
How to Remove the Existing Values for a Resource Control Attribute
4. Extended Accounting (Overview)
5. Administering Extended Accounting (Tasks)
6. Resource Controls (Overview)
7. Administering Resource Controls (Tasks)
8. Fair Share Scheduler (Overview)
9. Administering the Fair Share Scheduler (Tasks)
10. Physical Memory Control Using the Resource Capping Daemon (Overview)
11. Administering the Resource Capping Daemon (Tasks)
13. Creating and Administering Resource Pools (Tasks)
14. Resource Management Configuration Example
15. Introduction to Oracle Solaris Zones
16. Non-Global Zone Configuration (Overview)
17. Planning and Configuring Non-Global Zones (Tasks)
18. About Installing, Shutting Down, Halting, Uninstalling, and Cloning Non-Global Zones (Overview)
19. Installing, Booting, Shutting Down, Halting, Uninstalling, and Cloning Non-Global Zones (Tasks)
20. Non-Global Zone Login (Overview)
21. Logging In to Non-Global Zones (Tasks)
22. About Zone Migrations and the zonep2vchk Tool
23. Migrating Oracle Solaris Systems and Migrating Non-Global Zones (Tasks)
24. About Automatic Installation and Packages on an Oracle Solaris 11.1 System With Zones Installed
25. Oracle Solaris Zones Administration (Overview)
26. Administering Oracle Solaris Zones (Tasks)
27. Configuring and Administering Immutable Zones
28. Troubleshooting Miscellaneous Oracle Solaris Zones Problems
Part III Oracle Solaris 10 Zones
29. Introduction to Oracle Solaris 10 Zones
30. Assessing an Oracle Solaris 10 System and Creating an Archive
31. (Optional) Migrating an Oracle Solaris 10 native Non-Global Zone Into an Oracle Solaris 10 Zone
32. Configuring the solaris10 Branded Zone
33. Installing the solaris10 Branded Zone
You can use the projadd and projmod project database administration commands to edit project attributes.
The -K option specifies a replacement list of attributes. Attributes are delimited by semicolons (;). If the -K option is used with the -a option, the attribute or attribute value is added. If the -K option is used with the -r option, the attribute or attribute value is removed. If the -K option is used with the -s option, the attribute or attribute value is substituted.
Use the projmod command with the -a and -K options to add values to a project attribute. If the attribute does not exist, it is created.
# projmod -a -K task.max-lwps myproject
# projmod -a -K "task.max-lwps=(priv,100,deny)" myproject
# projmod -a -K "task.max-lwps=(priv,1000,signal=KILL)" myproject
The multiple values are separated by commas. The task.max-lwps entry now reads:
task.max-lwps=(priv,100,deny),(priv,1000,signal=KILL)
This procedure uses the values:
task.max-lwps=(priv,100,deny),(priv,1000,signal=KILL)
# projmod -r -K "task.max-lwps=(priv,100,deny)" myproject
If task.max-lwps has multiple values, such as:
task.max-lwps=(priv,100,deny),(priv,1000,signal=KILL)
The first matching value would be removed. The result would then be:
task.max-lwps=(priv,1000,signal=KILL)
To remove the resource control task.max-lwps in the project myproject, use the projmod command with the -r and -K options.
# projmod -r -K task.max-lwps myproject
To substitute a different value for the attribute task.max-lwps in the project myproject, use the projmod command with the -s and -K options. If the attribute does not exist, it is created.
# projmod -s -K "task.max-lwps=(priv,100,none),(priv,120,deny)" myproject
The result would be:
task.max-lwps=(priv,100,none),(priv,120,deny)
# projmod -s -K task.max-lwps myproject