Solaris raw disks info

Hi,

I need the following information.

  1. We have raw disks but how to identify raw disks. Is there any command to identify its type and size.

  2. How to differentiate between disks which are used as file system and that are still available to be used as raw. I know we can use df -n to find out the file system. but is there any proper indication in disks that differentiate between them.

Kindly let me know in detail

As root, start the format utility, select a disk and the use the inquiry subcommand:

# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>  boot0
          /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w2100002037f8a0d2,0
       1. c1t1d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>  boot1
          /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cf83a9a0,0
...
Specify disk (enter its number): 0
...
format> inq
Vendor:   SEAGATE
Product:  ST336605FSUN36G
Revision: 0638

---------- Post updated at 08:24 ---------- Previous update was at 08:20 ----------

And if you mean "raw devices", there is no easy way to find out for sure, if a diskslice is free. It could be used by a volume manager or a database for example.

But i also want to find out the sizes if disks are not mounted

This should work:

kstat -n "sd*,err" | grep -vw 0 | egrep -v "(time|module|class)"

Does

iostat -E

returns you what you need?

1 Like

thanks @dagio it gives sizes but not names of the disks.

Are you using any kind of Volume Manager .. like VxVM or SVM ?

It does give names but probably not the ones you are expecting.

Use

iostat -En

instead.