Re: How many HD ?

From: Hans-Joachim Ehlers (service_at_metamodul.com)
Date: 08/19/03


Date: Tue, 19 Aug 2003 13:46:45 +0200


"Dan Foster" <dsf@globalcrossing.net> schrieb im Newsbeitrag
news:slrnbk41b3.1a7.dsf@gaia.roc2.gblx.net...
> In article <bhssgh$g9t6@news-1.bank.dresdner.net>, Hans-Joachim Ehlers
<service@metamodul.com> wrote:
> >
> > # Total hdisk space
> > lscfg -l hdisk\* | awk '{ print $1 }' | xargs -I{} lsattr -El {} -a
> > size_in_mb | awk '{ SIZE=SIZE+$2 } END { print SIZE/1024" GB" } '
>
> Only one problem... lscfg -l hdisk\* | awk '{print $1}' returned:
>
> # lscfg -l hdisk\*|awk '{print $1}'
> DEVICE
>
> hdisk0
> MB)
> hdisk1
> MB)
> hdisk2
> MB)
> hdisk3
> MB)
> hdisk4
>
> Why? Because the lscfg -l output was:
>
> # lscfg -l hdisk\*
> DEVICE LOCATION DESCRIPTION
>
> hdisk0 10-88-00-8,0 16 Bit LVD SCSI Disk Drive (36400
> MB)

Hm, my cmd line was only tested on AIX 5.2
Looks like IBM fixed the strange lscfg output from the previous versions.

cy
Hajo



Relevant Pages

  • Re: HowTo: constraints and Relations via ODBC.NET
    ... "Olaf Krause" schrieb im Newsbeitrag ... cmd = AdoProviderFactory.GetCommand; ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: AIX 5.2 errormessage: Could not get "user" information
    ... "Greg Beeker" schrieb im Newsbeitrag ... That are the aix default values for permissions/owner/group for /etc/passwd. ...
    (comp.unix.aix)
  • Re: AIX 5.2 HACMP
    ... "Tom Fischer" schrieb im Newsbeitrag ... I'm not an expert on AIX nor on HACMP but ih have a ... > workshop on hacmp. ...
    (comp.unix.aix)
  • Re: Inexpensive AIX?
    ... "Don Brady" schrieb im Newsbeitrag ... AFAIK AIX licences cannot be transferred between companies. ... see CD media that do NOT include any licence. ...
    (comp.unix.aix)
  • Re: The Guitar Teacher Project
    ... "Joe Finn" schrieb im Newsbeitrag ... Should I teach reading for the first half of the lesson and then go with "smoke on the water"? ...
    (rec.music.makers.guitar.jazz)