Comment déterminer les répertoires associés à un disque sur AIX
Par Flyounet le lundi 26 septembre 2011, 12:50 - Outils & Développements - Lien permanent
Alors qu'il y a peu, je me posais la question inverse, à savoir : Comment déterminer un disque en partant d'un répertoire sur AIX, j'ai aujourd'hui la problématique inverse et ça fait chier !
Donc pour pas perdre de temps voici comment faire simple :
# r='hdisk5';for vg in $(lsvg); do lsvg -l $vg | tail +3 | awk '{print $1,$NF}' | while read dsk lv; do if lslv -l $dsk|grep $r>/dev/null; then echo "$vg - $lv"; fi;done; done
appvg - N/A
appvg - /var/mqm
appvg - /opt/IBM/ITM
appvg - /u01
appvg - /app_nfs
On remplace le r=blabla et on lance en root évidemment.
Commentaires
sac louis vuitton Pas Cher If you want to catch up to the latest vogue, having Louis Vuitton Handbags of the latest styles can absolutely satisfy you.Just visit LV outlet webpage and select the most suitable products for yourself.louis vuitton sacs Consequently, we can know that there are few famous manufacturers that will meet all of the demands, especially the Louis Vuitton Online factory.
sac louis vuitton Pas Cher If you want to catch up to the latest vogue, having Louis Vuitton Handbags of the latest styles can absolutely satisfy you.Just visit LV outlet webpage and select the most suitable products for yourself.louis vuitton sacs Consequently, we can know that there are few famous manufacturers that will meet all of the demands, especially the Louis Vuitton Online factory.