mar 27 2011

Cuche avec les Olives

Tag: VTTUggla @ 16 h 35 min

Dans la série, on travaille les épingles, l’incontournable Cuche est de retour.
Montée paisible, certes on oubliera ou pas, un pseudo échec de Lineltex sur la dernière forte pente. (Croissant, café à offrir Lundi matin ! ;) )

Passons à la descente, le passage du pierrier se négocie sans problème, Olivier avait échoué à son premier essai, mais cette fois ça passe. (ça doit être grâce à mes conseils de pilotage avisés !  » Tu lâches tout et ça doit passer » ).
Globalement les épingles sont passées sans problème non plus. Lineltex sortira la descente à 1, échec sur la dernière faute de confiance. Normal j’étais déjà en bas donc impossible de la faire recommencer, mais j’enregistre quand même une bonne progression de ce petit scarabée.

La classe, celle la tu peux la mettre sur beau gosse 38 !

Olivier lui a un peu rectifié le sol avec la fesse (note artistique 6/10) le tout juste devant moi suite à une perte de l’avant.
Encore un peu de travail sur les épingles mais c’est en bonne voie idem pour les chutes, Rico te ferra une démonstration… ;)

Retour sur Voreppe en faisant quelques relais efficaces. Lors de la montée sur la place principale Lineltex grille ses dernières forces. Le fourbe veut rentrer par la route ! (oui ça mérite sanction ! ;) )
Après 10mn de discussion (têtu le gaillard) on écourte le tour prévu, mais on rentre en prenant quand même quelques chemins. Ouf, j’ai cru que j’allais devoir sévir !

Distance : ~32 km D+ : ~1000 m.
Voir la trace avec Google map.

Le fichier gpx: http://uggla.free.fr/gps_track/2k11/20110326-cuche.gpx.
Le fichier kml : http://uggla.free.fr/gps_track/2k11/20110326-cuche.kmz.

Les photos sur la galerie.


mar 27 2011

Col de la Tençon rapido en fin de journée

Tag: VTTUggla @ 15 h 37 min

Petit tour en rentrant du taf plus tôt que d’habitude.
A partir de Dimanche, le changement d’heure va simplifier les choses.

Sinon excellent ce col de la Tençon express avec retour juste avant la nuit. Ambiance couché de soleil avant de basculer dans la descente.
Le sentier est super propre et bien tracé en ce moment. Ca file pas mal, quelques petits sauts de marche bien fun, avec le Kern, c’est du bonheur.

Faut absolument que je le fasse avec les potes !

Distance : ~17.5 km D+ : ~600 m.

Voir la trace avec Google map .

Le fichier gpx: http://uggla.free.fr/gps_track/2k11/20110325-tencon.gpx.
Le fichier kml : http://uggla.free.fr/gps_track/2k11/20110325-tenson.kmz.


mar 23 2011

Comment on progresse en VTT ?

Tag: VTTUggla @ 19 h 36 min

Comme ça :

Histoire de montrer à mes élèves que même le maître (quelle humilité ) peut brouter la prairie ! ;)

Donc je ne veux plus de freinages inutiles ou de refus de passer une marche ! D’ailleurs j’envisage de couper vos durites de freins ! GAZ !


mar 18 2011

Obtenir une vision synthétique du stockage sous Linux avec une baie XP (HP).

Tag: ScriptsUggla @ 15 h 11 min

Un script perl qui combine les sorties de différents outils (xpinfo, multipath, mount) pour produire une vue complète du stockage disque.

Ce script fonctionne sur une machine Linux (RHEL5.5) avec une baie XP (HP).

Note : Ce script fonctionne mais peut probablement être grandement amélioré


#!/usr/bin/perl
# --------------------------------------------------------------------------------
# Script :   map.pl
# Revision : 1.1
# Author :   Rene Ribaud
# Description :
# --------------------------------------------------------------------------------
use strict;
use warnings;
#use diagnostics;   # Only use it for debugging purpose.

# --------------------------------------------------------------------------------
# Global variables
# --------------------------------------------------------------------------------
# Time
my ($sec,$min,$hour,$day,$month,$year,$wday,$yday,$isdst);
my $timestamp;

# Data
# Define a full structure
#my %mpaths =(
#        name =>{
#               size => undef,
#               uuid => undef,
#               dm => undef,
#               fs => undef,
#               disk =>         {
#                               diskname =>     {
#                                               port => undef,
#                                               lunid => undef,
#                                               sfnum => undef,
#                                               ldev => undef,
#                                               type => undef,
#                                               xp => undef,
#                                               },
#                               },
#               },
#        );

my %mpaths;

# --------------------------------------------------------------------------------
# Functions
# --------------------------------------------------------------------------------

# --------------------------------------------------------------------------------
# Main
# --------------------------------------------------------------------------------

# Get variable from command line

# Get timestamp
($sec,$min,$hour,$day,$month,$year,$wday,$yday,$isdst)=localtime();
$timestamp=sprintf("%4d%02d%02d-%02d:%02d:%02d",($year+1900),($month+1),$day,$hour,$min,$sec);

# Slurp tools data into arrays in memory
my @xpinfo=`xpinfo -i`;
my @multipath=`multipath -ll`;
my @mounts=`mount`;

for (my $line=0; $line<scalar(@multipath); $line++){
if ($multipath[$line] =~ /^mpath/){   # Check & parse line : mpath23 (360060e8015276a000001276a0000d0fc) dm-8 HP,OPEN-V
        (my $mpath, my $uuid, my $dm, my $type) = split ('\s+',$multipath[$line]);
        $uuid=~s/\(//g;
        $uuid=~s/\)//g;
        $mpaths{$mpath}->{"dm"}=$dm;
        $mpaths{$mpath}->{"uuid"}=$uuid;
        $mpaths{$mpath}->{"type"}=$type;
        # Crosscheck into mount to get the fs name
        # /dev/mapper/mpath14 on /oradata/crs/voting1 type ocfs2 (rw,_netdev,datavolume,nointr,heartbeat=local)
        my $fs;
        my @mount = grep(/$mpath\s/,@mounts);
        if (scalar(@mount==0)){
                $fs="N/A";
                }
                else
                {
                (undef,undef,$fs) = split('\s+',$mount[0]);
                }
        $mpaths{$mpath}->{"fs"}=$fs;

        # Next line to parse : [size=36G][features=1 queue_if_no_path][hwhandler=0][rw]
        $line++;
        if ($multipath[$line] =~ /^\[size=/){
                (my $size) = $multipath[$line] =~ /\[size=([0-9]+\w)/;
                $mpaths{$mpath}->{"size"}=$size;

                # Next line to parse : \_ round-robin 0 [prio=0][active]
                $line++;
                if ($multipath[$line] =~ /^\\_/){
                        # Next line to parse :  \_ 0:0:4:13 sdad 65:208 [active][ready]
                        $line++;
                        if ($multipath[$line] =~ /^ \\_/){
                                my $no_more_device=0;
                                do{
                                        (undef,undef,undef,my $disk, my $sf, undef) = split ('\s+',$multipath[$line]);
                                        $mpaths{$mpath}->{"disk"}->{$disk}->{"sfnum"}=$sf;
                                        # Crosscheck into xpinfo
                                        my @device = grep(/$disk\s/,@xpinfo);

                                        # Handle the case where device was not unmapped correctly
                                        # Unmapped from XP and not remoove from multipath.
                                        if (scalar(@device) == 0){
                                                $mpaths{$mpath}->{"disk"}->{$disk}->{"port"} = "Not found";
                                                $mpaths{$mpath}->{"disk"}->{$disk}->{"lunid"}= "N/A";
                                                $mpaths{$mpath}->{"disk"}->{$disk}->{"ldev"}= "N/A";
                                                $mpaths{$mpath}->{"disk"}->{$disk}->{"type"}= "N/A";
                                                $mpaths{$mpath}->{"disk"}->{$disk}->{"xp"}= "N/A";
                                        }
                                        else{
                                                #/dev/sdu                     76  04  02  CL2H  d0:f1  OPEN-V           00075626
                                                (undef,undef,undef, my $lunid, my $port, my $ldev, my $type, my $xp) = split('\s+',$device[0]);
                                                $mpaths{$mpath}->{"disk"}->{$disk}->{"port"}=$port;
                                                $mpaths{$mpath}->{"disk"}->{$disk}->{"lunid"}=$lunid;
                                                $mpaths{$mpath}->{"disk"}->{$disk}->{"ldev"}=$ldev;
                                                $mpaths{$mpath}->{"disk"}->{$disk}->{"type"}=$type;
                                                $mpaths{$mpath}->{"disk"}->{$disk}->{"xp"}=$xp;
                                        }
                                        if ((defined($multipath[$line+1])) && ($multipath[$line+1] =~ /^ \\_/)){
                                                $line++;
                                                }
                                                else {
                                                $no_more_device=1;
                                                }
                                        } while ($no_more_device==0);
                                }
                        }
                }
        }
}

# Print mapping
printf("%-34s %-9s %-7s %-6s %-6s %-8s %-6s %-6s %s\n","UUID","xp","type","size","dm","mapth","lunid","ldev","fs");
foreach my $mpath (sort(keys(%mpaths))){
        my @first_disk=keys(%{$mpaths{$mpath}->{"disk"}});
        # Check to report disk not unmapped correctly
        printf("%-34s %-9s %-7s %-6s %-6s %-8s %-6s %-6s %s\n"  ,$mpaths{$mpath}->{"uuid"}
                                                                ,$mpaths{$mpath}->{"disk"}->{$first_disk[0]}->{"xp"}
                                                                ,$mpaths{$mpath}->{"disk"}->{$first_disk[0]}->{"type"}
                                                                ,$mpaths{$mpath}->{"size"}
                                                                ,$mpaths{$mpath}->{"dm"}
                                                                ,$mpath
                                                                ,$mpaths{$mpath}->{"disk"}->{$first_disk[0]}->{"lunid"}
                                                                ,$mpaths{$mpath}->{"disk"}->{$first_disk[0]}->{"ldev"}
                                                                ,$mpaths{$mpath}->{"fs"}
                                                                );
        my $notfoundcount=0;
        foreach my $disk (keys(%{$mpaths{$mpath}->{"disk"}})){
                printf("%-6s %-8s %-4s\n",$disk,$mpaths{$mpath}->{"disk"}->{$disk}->{"sfnum"},$mpaths{$mpath}->{"disk"}->{$disk}->{"port"});

                if ($mpaths{$mpath}->{"disk"}->{$disk}->{"port"} eq "Not found"){
                        $notfoundcount++;
                        }

                if ($notfoundcount == scalar(keys(%{$mpaths{$mpath}->{"disk"}}))){
                        printf("This device was found in multipath but not reported by xpinfo.\n");
                        printf("Multipath device was probably not flushed after unmapping the device.\n");
                        printf("Try to run multipath -f %s.\n",$mpath);
                        }

                }

print "\n";
}

Output result :

UUID                               xp        type    size   dm     mapth    lunid  ldev   fs
360060e8015276a000001276a0000d0f1  00075626  OPEN-V  201M   dm-13  mpath14  02     d0:f1  /oradata/crs/voting1
sdai   66:32    CL1F
sdc    8:32     CL2F
sday   67:32    CL1H
sds    65:32    CL2H

360060e8015276a000001276a0000d0f2  00075626  OPEN-V  201M   dm-14  mpath15  03     d0:f2  /oradata/crs/voting2
sdd    8:48     CL2F
sdaz   67:48    CL1H
sdaj   66:48    CL1F
sdt    65:48    CL2H

360060e8015276a000001276a0000d0f3  00075626  OPEN-V  201M   dm-15  mpath16  04     d0:f3  /oradata/crs/voting3
sde    8:64     CL2F
sdu    65:64    CL2H
sdba   67:64    CL1H
sdak   66:64    CL1F

360060e8015276a000001276a0000d0f4  00075626  OPEN-V  201M   dm-16  mpath17  05     d0:f4  /oradata/GFSTEUR1/pfile
sdal   66:80    CL1F
sdv    65:80    CL2H
sdbb   67:80    CL1H
sdf    8:80     CL2F

360060e8015276a000001276a0000d0f5  00075626  OPEN-V  36G    dm-17  mpath18  06     d0:f5  /oradata/GFSTEUR1/undo
sdg    8:96     CL2F
sdbc   67:96    CL1H
sdw    65:96    CL2H
sdam   66:96    CL1F

360060e8015276a000001276a0000d0f8  00075626  OPEN-V  99G    dm-18  mpath19  09     d0:f8  /oradata/RMAN/rman01
sdh    8:112    CL2F
sdan   66:112   CL1F
sdbd   67:112   CL1H
sdx    65:112   CL2H
...


mar 16 2011

HPVM B.04.20.05 update and vlan usage

Tag: UnixUggla @ 16 h 19 min

Article en anglais pour partager à l’international.

I recently got a severe issue upgrading HPVM to B.04.20.05.
Of course the « trap » was notified into the manual, but I worked to fix another issue, missed it and ran into serious problems.

So, the idea of this article is to avoid pitfalls documenting them.

  1. Avoid vlan unsupported configuration.

    Extracted from documentation (http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c02023903/c02023903.pdf) :

    Do not use the hpvmnet command to create a virtual switch that
    is associated with a VLAN port on the VM Host (that is, a LAN created with lanadmin -V).
    This “nested VLAN” configuration is not supported.

    In the following configuration :

    root@hx05333: /root/home/root # lanscan
    Hardware Station        Crd Hdw   Net-Interface  NM  MAC       HP-DLPI DLPI
    Path     Address        In# State NamePPA        ID  Type      Support Mjr#
    0/0/0/3/0/0/2 0x64315000A911 4   UP    lan4 snap4     3   ETHER     Yes     119
    0/0/0/3/0/0/3 0x64315000A915 5   UP    lan5 snap5     4   ETHER     Yes     119
    0/0/0/3/0/0/4 0x64315000A912 6   UP    lan6 snap6     5   ETHER     Yes     119
    0/0/0/3/0/0/5 0x64315000A916 7   UP    lan7 snap7     6   ETHER     Yes     119
    0/0/0/3/0/0/6 0x64315000A913 8   UP    lan8 snap8     7   ETHER     Yes     119
    0/0/0/3/0/0/7 0x64315000A917 9   UP    lan9 snap9     8   ETHER     Yes     119
    0/0/0/4/0/0/0 0x64315000A918 2   UP    lan2 snap2     9   ETHER     Yes     119
    0/0/0/4/0/0/1 0x64315000A91C 3   UP    lan3 snap3     10  ETHER     Yes     119
    LinkAgg0 0x0017A477FE00 900 UP    lan900 snap900 12  ETHER     Yes     119
    VLAN5001 0x0017A477FE00 5001 UP    lan5001 snap5001 63  ETHER     Yes     119
    VLAN5000 0x0017A477FE00 5000 UP    lan5000 snap5000 62  ETHER     Yes     119
    LinkAgg1 0x000000000000 901 DOWN  lan901 snap901 13  ETHER     Yes     119
    LinkAgg2 0x000000000000 902 DOWN  lan902 snap902 14  ETHER     Yes     119
    LinkAgg3 0x000000000000 903 DOWN  lan903 snap903 15  ETHER     Yes     119
    LinkAgg4 0x000000000000 904 DOWN  lan904 snap904 16  ETHER     Yes     119
    

    1. lan900 is « bonding » of interface lan0 and lan1 carrying all the vlans.
    2. lan5000 is an interface that select a vlan(113) of lan900
    3. lan5001 is an interface that select a vlan(213) of lan900

    Clearly it means that lan5000 or lan5001 must not be connected to the virtual switch.
    Lan900 (the one with all the vlans) must be connected to the switch, and it is virtual switch job to manage the vlan tagging mechanism for all our VM.

    The configuration should be done in the following way.

    1. Create virtual switch.
      hpvmnet -c -S vmlan -n 900
      
    2. Define 2 ports with vlan 113 and 213
      hpvmnet -S vmlan -u portid:1:vlanid:113
      hpvmnet -S vmlan -u portid:2:vlanid:213
      
    3. Attach VM to the ports just created.
      hpvmmodify -P hx05374 -a network:avio_lan::vswitch:vmlan:portid:1
      hpvmmodify -P hx05374 -a network:avio_lan::vswitch:vmlan:portid:2
      
    4. Check virtual switch and VM are ok.
      root@hx05333: /root/home/root # hpvmnet
      Name     Number State   Mode      NamePPA  MAC Address    IPv4 Address
      ======== ====== ======= ========= ======== ============== ===============
      localnet      1 Up      Shared             N/A            N/A
      vmlan        10 Up      Shared    lan900   0x0017a477fe00
      

      root@hx05333: /root/home/root # hpvmnet -S vmlan
      Name     Number State   Mode      NamePPA  MAC Address    IPv4 Address
      ======== ====== ======= ========= ======== ============== ===============
      vmlan        10 Up      Shared    lan900   0x0017a477fe00
      
      [Port Configuration Details]
      Port    Port         Port     Untagged Number of    Active VM    Tagged
      Number  State        Adaptor  VLANID   Reserved VMs              VLANIDs
      ======= ============ ======== ======== ============ ============ =============
      1       Active       avio_lan 113      1            hx05374      none
      2       Active       avio_lan 213      1            hx05374      none
      

      root@hx05333: /root/home/root # hpvmstatus -p1
      [Virtual Machine Details]
      Virtual Machine Name VM #  OS Type State
      ==================== ===== ======= ========
      hx05374                  1 HPUX    On (OS)
      
      [Authorized Administrators]
      Oper Groups             :
      Admin Groups            :
      Oper Users              :
      Admin Users             :
      
      [Virtual CPU Details]
      #vCPUs Entitlement Maximum
      ====== =========== =======
           4       10.0%  100.0%
      
      [Memory Details]
      Total    Reserved
      Memory   Memory
      =======  ========
      17000 MB     64 MB
      
      [Dynamic Memory Information]
      Minimum     Target      Memory      Maximum
      Memory      Memory      Entitlement Memory
      =========== =========== =========== ===========
         512 MB    17018 MB          -     17000 MB
      
      [Storage Interface Details]
      Guest                                 Physical
      Device  Adaptor    Bus Dev Ftn Tgt Lun Storage   Device
      ======= ========== === === === === === ========= =========================
      disk    avio_stor    0   4   0   0   0 disk      /dev/rdisk/disk11
      disk    avio_stor    0   4   0   1   0 disk      /dev/rdisk/disk3
      disk    avio_stor    0   4   0   2   0 disk      /dev/rdisk/disk8
      disk    avio_stor    0   4   0   3   0 disk      /dev/rdisk/disk17
      
      [Network Interface Details]
      Interface Adaptor    Name/Num   PortNum Bus Dev Ftn Mac Address
      ========= ========== ========== ======= === === === =================
      vswitch   avio_lan   vmlan      1         0   0   0 36-af-e6-d1-20-bc
      vswitch   avio_lan   vmlan      2         0   1   0 8e-b5-a9-a9-14-23
      
      [Misc Interface Details]
      Guest                                 Physical
      Device  Adaptor    Bus Dev Ftn Tgt Lun Storage   Device
      ======= ========== === === === === === ========= =========================
      serial  com1                           tty       console
      
  2. Update HPVM to B.04.20.05.

    1. Patch the VM with QPK bundle.
    2. Add VM patches to avoid dynamic memory issue.

      This will avoid to be in the case defined by this article :
      http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c02692588&lang=en&cc=us&taskId=101&prodSeriesId=4146128&prodTypeId=18964

      Add the PHSS_41543 and PHSS_41550, this will give the following patch list due to dependencies.

      PHKL_41227 (2) clock cumulative patch
      PHSS_41191 (2) HPVM B.04.20.05 VMMIGRATE PATCH
      PHSS_41413 (2) HPVM B.04.20.05 vmGuestLib
      PHSS_41543 (2) [S] HPVM B.04.20.05 CORE PATCH
      PHSS_41550 (2) HPVM B.04.20.05 HPVM-VMSGTK
      
    3. Clean up VM.
      1. Remove HPVM product.
        swremove -x autoreboot=true T2767CC VMKernelSW
        

        Note : VMKernelSW should not be available on the VM

      2. Remove HostAVIO* product.
        swremove -p -x autoreboot=true  HostAVIOStor HostAvioLan
        swremove -x autoreboot=true  HostAVIOStor HostAvioLan
        
      3. Upgrade GuestAVIO* product.
        swinstall -p -x autoreboot=true -x logdetail=true -s calisson:/var/depot/hp-ux/11.31/hp-ux GuestAVIOStor GuestAvioLan
        swinstall -x autoreboot=true -x logdetail=true -s calisson:/var/depot/hp-ux/11.31/hp-ux GuestAVIOStor GuestAvioLan
        

      4. VM should now have only the following product.
        root@hx05374: /root/home/root # swlist -l bundle | egrep -i "HPVM|Integ"
          GuestAVIOStor         B.11.31.1009   HPVM Guest AVIO Storage Software
          GuestAvioLan          B.11.31.1009   HPVM Guest AVIO LAN Software
          HPVM-Guest            B.04.20     Integrity VM Guest
          LDAPUX                B.04.20        LDAP-UX Integration
          VMGuestLib            B.04.20     Integrity VM Guest Support Libraries
          VMProvider            B.04.20     WBEM Provider for Integrity VM
        
    4. Install full QPK on host including FEATURE11i bundle.
      Note : FEATURE11i will be checked by HPVM product script before upgrade.
    5. Upgrade AVIO software.
      swinstall -p -x autoreboot=true -x logdetail=true -s calisson:/var/depot/hp-ux/11.31/hp-ux GuestAVIOStor GuestAvioLan HostAVIOStor HostAvioLan
      swinstall -x autoreboot=true -x logdetail=true -s calisson:/var/depot/hp-ux/11.31/hp-ux GuestAVIOStor GuestAvioLan HostAVIOStor HostAvioLan
      
    6. Upgrade HPVM product.

      Do not force install, correct the dependencies issues by bringing the required bundle (VMGuestLib, VMGuestSW, AVIO* …) into the source depot.

      swinstall -p -x autoreboot=true -x logdetail=true -s calisson:/var/depot/hp-ux/11.31/hp-ux T2767CC
      swinstall -x autoreboot=true -x logdetail=true -s calisson:/var/depot/hp-ux/11.31/hp-ux T2767CC
      
    7. Check host, the following command should report something like this.
      root@hx05333: /root/home/root # swlist -l bundle | egrep "Integri|HPVM"
        GuestAVIOStor         B.11.31.1009   HPVM Guest AVIO Storage Software
        GuestAvioLan          B.11.31.1009   HPVM Guest AVIO LAN Software
        HostAVIOStor          B.11.31.1009   HPVM Host AVIO Storage Software
        HostAvioLan           B.11.31.1009   HPVM Host AVIO LAN Software
        T2767CC               B.04.20.05     Integrity VM
        VMGuestLib            B.04.20.05     Integrity VM Guest Support Libraries
        VMGuestSW             B.04.20.05     Integrity VM Guest Support Software
        VMKernelSW            B.04.20        Integrity VM Kernel Software
      

      Note : VMKernelSW remains at B.04.20, this is normal B.04.20.05 does not contain a new « host » kernel.

    8. Copy and register a depot from /opt/hpvm/guest-images/hpux/11iv3/hpvm_guest_depot.11iv3.sd on the host.
      swcopy -p -x enforce_dependencies=false -s /opt/hpvm/guest-images/hpux/11iv3/hpvm_guest_depot.11iv3.sd \* @ /var/depot/hpvm-guest
      swcopy -x enforce_dependencies=false -s /opt/hpvm/guest-images/hpux/11iv3/hpvm_guest_depot.11iv3.sd \* @ /var/depot/hpvm-guest
      swreg -l depot /var/depot/hpvm-guest
      
    9. Install VM tools on the VM.
      swinstall -p -x autoreboot=true -s hx05333:/var/depot/hpvm-guest HPVM-Guest vmProvider
      swinstall -x autoreboot=true -s hx05333:/var/depot/hpvm-guest HPVM-Guest vmProvider
      
    10. Check VM, the output should be similar to the following lines.
      root@hx05374: /root/home/root # swlist -l bundle | egrep -i "HPVM|Integri"
        GuestAVIOStor         B.11.31.1009   HPVM Guest AVIO Storage Software
        GuestAvioLan          B.11.31.1009   HPVM Guest AVIO LAN Software
        HPVM-Guest            B.04.20.05     Integrity VM Guest
        VMGuestLib            B.04.20.05     Integrity VM Guest Support Libraries
        VMProvider            B.04.20.05     WBEM Provider for Integrity VM
      

Now host and VM should be upgraded correctly.


mar 12 2011

Travail des épingles à La Lampe

Tag: VTTUggla @ 20 h 58 min

Longue sortie en ce qui me concerne, bien fait plaisir dans la fin descente derrière le Pieu : plein gaz sans toucher aux freins.

Rico bien cassé en fin de sortie, j’ai du un peu le pousser ! Que ce ne devienne pas une habitude ! ;)

Olivier m’a pas mal impressionné :

  • Passage super raide négocié même pas mal…
  • Bien roulé sur la partie tournicotante du retour sur Varces.
  • Et toujours de la puissance au retour, qui m’a permis d’économiser pas mal d’énergie en me plaçant dans la roue.

Par contre j’ai pas pris de photos…. :(

Distance : ~75 km D+ : ~900 m.
Voir la trace avec Google map.

Le fichier gpx: http://uggla.free.fr/gps_track/2k11/LaLampe3122011.gpx.
Le fichier kml : http://uggla.free.fr/gps_track/2k11/LaLampe3122011.kml.


mar 08 2011

Transformer HPUX en OS du 21eme siècle

Tag: UnixUggla @ 14 h 58 min

Un billet avec un peu d’humour, en référence à un collègue qui traite HPUX d’OS du 20eme siècle. (pas totalement faux non plus…)

La suite Internet express, permet d’ajouter plusieurs produits open source courant sur Linux. La liste est disponible sur le site.

https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1131

Mon trio préféré :

  • lsof
  • rsync
  • sudo

Juste indispensable, mais pas disponible de facto sur HPUX. (oui ca fait peur….)
C’est mieux, mais bon il manque encore beaucoup d’outils pour se simplifier la vie (complétion de commande avancée, logrotate, fs partagé open source (pas cfs), gcc, mutt, etc…)


mar 08 2011

Avoir son icône personnel sur ce blog

Tag: WordpressUggla @ 14 h 35 min

Très simple, il faut ouvrir un compte sur gravatar et télécharger son icône.

http://en.gravatar.com/

Ensuite l’icône sera lié sur chaque commentaire.


mar 08 2011

Gestion des rapports AWR.

Tag: DBUggla @ 14 h 21 min

Un petit aide mémoire pour la gestion des rapports AWR.
Requête pour connaître la rétention et la période de lancement.

select
      extract( day from snap_interval) *24*60+
      extract( hour from snap_interval) *60+
      extract( minute from snap_interval ) "Snapshot Interval",
      extract( day from retention) *24*60+
      extract( hour from retention) *60+
      extract( minute from retention ) "Retention Interval"
from dba_hist_wr_control;

http://www.dba-oracle.com/oracle10g_tuning/t_sdbms_workoad_repository_snapshot_settings.htm

Une bonne page qui résume bien les opérations que l’on peut faire avec les rapports awr.
http://www.oracle-base.com/articles/10g/AutomaticWorkloadRepository10g.php


mar 02 2011

ssh trucs et astuces

Tag: UnixUggla @ 18 h 02 min

Quelques trucs et astuces avec ssh.

  • Ignorer la clef de host :
    ssh -o stricthostkeychecking=no server
    
  • Mode batch, aucun « prompt » (password, clef) n’est demandé, en gros ca marche ou pas :
    ssh -o batchmode=yes server
    
  • Mode quiet , aucun message d’alerte ou diagnostique est affiché :
    ssh -q server
    
  • Utiliser une commande avec des quotes (ex : awk). Il faut protéger les quotes avec des double quotes ("'") :
    ssh server 'vgdisplay | grep "VG Name" | awk '"'"'{print $NF}'"'"''
    

Page suivante »