lspv | awk '{ print $1, $3 }' | while read hd vg
do
lspv -l $hd \
| grep -v "N/A" \
| grep -v ":" \
| grep -v NAME \
| awk -v vg="$vg" -v hd="$hd" '{ print "HD: ", hd, "VG: ", vg, " VOL: ", $1, " Mount: ", $5 }'
done
Eu criei o script acima com base nas informações encontradas nesta página.
Produz uma lista como a abaixo:
HD: hdisk0 VG: rootvg VOL: hd1 Mount: /home
HD: hdisk0 VG: rootvg VOL: hd3 Mount: /tmp
HD: hdisk0 VG: rootvg VOL: hd9var Mount: /var
HD: hdisk0 VG: rootvg VOL: hd2 Mount: /usr
HD: hdisk0 VG: rootvg VOL: hd4 Mount: /
HD: hdisk0 VG: rootvg VOL: livedump Mount: /var/adm/ras/livedump
HD: hdisk0 VG: rootvg VOL: hd11admin Mount: /admin
HD: hdisk1 VG: rootvg VOL: hd4 Mount: /
HD: hdisk1 VG: rootvg VOL: fslv00 Mount: /ora01
HD: hdisk2 VG: volumegroup1 VOL: data02lv Mount: /oradata02
HD: hdisk2 VG: volumegroup1 VOL: undolv Mount: /oraundo
HD: hdisk2 VG: volumegroup1 VOL: fslv01 Mount: /QueueMessages
HD: hdisk3 VG: volumegroup1 VOL: redo01lv Mount: /oraredo01
HD: hdisk3 VG: volumegroup1 VOL: data03lv Mount: /oradata03
HD: hdisk3 VG: volumegroup1 VOL: arclv Mount: /oraarcredo
HD: hdisk4 VG: volumegroup1 VOL: redo02lv Mount: /oraredo02
HD: hdisk4 VG: volumegroup1 VOL: data01lv Mount: /oradata01
HD: hdisk4 VG: volumegroup1 VOL: data04lv Mount: /oradata04
HD: hdisk5 VG: volumegroup2 VOL: imagelv Mount: /oraimages
HD: hdisk6 VG: volumegroup2 VOL: imagelv Mount: /oraimages
HD: hdisk7 VG: volumegroup2 VOL: imagelv Mount: /oraimages
HD: hdisk8 VG: volumegroup2 VOL: imagelv Mount: /oraimages