Search This Blog

Friday, July 25, 2014

Displaying Volume Information

To display volume configuration information:

# vxprint [–g diskgroup] [options]

-vpsd         Select only volumes(v), Plexes (p), subdisk(s), or disks(d).
-h            Hierarchical listing
-r            Related records (Layered volumes)
-t            Tabular Listing.
-l            Display all information from each selected record.
-a            Display all information about each selected record, one record per line.
-A            Active Disk groups.
-u unit       Unit of measure (for size)
-e pattern    Show records that match an editor pattern.

To display the volume, plex, and subdisk record information for a diskgroup:

# vxprint –g diskgroup –htr –u h

# vxprint -g test_dg -htr -u -h |more

DG NAME         NCONFIG      NLOG     MINORS   GROUP-ID
ST NAME         STATE        DM_CNT   SPARE_CNT         APPVOL_CNT
DM NAME         DEVICE       TYPE     PRIVLEN  PUBLEN   STATE
RV NAME         RLINK_CNT    KSTATE   STATE    PRIMARY  DATAVOLS  SRL
RL NAME         RVG          KSTATE   STATE    REM_HOST REM_DG    REM_RLNK
CO NAME         CACHEVOL     KSTATE   STATE
VT NAME         RVG          KSTATE   STATE    NVOLUME
V  NAME         RVG/VSET/CO  KSTATE   STATE    LENGTH   READPOL   PREFPLEX UTYPE
PL NAME         VOLUME       KSTATE   STATE    LENGTH   LAYOUT    NCOL/WID MODE
SD NAME         PLEX         DISK     DISKOFFS LENGTH   [COL/]OFF DEVICE   MODE
SV NAME         PLEX         VOLNAME  NVOLLAYR LENGTH   [COL/]OFF AM/NM    MODE
SC NAME         PLEX         CACHE    DISKOFFS LENGTH   [COL/]OFF DEVICE   MODE
DC NAME         PARENTVOL    LOGVOL
SP NAME         SNAPVOL      DCO
EX NAME         ASSOC        VC                       PERMS    MODE     STATE
SR NAME         KSTATE

dg test_dg     default      default  27000    1332859417.22.test

dm apevmx09_01d6 apevmx09_01d6 auto   32m      119g     -

v  test_campaign -          ENABLED  ACTIVE   95g      SELECT    -        fsgen
pl test_campain-01 test_campaign ENABLED ACTIVE 95g   CONCAT    -        RW
sd apevmx09_01d6-01 test_campain-01 apevmx09_01d6 0.00000000000000000000000000000000 95g 0.00000000000000000000000000000000 apevmx09_01d6 ENA

v  vxfsvol1     -            ENABLED  ACTIVE   20g      SELECT    -        fsgen
pl vxfsvol1-01  vxfsvol1     ENABLED  ACTIVE   20g      CONCAT    -        RW
sd apevmx09_01d6-02 vxfsvol1-01 apevmx09_01d6 95g 20g   0.00000000000000000000000000000000 apevmx09_01d6 ENA

In the output, the top few lines indicate the headers that match each type of output line that follows.

Each volume is listed along with its associated plexes and subdisks and other VxVM objects.
    dg is a disk group.
    st is a storage pool (used in Intelligent Storage Provisioning).
    dm is a disk.
    rv is a replicated volume group (used in Veritas Volume Replicator).
    rl is an rlink (used in Veritas Volume Replicator).
    co is a cache object.
    vt is a volume template (used in Intelligent Storage Provisioning).
    v is a volume.
    pl is a plex.
    sd is a subdisk.
    sv is a subvolume.
    sc is a storage cache.
    dc is a data change object.
    sp is a snap object.

No comments:

Post a Comment