Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Solaris/Veritas command to list disks/devices with corresponding file systems

Posted on 2004-10-21
Medium Priority
Last Modified: 2013-12-21

Does anyone know the command to know which disk is on what filesystem?

Also is there a solaris or veritas command to show the device/disk name with associated disk slot number on the server.

Question by:ebi168
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 34

Expert Comment

ID: 12371675
"Does anyone know the command to know which disk is on what filesystem? "

df -ak

Author Comment

ID: 12371742
Is it possible to know for example, c1t2d0/datadg02 and its corresponding filesystems. Instead of the whole big volume and associated filesystems.
LVL 34

Expert Comment

ID: 12372022
Hmmmm....can you clarify what you mean when you say "filesystems"? I think of a "filesystem" as a disk slice that can be mounted.
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 38

Assisted Solution

wesly_chen earned 120 total points
ID: 12376163
Hi ebi168,

    As it shows:
/dev/dsk/c1t2d0/datadg02 (this is filesystem)
   It means that you use veritas volume manager.

   As volume manager, you can see only which disk group associated with the mount point by using "df" command.
You need to use the command or utilities come with Veritas volume manager.

   If you want to see the filesystem type, then
# mount
   command will show the mount point with the filesystem type.


LVL 38

Assisted Solution

yuzh earned 160 total points
ID: 12376963
You can use "vxdiskad" utility to list your disks, see:

df -ak will show you the filesystem (mount points), a file system could be a slice inside
a disk or mutiple disk (disk array!).

Assisted Solution

kawin earned 320 total points
ID: 12378712
In case of file system does not mount and you have no idea where this is mounted to. The only solution that I known is run "fsck"  on those file system, it's will tell you "last mount" of that volume.

If you do mount to somewhere else before this, the information will gone forever.

It's is the easy way to prevent this think happend by put some text files in your partition or volume aka "volume.info" or something else. Put the volume name and the mount point in that text files. Later when you found this situation you can solved it by open that files. That's it.

For second question about the disk slot. If disk is on internal disk you can use "/usr/platform/sun4u/sbin/prtdiag" to show you disk slot BUT THIS WILL WORK WITH SOME HARDWARE ONLY. And from devices path of disk can guild you how it's connect to hosts but it long stories... you need some basic knownledge on SUN Hardware and how Solaris logical devices refer to physical devices.

For shot cut you can "ls -l /dev/dsk/c0t0d0s2" it's will shown you "/pseudo/....../sbus@.../.../sd@..." I think you can asked your Sun Services guy for full detail or you can search in "http://docs.sun.com" for more detail.


Expert Comment

ID: 12388867

Depending on your setup you may need to use a combination of df and format.

LVL 10

Accepted Solution

Nukfror earned 400 total points
ID: 12393832
Assuming no volume management (and as already recommended):


will show disk to file system mapping.

Assuming SVM is being used:


Assuming VxVM is being used:


In both cases of volume manager (SVM or VxVM), the specific disks associated with a metadevice or volume has to be determine from the metastat or vxprint command by looking at the output.  Generally when volume management gets involved, it will usually mean that at a minimum two disks are associated with any metadevice or volume and therefore two disks for the file system under LVM control.  

There generally won't be a one-to-one mapping of disk to file system as I think you hoping for - of course, you could do a one-to-one mapping if you really wanted to configure it that way but generally this is not the case.

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question