Monday 30 December 2013

SOLARIS 11 PROJECT MANAGEMENT

1)To list projects
root@solaris2:~# projects -l
system
        projid : 0
        comment: ""
        users  : (none)
        groups : (none)
        attribs:
user.root
        projid : 1
        comment: ""
        users  : (none)
        groups : (none)
        attribs:
noproject
        projid : 2
        comment: ""
        users  : (none)
        groups : (none)
        attribs:
default
        projid : 3
        comment: ""
        users  : (none)
        groups : (none)
        attribs:
group.staff
        projid : 10
        comment: ""
        users  : (none)
        groups : (none)
        attribs:
root@solaris2:~# cat /etc/project
system:0::::
user.root:1::::
noproject:2::::
default:3::::
group.staff:10::::
2)to see user_attr file
root@solaris2:~# cat /etc/user_attr
#
# The system provided entries are stored in different files
# under "/etc/user_attr.d".  They should not be copied to this file.
#
# Only local changes should be stored in this file.
# This line should be kept in this file or it will be overwritten.
#
3)to check memory
root@solaris2:~# prtconf |grep -i mem
Memory size: 1638400 Megabytes
    memory (driver not attached)
    virtual-memory (driver not attached)
4)to add project
root@solaris2:~# projadd -p 111 ORACLE
5)to see project
root@solaris2:~# projects -l ORACLE
ORACLE
        projid : 111
        comment: ""
        users  : (none)
        groups : (none)
        attribs:
6)to add oracle parameters
root@solaris2:~# projmod -a -K "process.max-sem-nsems=(priv,2048,deny)" -K "project.max-sem-ids=(priv,1024,deny)" -K "project.max-shm-ids=(priv,256,deny)" -K
"project.max-shm-memory=(priv,206158430208,deny)" ORACLE
root@solaris2:~# projects -l ORACLE
ORACLE
        projid : 111
        comment: ""
        users  : (none)
        groups : (none)
        attribs: process.max-sem-nsems=(priv,2048,deny)
                 project.max-sem-ids=(priv,1024,deny)
                 project.max-shm-ids=(priv,256,deny)
                 project.max-shm-memory=(priv,206158430208,deny)
root@solaris2:~# cat /etc/project
system:0::::
user.root:1::::
noproject:2::::
default:3::::
group.staff:10::::
ORACLE:111::::process.max-sem-nsems=(priv,2048,deny);project.max-sem-ids=(priv,1024,deny);project.max-shm-ids=(priv,256,deny);project.max-shm-memory=
(priv,206158430208,deny)
root@solaris2:~# cat /etc/user_attr
#
# The system provided entries are stored in different files
# under "/etc/user_attr.d".  They should not be copied to this file.
#
# Only local changes should be stored in this file.
# This line should be kept in this file or it will be overwritten.
#
root@solaris2:~# logins -x -l test
test            100     staff           10
                        /export/home/test
                        /usr/bin/bash
                        PS 123013 -1 -1 -1
7)to add user to project
root@solaris2:~# projmod -U test ORACLE
8)to list project
root@solaris2:~# projects -l ORACLE
ORACLE
        projid : 111
        comment: ""
        users  : test
        groups : (none)
        attribs: process.max-sem-nsems=(priv,2048,deny)
                 project.max-sem-ids=(priv,1024,deny)
                 project.max-shm-ids=(priv,256,deny)
                 project.max-shm-memory=(priv,206158430208,deny)
9)to add project to user
root@solaris2:~# usermod -K project=ORACLE test
root@solaris2:~# cat /etc/user_attr
#
# The system provided entries are stored in different files
# under "/etc/user_attr.d".  They should not be copied to this file.
#
# Only local changes should be stored in this file.
# This line should be kept in this file or it will be overwritten.
#
test::::project=ORACLE
root@solaris2:~# su - test
Oracle Corporation      SunOS 5.11      11.1    May 2013
10)to check processes
test@solaris2:~$ prctl $$
process: 24757: -bash
NAME    PRIVILEGE       VALUE    FLAG   ACTION                       RECIPIENT
process.max-sigqueue-size
        basic             128       -   deny                             24757
        privileged        512       -   deny                                 -
        system          8.19K     max   deny                                 -
process.max-itimers
        privileged      1.00K       -   deny                                 -
        system          65.5K     max   deny                                 -
process.max-port-events
        privileged      65.5K       -   deny                                 -
        system          2.15G     max   deny                                 -
process.max-msg-messages
        privileged      8.19K       -   deny                                 -
        system          4.29G     max   deny                                 -
process.max-msg-qbytes
        privileged      64.0KB      -   deny                                 -
        system          16.0EB    max   deny                                 -
process.max-sem-ops
        privileged        512       -   deny                                 -
        system          2.15G     max   deny                                 -
process.max-sem-nsems
        privileged      2.05K       -   deny                                 -
        system          32.8K     max   deny                                 -
process.max-address-space
        privileged      16.0EB    max   deny                                 -
        system          16.0EB    max   deny                                 -
process.max-file-descriptor
        basic             256       -   deny                             24757
        privileged      65.5K       -   deny                                 -
        system          2.15G     max   deny                                 -
process.max-core-size
        privileged      8.00EB    max   deny                                 -
        system          8.00EB    max   deny                                 -
process.max-stack-size
        basic           8.00MB      -   deny                             24757
        privileged      8.00EB    max   deny                                 -
        system          8.00EB    max   deny                                 -
process.max-data-size
        privileged      16.0EB    max   deny                                 -
        system          16.0EB    max   deny                                 -
process.max-file-size
        privileged      8.00EB    max   deny,signal=XFSZ                     -
        system          8.00EB    max   deny                                 -
process.max-cpu-time
        privileged      18.4Es    inf   signal=XCPU                          -
        system          18.4Es    inf   none                                 -
task.max-cpu-time
        usage               0s
        system          18.4Es    inf   none                                 -
task.max-processes
        usage               3
        system          2.15G     max   deny                                 -
task.max-lwps
        usage               4
        system          2.15G     max   deny                                 -
project.max-contracts
        privileged      10.0K       -   deny                                 -
        system          2.15G     max   deny                                 -
project.max-locked-memory
        usage               0B
        system          16.0EB    max   deny                                 -
project.max-port-ids
        privileged      8.19K       -   deny                                 -
        system          65.5K     max   deny                                 -
project.max-shm-memory
        privileged       192GB      -   deny                                 -
        system          16.0EB    max   deny                                 -
project.max-shm-ids
        privileged        256       -   deny                                 -
        system          16.8M     max   deny                                 -
project.max-msg-ids
        privileged        128       -   deny                                 -
        system          16.8M     max   deny                                 -
project.max-sem-ids
        privileged      1.02K       -   deny                                 -
        system          16.8M     max   deny                                 -
project.max-crypto-memory
        usage               0B
        privileged      3.92GB      -   deny                                 -
        system          16.0EB    max   deny                                 -
project.max-tasks
        usage               1
        system          2.15G     max   deny                                 -
project.max-processes
        usage               3
        system          2.15G     max   deny                                 -
project.max-lwps
        usage               4
        system          2.15G     max   deny                                 -
project.cpu-cap
        usage               0
        system          4.29G     inf   deny                                 -
project.cpu-shares
        usage               1
        privileged          1       -   none                                 -
        system          65.5K     max   none                                 -
zone.max-lofi
        usage               0
        system          18.4E     max   deny                                 -
zone.max-swap
        usage            216MB
        system          16.0EB    max   deny                                 -
zone.max-locked-memory
        usage               0B
        system          16.0EB    max   deny                                 -
zone.max-shm-memory
        system          16.0EB    max   deny                                 -
zone.max-shm-ids
        system          16.8M     max   deny                                 -
zone.max-sem-ids
        system          16.8M     max   deny                                 -
zone.max-msg-ids
        system          16.8M     max   deny                                 -
zone.max-processes
        usage              72
        system          2.15G     max   deny                                 -
zone.max-lwps
        usage             779
        system          2.15G     max   deny                                 -
zone.cpu-cap
        usage               0
        system          4.29G     inf   deny                                 -
zone.cpu-shares
        usage               1
        privileged          1       -   none                                 -
        system          65.5K     max   none                                 -
11)To delete project
root@solaris2:~# projdel ORACLE
root@solaris2:~# projects -l
system
        projid : 0
        comment: ""
        users  : (none)
        groups : (none)
        attribs:
user.root
        projid : 1
        comment: ""
        users  : (none)
        groups : (none)
        attribs:
noproject
        projid : 2
        comment: ""
        users  : (none)
        groups : (none)
        attribs:
default
        projid : 3
        comment: ""
        users  : (none)
        groups : (none)
        attribs:
group.staff
        projid : 10
        comment: ""
        users  : (none)
        groups : (none)
        attribs:

No comments:

Post a Comment