Veritas /dev/vx/dsk how do I know which FS(s) are created from SANS devices

Posted on 2009-04-22
Last Modified: 2013-12-27
I have alot of vx file systems mounted and alot of SAN disk .How can I tell which veritas FS(s) are created using SAN disk as opposed to internal NON-SAN disks.
Question by:FranHill
    LVL 59

    Expert Comment

    by:Darius Ghassem

    Author Comment

    dfshares only shows what file systems are being shared it has nothing to do with physical SAN disk and how they are allocated to veritas file systems
    LVL 40

    Expert Comment


    Author Comment

    Your reference material is useful but still does not answer my question on how i can tell what physical san disk is associated to what volume group.
    LVL 40

    Expert Comment

    did you have a look at page 77 of the 2nd link where it is showing

    vxdisk path | egrep diskname

    please see:

    Author Comment


    Thanks and one additional question: regarding this output
    etsis48# vxdisk path | grep hadg48a
    c10t50060E800427A450d0s2    GENESIS0_26          hadg48a33    hadg48a      ENABLED
    c12t50060E800427A440d0s2    GENESIS0_26          hadg48a33    hadg48a      ENABLED

    I can reference the drives  back to the physical drive when I envoke the format command but when I  try to cross reference this drive to iostat -En the device information is truncated.
    iostat -En only gives me this portion:
    Is there away of getting the full output from iostat so I can directly cross
    reference to see if the drive is accumulating errors?



    Author Comment

    there are several drives in iostat -En that start with

    c12t50060E800427A440 but does not give d0 d1 d2 d3 d4 info etc...
    LVL 40

    Expert Comment

    did you try iostat without -n or with -x ?

    Author Comment

    yes I just tried it and it makes no difference in capturing the complete device name.
    LVL 4

    Expert Comment

    hi Franhill,

    #vxprint -ht

    this is give you a list of volumes and the disks used under them,
    these volumes are used to mount your file system,
    if it is confusing, please paste the vxprint output and I'll explain it to you....

    LVL 2

    Accepted Solution

    On my platform is quite simple to tell which disks are from a SAN and  which are not, but this may depend on the san you're using.

    IE, the Hitachi ones are the ones on the SAN.

           0. c1t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
           1. c1t1d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
           2. c2t50060E8003278014d0 <HITACHI-OPEN-V-SUN-2114 cyl 42665 alt 2 hd 15 sec 128>
           3. c2t50060E8003278014d1 <HITACHI-OPEN-V-SUN-2114 cyl 42665 alt 2 hd 15 sec 128>

    Anyway, you can do this:

    1) vxdisk list --> To see which disks vxvm is seeing.

    2) vxdisk list <disk>  --> to see disk information

    My local disk appear like this:

    Device:    c1t0d0s2
    devicetag: c1t0d0
    type:      auto
    info:      format=none
    flags:     online ready private autoconfig invalid
    pubpaths:  block=/dev/vx/dmp/c1t0d0s2 char=/dev/vx/rdmp/c1t0d0s2
    Multipathing information:
    numpaths:   1
    c1t0d0s2        state=enabled

    One of the SAN disks is like this:

    Device:    c2t50060E8003278014d0s2
    devicetag: c2t50060E8003278014d0
    type:      auto
    hostid:    myserver <<--- The hostname of the server.
    disk:      name=emcpower0 id=1234341450.6.stbic101
    group:     name=APLIvg id=1234341512.8.stbic101
    info:      format=sliced,privoffset=1,pubslice=4,privslice=3
    flags:     online ready private autoconfig autoimport imported
    pubpaths:  block=/dev/vx/dmp/c2t50060E8003278014d0s4 char=/dev/vx/rdmp/c2t50060E8003278014d0s4
    privpaths: block=/dev/vx/dmp/c2t50060E8003278014d0s3 char=/dev/vx/rdmp/c2t50060E8003278014d0s3
    version:   2.1
    iosize:    min=512 (bytes) max=2048 (blocks)
    public:    slice=4 offset=0 len=81911040 disk_offset=5760
    private:   slice=3 offset=1 len=3583 disk_offset=1920
    update:    time=1236097242 seqno=0.9
    ssb:       actual_seqno=0.0
    headers:   0 248
    configs:   count=1 len=2615
    logs:      count=1 len=396
    Defined regions:
     config   priv 000017-000247[000231]: copy=01 offset=000000 enabled
     config   priv 000249-002632[002384]: copy=01 offset=000231 enabled
     log      priv 002633-003028[000396]: copy=01 offset=000000 enabled
    Multipathing information:
    numpaths:   2
    c2t50060E8003278014d0s2 state=enabled
    c3t50060E8003278004d0s2 state=enabled

    Maybe you don't have multipathing, so this output is going to be a little different, at least at the end. But if you take a look, there are a lot of differences between both output ( for example, the hostname of the server that had the disk imported.)

    3) When you know which disk is which, you need to map the disk with the volumes. Use  vxprint - Aht  to do this. You would see what Disk group has which disks, and which volumes are contained on it.

    Hope this is useful


    Featured Post

    Courses: Start Training Online With Pros, Today

    Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

    Join & Write a Comment

    When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
    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 navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
    In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

    745 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

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now