How to check which type of storage is used in unix?

SunOS 5.10 Generic_142900-15 sun4v sparc SUNW,T5240

how can i check the storage type being used in unix solaris sparc system?
please help me its urgnet..

thank you

Not sure what you mean but...

# echo | format

will show the disks / luns presented to your system.

If your talking about filesystems then the fstyp command will display the file system used.

# fstyp /dev/dsk/cxtxdxsx

SRG

i have used the command fstyp

test_server $ fstyp
Usage: fstyp [-v] special

what is this it didnt showed any output

You can use the fstyp command to find out what filesystem a device or partition is.
The command below shows that the root partition on my system is on a ufs filesystem.
c0t0d0s0 = Controller 0, Target 0, Disk 0, Slice 0
# fstyp /dev/rdsk/c0t0d0s0
ufs

A df command will show your mount points.
bash-3.00# df -h
Filesystem size used avail capacity Mounted on
/dev/dsk/c0t0d0s0 6.9G 3.6G 3.2G 54% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
<.....SNIP.....>

SRG

yeah by giving the df -h . will give you the filesystem and space available,used and total size but i want to know which kind of storage we are using on unix solaris box?

format

command will show you the details.
But you should have root access or a privileged user to be able to run that command..

Please tell precisely, with an example, what information you expect.

As I have already mentioned above,

# echo | format 

Will show you disks and luns that are avaiable for use on your system.

@Paragon1970: I'm asking the open poster what precise information he is looking for. By the way, your solution unnecessarily requires being root.

@jlliagre: my previous post was not in response to yours but rather to the original poster.
Indeed it does require root. If the original poster does not have access to root either directly or say via sudo then he is limited in finding information regarding the underlying hardware present on this system.

What information provided by "echo | format" do you think is not available to an unprivileged user ?

@Jlliagre, I'm not here to get into a childish pedantic tit for tat about what is or is not possible. I offered up a solution in good faith and right or wrongly I presumed root access was available to the original poster. After all his question did not include the term as 'non privileged user'
I have no further interest in this thread considering the original poster has appeared to have lost interest in his own question.

But to your question one could issue a an 'iostat -Eni' as non privileged.
A 'grep disk /var/adm/messages' will show some details also.
A 'kstat -c disk' will display configured disk instances and there statistics.

yeah i tried that but in vain..as i dont have root access apart from access to that corresponding to that server.

Any other option i could try it?

---------- Post updated at 03:04 PM ---------- Previous update was at 02:59 PM ----------

i tried the above options suggested by all of you but in vain. any other alternative to get that info?

What is "that info" ?
Please tell precisely, with an example, what information you are expecting.

i want to display or know the storage type and storage size is used for SAN or NAS mounts on Unix box( OS: Solaris Sparc)

now am i clear?

To view LUN information.....

# luxadm probe
No Network Array enclosures found in /dev/es

Found Fibre Channel device(s):
  Node WWN:200600a0b829a7a0  Device Type:Disk device
    Logical Path:/dev/rdsk/c4t600ABB880026A5A000000DC747A8168Ad0s2

1 controller = one path, 2 controllers = 2 paths

# luxadm display /dev/rdsk/c4t600ABB880026A5A000000DC747A8168Ad0s2
DEVICE PROPERTIES for disk: /dev/rdsk/c4t600ABB880026A5A000000DC747A8168Ad0s2
  Vendor:               SUN
  Product ID:           CSM201_R
  Revision:             0626
  Serial Num:           SG71008261
  Unformatted capacity: 30000.000 MBytes
  Write Cache:          Enabled
  Read Cache:           Enabled
    Minimum prefetch:   0x1
    Maximum prefetch:   0x1
  Device Type:          Disk device
  Path(s):

Regards,
SRG

i tried that but

test_server $ luxadm probe
No Network Array enclosures found in /dev/es
No FC devices found.

you have mail in /usr/mail/test

so due to that i cant use the luxadm display /dev/x/x

Not really.
SAN and NAS are quite different beasts. Please explain what is connected to your box and how, and provide a sample output of what you expect.

@jlliagre

I guess at least we can assume there are no fibre channel devices :wink: lol
It's a jigsaw puzzle ...
SRG

i want to know what type of storage is being used on our solaris sparc unix box. its pretty clear. Do you guys know how many types of storage are there for solaris sparc unix boxes?

---------- Post updated at 08:09 AM ---------- Previous update was at 08:08 AM ----------

if you guys are still not clear refer to this thread.

lol