Skip Navigation Links | |
Exit Print View | |
System Administration Guide: Oracle Solaris Zones, Oracle Solaris 10 Containers, and Resource Management Oracle Solaris 11 Express 11/10 |
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, Halting, Uninstalling, and Cloning Non-Global Zones (Overview)
19. Installing, Booting, Halting, Uninstalling, and Cloning Non-Global Zones (Tasks)
20. Non-Global Zone Login (Overview)
21. Logging In to Non-Global Zones (Tasks)
22. Moving and Migrating Non-Global Zones (Tasks)
23. About Packages on an Oracle Solaris 11 Express System With Zones Installed
24. Oracle Solaris Zones Administration (Overview)
25. Administering Oracle Solaris Zones (Tasks)
26. Troubleshooting Miscellaneous Oracle Solaris Zones Problems
Part III Oracle Solaris 10 Zones
27. Introduction to Oracle Solaris 10 Zones
28. Assessing an Oracle Solaris 10 System and Creating an Archive
30. Configuring the solaris10 Branded Zone
31. Installing the solaris10 Branded Zone
32. Booting a Zone and Zone Migration
33. solaris10 Branded Zone Login and Post-Installation Configuration
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