Re: checking total and free space
From: yls177 (yls177_at_hotmail.com)
Date: 08/11/04
- Previous message: Jeff C,: "Re: GPL'ing Solaris won't save SUN"
- In reply to: Darren Dunham: "Re: checking total and free space"
- Next in thread: Michael Vilain
: "Re: checking total and free space" - Reply: Darren Dunham: "Re: checking total and free space"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 10 Aug 2004 19:03:37 -0700
Darren Dunham <ddunham@redwood.taos.com> wrote in message news:<mu6Sc.3175$vv3.1870@newssvr27.news.prodigy.com>...
> yls177 <yls177@hotmail.com> wrote:
> > Sheldon T. Hall <obviously.fake@example.com> wrote in message news:<4sjgh0topo5nnssn1hief7rk2abh7fa98l@4ax.com>...
> >> On 9 Aug 2004 21:05:29 -0700, yls177@hotmail.com (yls177) wrote:
> >>
> >> >hi, i wanted to find the total disk space, and free disk space. I am
> >> >quite puzzled as whether i have volume groups. My experience is in
> >> >volume groups with aix, hpux. But is quite new to sun. Anyway, i
> >> >managed to find a format command. please advise.
> >>
> >> The df command will tell you how much disk space is free. man df for
> >> details. I use the -k option to get the results in kbytes rather than
> >> sectors.
>
> Well, no. The df command will tell you how much space in the filesystem
> is free. It tells you nothing about unallocated disk space.
yup.. that is what i think too. therefore, what must i do to find the
total space and free space in the server?
>
> > if they are on volume group, with sun, this is possible with veritas
> > volume management, then we need to find the number of free partitions
> > and the size of each partition to get the free space. This is because
> > the free space shown by df is only for that logical volume/file
> > system.
>
> > back to my question. i have listed my df and format output. df shows
> > the below filesystem
>
> > /dev/md/dsk/d0 32914533 1858145 30727243 6%
> > /dev/dsk/c2t5d0s0 10324988 5492552 4729187 54%
> > /dev/dsk/c2t5d0s5 12718428 3896683 8694561 31%
> > /dev/dsk/c2t5d0s1 5162078 1651707 3458751 33%
> > /dev/dsk/c2t5d0s3 20649993 17224312 3219182 85%
> > /dev/dsk/c2t5d0s4 20649993 2154301 18289193 11%
>
> Okay.
>
> > and format gives
> > 0. c1t0d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
> > 1. c1t1d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
> > 2. c2t5d0 <Symbios-StorEDGEA1000-0301 cyl 34467 alt 2 hd 64 sec
>
> > 1) where does c1t0d0 comes into the picture?
>
> Unknown from the above, but it is likely mirrored with c1t1d0 into the
> /dev/md/dsk/d0 device.
>
yup, think that u are right cos /dev/md/dks/d0 is the root filesystem
> You would need the output of 'metastat' and the output of 'prtvtoc' on
> each of the drives.
>
> > 2) what is the difference between /dev/md/dsk and /dev/dsk/c2td5d0s**
>
> /dev/md devices are virtual (volume managment) devices. 'metastat' will
> show the construction.
>
> /dev/dsk devices are physical slices on disks. 'prtvtoc <disk>' will
> show the layout.
i give the output for one of the slics as below
# prtvtoc /dev/dsk/c2t5d0s0
* /dev/dsk/c2t5d0s0 partition map
*
* Dimensions:
* 512 bytes/sector
* 64 sectors/track
* 64 tracks/cylinder
* 4096 sectors/cylinder
* 34469 cylinders
* 34467 accessible cylinders
*
* Flags:
* 1: unmountable
* 10: read-only
*
* First Sector Last
* Partition Tag Flags Sector Count Sector Mount Directory
0 0 00 0 20971520 20971519 /oracle
1 0 00 20971520 10485760 31457279 /oracle/product
2 5 01 0 141176832 141176831
3 0 00 31457280 41943040 73400319 /oracle/oradata1
4 0 00 73400320 41943040 115343359 /oracle/oradata2
5 0 00 115343360 25833472 141176831 /app
but am i right to say that the output of the above prtvtoc
/dev/dsk/c2t5d0s0 will be the same as for df -kt | grep c2t5d0s0?
for the prtvtoc output, to get the total disk space for that slice is
"cylinders* sectors/cylinder * bytes/sector"?
thanks
- Previous message: Jeff C,: "Re: GPL'ing Solaris won't save SUN"
- In reply to: Darren Dunham: "Re: checking total and free space"
- Next in thread: Michael Vilain
: "Re: checking total and free space" - Reply: Darren Dunham: "Re: checking total and free space"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|