[SunHELP] RE: Listing Disk Sizes


Mon Feb 10 04:22:07 CST 2003


> Message: 10
> Date: Wed, 05 Feb 2003 15:33:57 -0600
> From: Bruce Pullig <bpullig at houston.oilfield.slb.com>
> Subject: Re:  [SunHELP] Listing Disk Sizes...
> To: sunhelp at sunhelp.org
> Message-ID:
> 	<5.0.2.1.2.20030205153055.023ceb08 at pop.houston.oilfield.slb.com>
> Content-Type: text/plain; charset=us-ascii; format=flowed
> 
>   prtvtoc `grep dsk /etc/vfstab | grep -v # | awk '{print $2}'`
> 
> Will give you partition information about disks in /etc/vfstab.
> 
> 
> At 04:11 AM 2/4/2003, Wyatt Draggoo wrote:
> >Afternoon all,
> >
> >I need to get a list of the disks attached to an Ultra 5, 
> along with the
> >total size of the disk, in a script under Solaris 7.  Most 
> of the commands
> >that deal with sizes (df, du) are per-partition, and format, 
> which lists
> >the disks, is interactive, which doesn't help a lot in a script.
> >
> >I'm sure there is a command to get this list, but a search 
> through this
> >list archive and both google and groups.google hasn't turned 
> up anything
> >for me.
> 
> -- 
> * * * * * * * * * * * * * * * * * * * * *
>    Bruce Pullig
>    Senior Systems Administrator
>    Schlumberger Information Solutions
>    Data Management Center
>    5444 Westheimer, Suite 800, Houston, TX 77056
>    Phone: 713.350.4217  Fax: 713.350.4102
>    bpullig at slb.com
> * * * * * * * * * * * * * * * * * * * * *
> 
> ------------------------------
> 

Try this.

iostat -E | egrep 'Size|Vendor|Model'


More information about the SunHELP mailing list