Archivo del Autor: carlosap

add afterimage

Remove before image proutil sports2000 -C disableSiteReplication source prostrct remove sports2000 bi [bl1:/db1/sports2000]$prostrct add sports2000 sports2000.st Formatting extents: size area name path name 16 Primary Recovery Area /db1/sports2000/sports2000.b1 00:00:00 16 Schema Area /db1/sports2000/sports2000.d2 00:00:00 16 After Image Area 1 /db1/sports2000/sports2000.a1 00:00:00 48 Employee /db1/sports2000/sports2000_7.d3 00:00:00 16 Employee /db1/sports2000/sports2000_7.d4 00:00:00 80 Inventory /db1/sports2000/sports2000_8.d3 00:00:01 16 Inventory… Leer más »

/etc/profile Variables Progress

cat /etc/profile #ident «@(#)profile 1.19 01/03/13 SMI» /* SVr4.0 1.3 */ # The profile that all logins get before using their own .profile. trap «» 2 3 export LOGNAME PATH if [ «$TERM» = «» ] then if /bin/i386 then TERM=sun-color else TERM=sun fi export TERM fi # Login and -su shells get /etc/profile services.… Leer más »

Change IP Address Solaris without restart

Solaris 10 edit /etc/hosts file (a symlink to /etc/inet/hosts file) and /etc/inet/ipnodes add an entry for IP address and hostname. Restart Network SRV # svcadm restart network/physical

Comandos útiles

  TOP command prstat -a ( like top ) vmstat   Para saber el uso del cpu sar 1 sar -u 10 60 mpstat 10 60

Solaris Zones

poolcfg -c ‘create pset dbsrv-pset (uint pset.min=1; uint pset.max=12)’ poolcfg -c ‘create pool dbsrv-pool’ poolcfg -c ‘associate pool dbsrv-pool (pset dbsrv-pset)’ pooladm -c zonecfg -z dbsrv-zone create set zonepath=/nas/zones/dbsrv-zone set autoboot=true add net set address=172.16.2.203 set physical=e1000g0 set pool=dbsrv-pool verify commit exit zoneadm -z dbsrv-zone install zoneadm -z dbsrv-zone boot zlogin -C dbsrv-zone   How… Leer más »

Solaris PRTDIAG

prtdiag $prtdiag System Configuration: Sun Microsystems sun4v Sun Blade T6300 Server Module Memory size: 8064 Megabytes ================================ Virtual CPUs ================================ CPU ID Frequency Implementation Status —— ——— ———————- ——- 0 1000 MHz SUNW,UltraSPARC-T1 on-line 1 1000 MHz SUNW,UltraSPARC-T1 on-line 2 1000 MHz SUNW,UltraSPARC-T1 on-line 3 1000 MHz SUNW,UltraSPARC-T1 on-line 4 1000 MHz SUNW,UltraSPARC-T1 on-line 5… Leer más »

two nic’s one default gateway

Open /etc/sysconfig/network and append GATEWAY=eth0.gateway.IP.address Open /etc/sysconfig/network-scripts/route-eth1 and add routing for eth1 and restart it. For example: 202.54.1.2/29 via 202.54.2.254 Also, set static route for /etc/sysconfig/network-scripts/route-eth0: 10.1.2.3/8 via 10.10.38.95 Do not add gateway entries to /etc/sysconfig/network-scripts/ifcfg-eth1 and /etc/sysconfig/network-scripts/ifcfg-eth0