Toolserver:Admin:Veritas

From mediawiki.org

This page was moved from the Toolserver wiki.
Toolserver has been replaced by Toolforge. As such, the instructions here may no longer work, but may still be of historical interest.
Please help by updating examples, links, template links, etc. If a page is still relevant, move it to a normal title and leave a redirect.

Veritas Storage Foundation is the storage software we use on the HA cluster, and database servers. It contains two main parts, VxFS (a filesystem), and VxVM (a volume manager).

Cheat sheet[edit]

  • List existing disks and volumes:
 % vxprint -u
 Disk group: int
 
 TY NAME         ASSOC        KSTATE   LENGTH
 dg int          int          -        -
 ^-- the diskgroup, a collection of related disks.  Most systems only has one diskgroup.

 dm int01        c0t1d0s2     -        956g
 ^-- a physical disk.  "c0t1d0" is the Solaris name, while "int01" is what Vx calls it.

 v  sql          fsgen        ENABLED  800g
 ^-- A top-level volume.
 pl sql-01       sql          ENABLED  800g
 sd int01-02     sql-01       ENABLED  156g
 sd int01-03     sql-01       ENABLED  643g
 ^-- Volumes are built on top of a plex (pl), which can contain multiple subdisks (sd).
     This volume has two subdisks, which probably means it was resized at some point in
     the past.

 v  sql-innodb   fsgen        ENABLED  10g
 pl sql-innodb-01 sql-innodb  ENABLED  10g
 sd int01-01     sql-innodb-01 ENABLED 10g
  • Add 100G to the 'sql' volume. This will automatically resize the filesystem as well.
# /etc/vx/bin/vxresize sql +100g
  • Create a new volume:
# vxassist make myvol 150g
  • Create a filesystem on it:
# mkfs -Fvxfs /dev/vx/rdsk/int/myvol
  • Mount it:
# mount /dev/vx/dsk/int/myvol /myvol
  • Delete a volume:
# vxassist remove volume myvol

Documentation[edit]

Category:Admin:Software