1. Enable pool facility
pooladm -e
2. create default config file (if not exists)
pooladm -s /etc/pooladm.conf
3. Create resource pool using command file
poolcfg -f create_pool_commands.txt
The file create_pool_commands.txt might contain for example
create pset ps_db_recover (uint pset.min = 1; uint pset.max = 4)
create pool pool_db_recover
associate pool pool_db_recover (pset ps_db_recover)
4. instantiate changes
pooladm -c
5. validate configuration
pooladm -n
check the actual configuration:
poolcfg -dc info
change number of available CPUs of the fly
poolcfg -dc 'modify pset oracle_pset ( uint pset.min = 6 ; uint pset.max = 6)
to populate the pool with additional processors you may need to transfer processors from another pool:
poolcfg -dc 'transfer 10 from pset pset_default to ps1_db_recover'
The zone using ps1_db_recover pool will see the new processord immediately.
Look at existing zone status and login to the console:
zoneadm list -v
zlogin -C db_recover
zoneadm -z myzone boot
zoneadm -z myzone halt
zoneadm -z myzone uninstall
zonecfg -z myzone delete
zonecfg -z db_recover -f /etc/zone_cmd_template.txt
/etc/zone_cmd_template.txt contents, par exemple:
create
set zonepath=/u01/recover_zone
set autoboot=true
set pool=pool_db_recover
add net
set address=192.168.1.2
set physical=bge0
end
verify
commit
zoneadm -z db_recover install
на ходу добавить расшареную директорию:
zonecfg -z db_recover
zonecfg:db_recover> add fs
zonecfg:db_recover:fs> set dir=/u02/backup
zonecfg:db_recover:fs> set special=/u02/backup
zonecfg:db_recover:fs> set type=lofs
zonecfg:db_recover:fs> end
zonecfg:db_recover> verify
zonecfg:db_recover> commit
zonecfg:db_recover> exit
zoneadm -z db_recover reboot
поменять пул чтобы, например, увеличить число процессоров:
poolbind -p pool1_db_recover -i zoneid db_recover
(почему-то не работает)
еще вариант:
zonecfg -z db_recover
в редакторе конфигурации набрать
>info
... печатается конфигурация
>set pool=<pool_name>
>verify
>commit
потом нужно перезагрузить зону:
zoneadm -z <zone_name> reboot
|