1. for free in `vxdg -g <VXDG> free | awk '{print $5}' | grep -v LEN`; do mbs=`echo "($free*512)/1024/1024" | bc`; echo "In megabytes = $mbs"; done
then sum all Megs
echo "($1+$2....+$n)/1024" | bc
2. free=`vxassist -g <VXDG> maxgrow <VOL1> | awk '{print $7}'`; echo "$free/(1024*1024*2)" | bc
Monday, March 12, 2012
Thursday, March 10, 2011
VirtualBox from the command line
VBoxManage createvm --name "oralinux" --ostype Oracle_64 --register
VBoxManage modifyvm "oralinux" --memory 1505 --floppy disabled --audio none --nic1 nat --vram 12 --accelerate3d off --boot1 disk --acpi on --cableconnected1 on --usb off --vrde on --vrdeport 3390
VBoxManage createhd --filename $VMS_STOR/oralinux.vdi --size 20000
VBoxManage createhd --filename $VMS_STOR/oralinux_db.vdi --size 10000
VBoxManage storagectl "oralinux" --name "IDE_Controller" --add ide
VBoxManage storageattach "oralinux" --storagectl "IDE_Controller" --port 0 --device 0 --type dvddrive --medium $_DISTRS/Enterprise-R5-U6-Server-x86_64-dvd.iso
VBoxManage storagectl "oralinux" --name "SATA_Controller" --add sata
VBoxManage storageattach "oralinux" --storagectl "SATA_Controller" --port 0 --device 0 --type hdd --medium $VMS_STOR/oralinux.vdi
VBoxManage storageattach "oralinux" --storagectl "SATA_Controller" --port 1 --device 0 --type hdd --medium $VMS_STOR/oralinux_db.vdi
VBoxManage modifyvm "oralinux" --boot1 dvd
VBoxManage modifyvm "oralinux" --natpf1 "guestssh,tcp,,2222,,22"
VBoxManage modifyvm "oralinux" --natpf1 "guestora,tcp,,1521,,1521"
VBoxManage startvm "oralinux" --type headless
Now you may install OS etc. And then export your appliance.
VBoxManage export "oralinux" -o $VMS_STOR/oralinux01.ova
VBoxManage modifyvm "oralinux" --memory 1505 --floppy disabled --audio none --nic1 nat --vram 12 --accelerate3d off --boot1 disk --acpi on --cableconnected1 on --usb off --vrde on --vrdeport 3390
VBoxManage createhd --filename $VMS_STOR/oralinux.vdi --size 20000
VBoxManage createhd --filename $VMS_STOR/oralinux_db.vdi --size 10000
VBoxManage storagectl "oralinux" --name "IDE_Controller" --add ide
VBoxManage storageattach "oralinux" --storagectl "IDE_Controller" --port 0 --device 0 --type dvddrive --medium $_DISTRS/Enterprise-R5-U6-Server-x86_64-dvd.iso
VBoxManage storagectl "oralinux" --name "SATA_Controller" --add sata
VBoxManage storageattach "oralinux" --storagectl "SATA_Controller" --port 0 --device 0 --type hdd --medium $VMS_STOR/oralinux.vdi
VBoxManage storageattach "oralinux" --storagectl "SATA_Controller" --port 1 --device 0 --type hdd --medium $VMS_STOR/oralinux_db.vdi
VBoxManage modifyvm "oralinux" --boot1 dvd
VBoxManage modifyvm "oralinux" --natpf1 "guestssh,tcp,,2222,,22"
VBoxManage modifyvm "oralinux" --natpf1 "guestora,tcp,,1521,,1521"
VBoxManage startvm "oralinux" --type headless
Now you may install OS etc. And then export your appliance.
VBoxManage export "oralinux" -o $VMS_STOR/oralinux01.ova
Friday, February 18, 2011
Sobre el tiempo o Irkutsk (Siberia) = Madrid (España)
Now, 18 february 2011, temperature in Siberia and in Spain is almost the same!
To be exact, http://angara.net/meteo says that there is around 0 grad C in Irkutsk and http://www.elmundo.es/tiempo/index.html says that in Madrid the temperature is also 0 grad C.
So, you still think that in Siberia is always -20 C? :)
To be exact, http://angara.net/meteo says that there is around 0 grad C in Irkutsk and http://www.elmundo.es/tiempo/index.html says that in Madrid the temperature is also 0 grad C.
So, you still think that in Siberia is always -20 C? :)
Friday, December 17, 2010
HOW-TO: move SAN LUN between AIX boxes
http://blog.thilelli.net/post/2005/07/06/Export-and-Import-a-Volume-Group-When-Things-Goes-the-Wrong-Way
1. source_host# Umount filesystem(s)
2. source_host# varyoffvg
3. source_host# exportvg
4. source_host# rmdev -dl hdiskX
5. target_host# cfgmgr
6. target_host# importvg
7. target_host# redefinevg -d hdiskX
8. target_host# varyonvg
9. target_host# synclvodm -v -P
10. bosboot -a & Mount filesystem(s)
1. source_host# Umount filesystem(s)
2. source_host# varyoffvg
3. source_host# exportvg
4. source_host# rmdev -dl hdiskX
5. target_host# cfgmgr
6. target_host# importvg
7.
8. target_host# varyonvg
9. target_host# synclvodm -v -P
10. bosboot -a & Mount filesystem(s)
Ярлыки:
AIX
Thursday, December 16, 2010
AIX: restarting SSH and other services
View information about service:
lssrc -s sshd or lssrc -a | grep ssh
Stopping them:
stopsrc -s sshd
Starting:
startsrc -s sshd
lssrc -s sshd or lssrc -a | grep ssh
Stopping them:
stopsrc -s sshd
Starting:
startsrc -s sshd
Ярлыки:
AIX
Friday, October 29, 2010
Geld verdienen um die Welt zu erleuchten!!!
Impuesto sobre la Renta de las Personas Físicas (IRPF):
"Hasta 9.000 euros al año, no se paga este impuesto.
Desde 9.000, hasta 17.360 euros al año se aplica una retención del 24%
Desde 17.360, hasta 32.360 euros al año se aplica una retención del 28%
Desde 32.360, hasta 52.360 euros al año se aplica una retención del 37%
Si los ingresos superan los 52.360 euros al año se aplica una retención del 43%"
http://cuantosimpuestospago.com
It seems that almost all russian people dont need to pay taxes (9 000 Euro ~= 31 500 RUR < 30 000 RUR / month = average monthly salary)! :)
"Hasta 9.000 euros al año, no se paga este impuesto.
Desde 9.000, hasta 17.360 euros al año se aplica una retención del 24%
Desde 17.360, hasta 32.360 euros al año se aplica una retención del 28%
Desde 32.360, hasta 52.360 euros al año se aplica una retención del 37%
Si los ingresos superan los 52.360 euros al año se aplica una retención del 43%"
http://cuantosimpuestospago.com
It seems that almost all russian people dont need to pay taxes (9 000 Euro ~= 31 500 RUR < 30 000 RUR / month = average monthly salary)! :)
Wednesday, August 25, 2010
How to quit Caché DB terminal session?
The keyword is "halt"! :)
[root@vbox ~]# csession CACHE
Node: vbox, Instance: CACHE
USER>halt
[root@vbox ~]#
[root@vbox ~]# csession CACHE
Node: vbox, Instance: CACHE
USER>halt
[root@vbox ~]#
Ярлыки:
cache
Subscribe to:
Posts (Atom)