Herramientas de usuario

Herramientas del sitio


notas:start

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Ambos lados, revisión anteriorRevisión previa
Próxima revisión
Revisión previa
Próxima revisiónAmbos lados, revisión siguiente
notas:start [2013/06/10 18:55] – [Sistema Operativo] cayunotas:start [2014/10/21 14:33] – [Sistema Operativo] cayu
Línea 47: Línea 47:
 | | |  :  | | | | |  :  | |
 | | |  L  |-| NFS |NFS=[[notas:Compartir archivos por NFS]] | | |  L  |-| NFS |NFS=[[notas:Compartir archivos por NFS]]
 +| | |  :  | |
 +| | |  L  |-| LINUX |-| UPGRADE_SUSE |LINUX=Linux|UPGRADE_SUSE=[[notas:linux:Actualizar SuSE Linux]]
 </diagram> </diagram>
-===== Hardware ===== 
  
-==== iDrac Dell ====+[[notas:linux:Medición de velocidad de cambio en filesystems en un sistema Linux (físico o virtual)]]
  
-IPMI es un estándar que encontramos en el hardware de muchos servidores, se trata de un chipset que permite obtener información del estado de diferentes componentes hardware, temperaturas, voltajes, etc. Este estándar lo conforman empresas como HP, Dell e Intel. +===== Hardware =====
- +
-Ejemplo de como activarlo desde el SSH de iDrac 6 +
- +
-<code> +
-racadm config -g cfgIpmiLan -o cfgIpmiLanEnable 1 +
-racadm config -g cfgIpmiLan -o cfgIpmiLanPrivilegeLimit <nivel> +
-</code> +
- +
-donde <nivel> es uno de los siguientes valores: +
-  * 2 (Usuario) +
-  * 3 (Operador) +
-  * 4 (Administrador) +
- +
-Como ver la configuración actual +
- +
-<code> +
-racadm getconfig -g cfgIpmiLan +
-</code> +
- +
-http://support.dell.com/support/edocs/software/smdrac3/idrac/idrac1.11/sp/ug/chap09.htm?~file=/software/smdrac3/idrac/idrac1.11/sp/ug/chap09.htm&~f= +
- +
- +
-Como obtener los datos desde nuestro sistema operativo +
- +
-<code> +
-ipmitool -I lan -H 10.0.0.10 -U user -P pass chassis status +
-ipmitool -I lan -H 10.0.0.10 -U user -P pass sdr list +
-ipmitool -I lan -H 10.0.0.10 -U user -P pass sdr type "Power Supply" +
- +
-Status           | 64h | ok  | 10.1 | Presence detected +
-Status           | 65h | ok  | 10.2 | Presence detected, Power Supply AC lost +
-Status           | 66h | ok  | 10.3 | Presence detected +
-Status           | 67h | ok  | 10.4 | Presence detected +
-PS Redundancy    | 74h | ok  |  7.1 | Redundancy Degraded +
-</code> +
- +
-<code> +
-/usr/sbin/ipmimonitoring -h 10.15.3.107 --config-file /etc/freeipmi.conf -u user -p pass +
-</code> +
- +
-^Record_ID^Sensor Name^Sensor Group^Monitoring Status^Sensor Units^Sensor Reading^ +
-|12 | Ambient Temp | Temperature | Nominal | C | 25.000000 | +
-|22 | CMOS Battery | Battery | Nominal | N/A | 'OK'+
-|24 | VCORE PG | Voltage | Nominal | N/A | 'State Deasserted'+
-|25 | VCORE PG | Voltage | Nominal | N/A | 'State Deasserted'+
-|26 | VCORE | Voltage | Nominal | N/A | 'State Deasserted'+
-|27 | VCORE | Voltage | Nominal | N/A | 'State Deasserted'+
-|28 | VCACHE PG | Voltage | Nominal | N/A | 'State Deasserted'+
-|29 | VCACHE PG | Voltage | Nominal | N/A | 'State Deasserted'+
-|30 | VCACHE | Voltage | Nominal | N/A | 'State Deasserted'+
-|31 | VCACHE | Voltage | Nominal | N/A | 'State Deasserted'+
-|32 | VIO PG | Voltage | Nominal | N/A | 'State Deasserted'+
-|33 | VIO PG | Voltage | Nominal | N/A | 'State Deasserted'+
-|34 | CPU 1.8 PLL PG | Voltage | Nominal | N/A | 'State Deasserted'+
-|35 | 8V Rear PG | Voltage | Nominal | N/A | 'State Deasserted'+
-|36 | 8V Front PG | Voltage | Nominal | N/A | 'State Deasserted'+
-|37 | 5V Rear PG | Voltage | Nominal | N/A | 'State Deasserted'+
-|38 | 5V Front PG | Voltage | Nominal | N/A | 'State Deasserted'+
-|39 | 3.3V PG | Voltage | Nominal | N/A | 'State Deasserted'+
-|40 | 1.8V PG | Voltage | Nominal | N/A | 'State Deasserted'+
-|41 | 1.5V PG | Voltage | Nominal | N/A | 'State Deasserted'+
-|42 | 1.1V PG | Voltage | Nominal | N/A | 'State Deasserted'+
-|43 | 0.9V PG | Voltage | Nominal | N/A | 'State Deasserted'+
-|44 | Mem VR PG | Voltage | Nominal | N/A | 'State Deasserted'+
-|45 | Mem VR PG | Voltage | Nominal | N/A | 'State Deasserted'+
-|46 | Mem VR PG | Voltage | Nominal | N/A | 'State Deasserted'+
-|47 | Mem VR PG | Voltage | Nominal | N/A | 'State Deasserted'+
-|48 | Mem VR PG | Voltage | Nominal | N/A | 'State Deasserted'+
-|49 | Mem VR PG | Voltage | Nominal | N/A | 'State Deasserted'+
-|50 | Mem VR PG | Voltage | Nominal | N/A | 'State Deasserted'+
-|51 | Mem VR PG | Voltage | Nominal | N/A | 'State Deasserted'+
-|52 | VR PG | Voltage | Nominal | N/A | 'State Deasserted'+
-|53 | VR1 PG | Voltage | Nominal | N/A | 'State Deasserted'+
-|54 | VR2 PG | Voltage | Nominal | N/A | 'State Deasserted'+
-|58 | Heatsink Pres | Entity Presence | Nominal | N/A | 'Entity Present'+
-|59 | iDRAC6 Ent Pres | Entity Presence | Nominal | N/A | 'Entity Present'+
-|60 | USB Cable Pres | Entity Presence | Nominal | N/A | 'Entity Present'+
-|61 | Stor Adapt Pres | Entity Presence | Nominal | N/A | 'Entity Present'+
-|62 | PCIe Riser Pres | Entity Presence | Critical | N/A | 'Entity Absent'+
-|63 | IO Riser Pres | Entity Presence | Nominal | N/A | 'OK'+
-|64 | FAN 1 RPM | Fan | Nominal | RPM | 2400.000000 | +
-|65 | FAN 2 RPM | Fan | Nominal | RPM | 2400.000000 | +
-|66 | FAN 3 RPM | Fan | Nominal | RPM | 2400.000000 | +
-|67 | FAN 4 RPM | Fan | Nominal | RPM | 2760.000000 | +
-|68 | FAN 5 RPM | Fan | Nominal | RPM | 2640.000000 | +
-|69 | FAN 6 RPM | Fan | Nominal | RPM | 2640.000000 | +
-|74 | Presence | Entity Presence | Nominal | N/A | 'Entity Present'+
-|75 | Presence | Entity Presence | Nominal | N/A | 'Entity Present'+
-|76 | Presence | Entity Presence | Nominal | N/A | 'Entity Present'+
-|77 | Presence | Entity Presence | Nominal | N/A | 'Entity Present'+
-|78 | Presence | Entity Presence | Nominal | N/A | 'Entity Present'+
-|79 | Presence | Entity Presence | Nominal | N/A | 'Entity Present'+
-|80 | Presence | Entity Presence | Nominal | N/A | 'Entity Present'+
-|81 | Presence | Entity Presence | Nominal | N/A | 'Entity Present'+
-|82 | Presence  | Entity Presence | Nominal | N/A | 'Entity Present'+
-|83 | Status | Processor | Nominal | N/A | 'Processor Presence detected'+
-|84 | Status | Processor | Nominal | N/A | 'Processor Presence detected'+
-|85 | Status | Processor | Nominal | N/A | 'Processor Presence detected'+
-|86 | Status | Processor | Nominal | N/A | 'Processor Presence detected'+
-|87 | Status | Power Supply | Nominal | N/A | 'Presence detected'+
-|88 | Status | Power Supply | Nominal | N/A | 'Presence detected'+
-|89 | Status | Power Supply | Nominal | N/A | 'Presence detected'+
-|90 | Status | Power Supply | Nominal | N/A | 'Presence detected'+
-|91 | Current | Current | Nominal | A | 0.800000 | +
-|92 | Current | Current | Nominal | A | 0.880000 | +
-|93 | Current | Current | Nominal | A | 0.680000 | +
-|94 | Current | Current | Nominal | A | 0.800000 | +
-|95 | Voltage | Voltage | Nominal | V | 222.000000 | +
-|96 | Voltage | Voltage | Nominal | V | 224.000000 | +
-|97 | Voltage | Voltage | Nominal | V | 224.000000 | +
-|98 | Voltage | Voltage | Nominal | V | 222.000000 | +
-|99 | Riser Config | Cable/Interconnect | Nominal | N/A | 'Cable/Interconnect is connected'+
-|100 | OS Watchdog | Watchdog 2 | Nominal | N/A | 'OK'+
-|102 | Intrusion | Physical Security | Nominal | N/A | 'OK'+
-|103 | PS Redundancy | Power Supply | Nominal | N/A | 'Fully Redundant'+
-|104 | Fan Redundancy | Fan | Nominal | N/A | 'Fully Redundant'+
-|105 | System Level | Current | Nominal | W | 700.000000 | +
-|107 | Drive | Drive Slot | Nominal | N/A | 'Drive Presence'+
-|109 | Cable SAS A | Cable/Interconnect | Nominal | N/A | 'Cable/Interconnect is connected'+
- +
-Si queremos elegir mostrar solo uno de los grupos deberemos agregar a la linea de comandos la opcion //-g// y el número //-g 103//. +
- +
-^Record_ID^Sensor Name^Sensor Group^Monitoring Status^Sensor Units^Sensor Reading^ +
-| 103 | PS Redundancy | Power Supply | Nominal | N/A | 'Fully Redundant' |+
  
  
 ===== Sistema Operativo ===== ===== Sistema Operativo =====
- 
 === Reloading inittab without reboot === === Reloading inittab without reboot ===
  
Línea 267: Línea 143:
  
 {{:notas:rescan-scsi-bus.sh-1.48.gz|}} {{:notas:rescan-scsi-bus.sh-1.48.gz|}}
 +
 +{{:notas:rescan-scsi-bus.sh-1.56.gz|}}
  
 http://www.garloff.de/kurt/linux/ http://www.garloff.de/kurt/linux/
 +
 +=== Reescanear tabla de particiones ===
 +
 +Esto es útil por ejemplo si agregamos un disco desde VMWare o si estiramos un disco y el SO todavia no lo ve.
 +
 +Desde una llamada al sistema :
 +<code>
 +echo 1 > /sys/block/sdd/device/rescan
 +fdisk -l
 +mkfs.ext3 /dev/sdXY
 +</code>
 +O podemos hacerlo ejecutando la utilidad **partprobe** sin argumentos, desde una shell con root.
  
 === Copia de seguridad con Rsync === === Copia de seguridad con Rsync ===
Línea 383: Línea 273:
 To use this program, both /dev/sd* and /dev/sg* need to be accessible. To use this program, both /dev/sd* and /dev/sg* need to be accessible.
 High-level formatting is usually needed after using this program(ex. mkfs.vfat -I /dev/sda). High-level formatting is usually needed after using this program(ex. mkfs.vfat -I /dev/sda).
-</code> 
- 
- 
-=== Postfix Error === 
- 
-Error :  
- 
-<code> 
-postfix/postdrop[13652]: warning: unable to look up public/pickup: No such file or directory 
-</code> 
- 
-Solución 
- 
-<code> 
-sudo mkfifo /var/spool/postfix/public/pickup 
-sudo /etc/init.d/postfix restart 
 </code> </code>
  
Línea 470: Línea 344:
  
  
-=== Redimensionado de volúmenes lógicos === 
- 
-Con ext3 
-<code> 
-# lvextend -L+3G /dev/VolGroup00/proxydmz2-var-log-squid 
-# e2fsck -f /dev/VolGroup00/proxydmz2-var-log-squid 
-# resize2fs  /dev/VolGroup00/proxydmz2-var-log-squid 
-</code> 
- 
-Si alguno quiere leer mas, aca hay una nota básica muy simple sobre LVM \\ 
-http://jazstudios.blogspot.com/2006/12/lvm-basics.html 
  
 === Servicios al inicio del Sistema === === Servicios al inicio del Sistema ===
Línea 689: Línea 552:
     fi     fi
 done done
 +</code>
 +
 +=== Copia rápida de seguridad via red ===
 +
 +En el equipo donde vamos a dejar la copia
 +<code>
 +netcat -l -p 7000 > stage.tgz
 +</code>
 +
 +Desde donde realizamos la copia, la ip es la del equipo anterior
 +<code>
 +tar cfzp - /oracle/stage | netcat 192.168.1.55 7000
 +</code>
 +
 +=== TAB Completion Debian Net Install ===
 +<code>
 +apt-get install bash-completion
 +exit
 +login
 +</code>
 +
 +=== IPCRM para determinado usuario ===
 +<code bash>
 +ipcs -a | grep `whoami`
 +
 +ipcs -s | grep $USERNAME | perl -e 'while (<STDIN>) { @a=split(/\s+/); print `ipcrm sem $a[1]`}'
 +
 +ipcs -s | grep $USERNAME | awk ' { print $2 } ' | xargs ipcrm sem
 </code> </code>
 ===== Redes sociales ===== ===== Redes sociales =====
Línea 858: Línea 749:
 Ref: http://elrincondetolgalen.wordpress.com/2009/11/12/script-de-nautilus-para-anadir-una-marca-de-agua-a-una-imagen/ Ref: http://elrincondetolgalen.wordpress.com/2009/11/12/script-de-nautilus-para-anadir-una-marca-de-agua-a-una-imagen/
  
-===== Ver el dmesg en formato humano ===== 
- 
-==== Alternativa I ==== 
- 
- 
-<code perl> 
-#!/usr/bin/perl 
-  
-use strict; 
-use warnings; 
-  
-my @dmesg_new = (); 
-my $dmesg = "/bin/dmesg"; 
-my @dmesg_old = `$dmesg`; 
-my $now = time(); 
-my $uptime = `cat /proc/uptime | cut -d"." -f1`; 
-my $t_now = $now - $uptime; 
-  
-sub format_time { 
- my @time = localtime $_[0]; 
- $time[4]+=1;    # Adjust Month 
- $time[5]+=1900;    # Adjust Year 
- return sprintf '%4i-%02i-%02i %02i:%02i:%02i', @time[reverse 0..5]; 
-} 
-  
-foreach my $line ( @dmesg_old ) 
-{ 
- chomp( $line ); 
- if( $line =~ m/\[\s*(\d+)\.(\d+)\](.*)/i ) 
- { 
- # now - uptime + sekunden 
- my $t_time = format_time( $t_now + $1 ); 
- push( @dmesg_new , "[$t_time] $3" ); 
- } 
-} 
-  
-print join( "\n", @dmesg_new ); 
-print "\n"; 
-</code> 
- 
-==== Alternativa II ==== 
- 
-<code perl> 
-#!/usr/bin/perl -wn 
-use strict; 
-  
-foreach my $line (<>) { 
-    my ($uptime) = (do { local @ARGV='/proc/uptime';<>} =~ /^(\d+)\./); 
-    $line=~/^\[\s*(\d+)\.\d+\](.+)/;  
-    printf "[%s]%s\n", scalar localtime(time - $uptime + $1), $2; 
-} 
-</code>