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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.