Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to check free disks in solaris 1

Status
Not open for further replies.

subirp

MIS
Aug 27, 2001
6
0
0
US
Inherited a sun solaris e450 server(sol 8). How can I tell which disks are associated with f/s. So in order to find a spare disk, i do not use the one with data already on them ?
 
df -k should show what mount points exist and what disk partitions are associated with those mount points (if this is running a database you may need to find out what raw partitions the data base knows about)

Usuing the format command, you can print what disks and partitions exist.

a comparison of df -k and format and your knowledge of raw partitions should show any free space

I tried to remain child-like, all I acheived was childish.
 
I use this script to display disks areas that are not allocated to partitions:

[tt]cd /dev/rdsk
for d in *2
do
prtvtoc /dev/rdsk/$d
done | nawk '
/\* \/dev/
/Unallocated/,/\*$/
'[/tt]

Is it using any volume management software (Veritas Volume Manager or DiskSuite)? You can tell from df -k if any of the raw devices contain /dev/vx or /dev/md

Annihilannic.
 
off the top of my head you can do:

prtvtoc -f -s /dev/rdsk/c?t?d?s2

this will tell you what's free(-f)

ART
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top