When adding a disk to LVM by pvcreate one gets the message Can't open /dev/sdXy exclusively. Mounted filesystem or when creating a new filesystem one gets Permission denied while trying to determine filesystem size, this means that disk is locked. That is:
- The device is locked because it's already mounted. Double check, if it's not the case.
The device is locked by multipathd. This was my case. This can be checked by sudo multipath -l. If your device is listed, then double check, if you aren't trying to use a wrong device.
If the device is locked by *multipath* and if this is an error, then to remove the device from multipath's control, issue sudo multipath -f /dev/sdX to remove the device.
After this, the device can use for LVM or a partition on it can formated.
At the moment, I'm trying to use vmware vSphere CLI tools under Debain SID and getting Server version unavailable at 'https://SERVER:443/sdk/vimService.wsdl' at /usr/local/share/perl/5.12.3/VMware/VICommon.pm line 545, <STDIN> line 1. This error is du to the LWP::UserAgent class which tries to validate the server certificate and fails if the certifcate CA is unknown(or self signed).
In order to bypass the server certificate validation, set PERL_LWP_SSL_VERIFY_HOSTNAME environnement variable to 0 by export PERL_LWP_SSL_VERIFY_HOSTNAME=0.
I mourn the loss of thousands of precious lives, but I will not rejoice in the death of one, not even an enemy. Returning hate for hate multiplies hate, adding deeper darkness to a night already devoid of stars. Darkness cannot drive out darkness: only light can do that. Hate cannot drive out hate: only love can do that.
I don't know if it was really said by Martin Luther King. But, it expresses how I feel nowadays. Moreover, I think a democratic country must not get it's revenge by killing, but by taking criminals to court.
I use moinmoin for my main web site since 2007 and moved my blog engine to pyblosxom (the old one was powered by wordpress) since april 2011. While moving to pyblosxom I wrote an entry parser in order to write my posts using moinmoin wiki syntax.
As one can notice, most of my posts use http://www.wikipedia.org as reference. By the time, linking to wikipedia notices' become quite painfull. In fact, I had type the full URL to the wikipedia notice. So I decided to write a simple macro LinkToWiki to ease the linking procedure to wikipedia notices' either on by blog or my web site.
To use this macro, just drop it in the macro folder of moinmoin and use <<LinkToWiki(notice,label,lang)>> to create links...
For example, <<LinkToWiki(wikipedia,Wikipedia,en)>> creates the link http://en.wikiepdia.org/wikipedia which is displayed as Wikipedia.
Moreover, the macro is quite flexible. In fact, it can be customized using:
- notice: wikipedia notice. It is mandatory.
label: is the name of the link. It's also displayed when the cursor is over it. If omited, notice is used.
- lang: wikipedia language(en for english, fr for french etc.). If missing, french is used.
Récemment, j'ai été amené à valider les dépendences des ressources au sein d'un Cluster Sun afin d'en vérifier la cohérence. Lors que je me suis collé, je n'ai pas trouvé d'outil simple permettant de grapher les relations entre chaque ressource. J'ai, donc, décidé mettre au point script shell simple pour générer un graphique permettant de visualiser simplement. Le script génère un fichier compatible graphviz. Une fois le fichier .dot généré, la commande dot -Tpng -o graph.png file.dot permet de créer le graphique au format png.
Un petit graphique valant mieux qu'un long texte, voilà le résultat: