Import Disk Group (DG) in VxVM

Have you ever encounter rebooting a server and your Veritas filesystems are missing? Most cases these filesystems were not imported during boot up and is not available for OS to use. Importing a disk groups in VxVM does not need any reboot, follow these simple steps and you will be able to get back your disk groups in no time.

List missing disk groups:

[email protected]# vxdisk -o alldgs list
DEVICE       TYPE            DISK         GROUP        STATUS
c0t0d0s2     auto:none       -            -            online invalid
c1t0d0s2     auto:none       -            -            online invalid
c8t0d3s2     auto:sliced     -           (datadg)      online
c8t0d9s2     auto:sliced     -           (datadg)      online
c8t0d10s2    auto:sliced     -           (datadg)      online
c8t0d11s2    auto:sliced     -           (datadg)      online
c8t0d12s2    auto:sliced     -           (datadg)      online
c8t0d13s2    auto:sliced     -           (datadg)      online
c8t0d14s2    auto:sliced     -           (datadg)      online
c8t0d15s2    auto:sliced     -           (datadg)      online
c8t0d16s2    auto:sliced     -           (datadg)      online
c8t0d17s2    auto:sliced     -           (datadg)      online

Import the missing disk groups:

[email protected]# vxdg import datadg

List disk groups:

[email protected]# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c0t0d0s2     auto:none       -            -            online invalid
c1t0d0s2     auto:none       -            -            online invalid
c8t0d3s2     auto:sliced     c8t0d3       datadg       online
c8t0d9s2     auto:sliced     c8t0d9       datadg       online
c8t0d10s2    auto:sliced     c8t0d10      datadg       online
c8t0d11s2    auto:sliced     c8t0d11      datadg       online
c8t0d12s2    auto:sliced     c8t0d12      datadg       online
c8t0d13s2    auto:sliced     c8t0d13      datadg       online
c8t0d14s2    auto:sliced     c8t0d14      datadg       online
c8t0d15s2    auto:sliced     c8t0d15      datadg       online
c8t0d16s2    auto:sliced     c8t0d16      datadg       online
c8t0d17s2    auto:sliced     c8t0d17      datadg       online

Readers who found this post were searching for:

  • @esolaris co kr
  • veritas import a specific disk
  • vxfs import disk into dg


Comments