Diskgroup fails to import with error license expired or is not available for operation

Diskgroup fails to import with message license has expired or is not available for operation

V-5-1-19179 – Diskgroup import failed with an error message “import failed: License has expired or is not available for operation”

Problem Description

Diskgroup fails to import with a message: license has expired or is not available for operation

Error Message

VxVM vxdg ERROR V-5-1-19179 Disk group loc_ctm-dg: import failed: License has expired or is not available for operation

Error Validation

# vxdg import loc_ctm-dg
VxVM vxdg ERROR V-5-1-19179 Disk group loc_ctm-dg: import failed:
License has expired or is not available for operation
Messages in Log
Jan 24 01:44:01 linusprod12 vxvm:vxconfigd: V-5-1-16253 Disk 
group import of loc_ctm-dg failed with error 190 - License has 
expired or is not available for operation
If you run vxdisk command you will not found any disk visible like below.
# vxdisk -eo alldgs list
No disk visible
If you run vxlicrep command to validate license you will 
get output like below.
# vxlicrep
Veritas License Manager vxlicrep utility version 4.01.74.002
Copyright (c) 2019 Veritas Technologies LLC.  
All rights reserved.

If you are updating veritas from the previous version to VRTSvxvm-7.4.1.1200 you will end up with this situation. You can give a try solution below to fix the issue and import the disk group and mount the file system.

Solution

As mentioned above you have just updated the veritas storage foundation to 7.4.1.1200 you can validate using the below command.

Step 1. Validate Storage Foundation Version

# rpm -qa |grep VRTS
VRTSpython-3.5.1.1-RHEL6.x86_64
VRTSnbjre-8.1.0.0-1505107444.x86_64
VRTSvcsag-7.4.1.1100-RHEL6.x86_64
VRTSgab-7.4.0.1100-RHEL6.x86_64
VRTSnbcfg-8.1.0.0-1505107442.x86_64
VRTSdbed-7.4.0.000-RHEL.x86_64
VRTSsfcpi-7.4.0.000-GENERIC.noarch
VRTSvlic-4.01.74.003-RHEL6.x86_64
VRTSnbpck-8.1.0.0-1505107785.x86_64
VRTSvxfs-7.4.1.1200-RHEL6.x86_64
VRTSgms-7.4.0.1100-RHEL6.x86_64
VRTSnbclt-8.1.0.0-1505107526.x86_64
VRTSvcs-7.4.1.1100-RHEL6.x86_64
VRTSspt-7.4.0.000-RHEL6.noarch
VRTSglm-7.4.0.1100-RHEL6.x86_64
VRTSpbx-1.7.13.0-0.x86_64
VRTSvxfen-7.4.1.1200-RHEL6.x86_64
VRTSnbjava-8.1.0.0-1505107483.x86_64
VRTSsfmh-7.4.0.401-0.x86_64
VRTScps-7.4.0.000-RHEL6.x86_64
VRTSodm-7.4.0.1100-RHEL6.x86_64
VRTSvxvm-7.4.1.1200-RHEL6.x86_64
VRTSfsadv-7.4.0.000-RHEL6.x86_64
VRTSllt-7.4.0.1100-RHEL6.x86_64
VRTSpddea-11.0.2.0-0011.x86_64
VRTSamf-7.4.0.1100-RHEL6.x86_64
VRTSperl-5.26.1.0-RHEL6.x86_64
VRTScavf-7.4.0.000-GENERIC.x86_64
VRTSaslapm-7.4.1.1200-RHEL6.x86_64

Step 2. Download License Keys from Veritas

Login to the Veritas support site and click on “Licensing”.

Then navigate to the “License keys”  option. You will be able to see the list of entitlements that your profile owns.

Then search for the licensing key for the exact version of the veritas patch you have upgraded on machines where you have the veritas filesystem.

You will get highlighted option with your entitlement. Click on the highlighted option which generates the key. Download .slf file.

Step 3. Copy License Keys to Server 

Copy license key to any path in the server using your known ways like sftp or any other method you know.

Step 4. Install License Keys to Server 

Install License keys to the server using vxlicinst command. Please refer to the sample below.

# vxlicinst -k XXXXXXXXXXX.slf

Step 5. Initialize License Keys to Server 

Then you can initialize the system`s veritas license using the below command.

# vxdctl license init

Step 6. Initialize vxconfigd Daemon

Finally, you can refresh veritas daemon to make it effective online to veritas. Logically we should be good at this step but we will validate.

# vxconfigd -k

Step 7. Validate License using vxlicrep

Now you will get the normal vxlixrep output you might have seen earlier which shows license numbers and active status as compared to the output above. The sample output is displayed below is truncated.

# vxlicrep
Veritas License Manager vxlicrep utility version 4.01.74.002
Copyright (c) 2019 Veritas Technologies LLC.  All rights reserved.
-----------------------------------------------------------
 License Key          = VVM-AX_VRTS_IS_STOR_7_4_1_UNX_123.slf
Product Name                    = Veritas Volume Manager
Point Product                   = YES
Features :=
CLIENT SERVICE                  = Enabled
COUNT                           = 1
COUNT POLICY                    = max:100%
CPU COUNT                       = Not Restricted
CROSS-PLATFORM DATA SHARING     = Enabled
CVM FULL                        = Enabled
DGSJ                            = Enabled
DYNAMIC LUN EXPANSION           = Enabled
FASTRESYNC                      = Enabled
HARDWARE ASSISTED COPY          = Enabled
LICENSE METER                   = PER-CORE
LICENSE TYPE                    = PERPETUAL
MAXIMUM NUMBER OF VOLUMES       = Not Restricted
PGR                             = Enabled
PLATFORM                        = UNIX
PLATFORM POLICY                 = Hard
PRODUCT EDITION                 = STORAGE
PRODUCT ID                      = 113
RAID5SNAP                       = Enabled
SITE AWARENESS                  = Enabled
SMARTIO VMREAD                  = Enabled
SMARTIO VMWRITE                 = Enabled
STORAGE EXPERT                  = Enabled
TIER                            = unused
TIER POLICY                     = Soft
VERSION                         = 7.4.1
VIRTUALIZATION SERVICE          = Enabled
VOLUME SHARING                  = Enabled
VVR                             = Enabled
VVS CONFIG                      = Enabled
VXVM                            = Enabled
-----------------***********************-----------------
 License Key              = VVM-AX_VRTS_IS_STOR_7_4_1_UNX_123.slf
Product Name                    = Veritas File System
Point Product                   = YES
Features :=
COMPRESSION                     = Enabled
COUNT                           = 1
COUNT POLICY                    = max:100%
CPU COUNT                       = Not Restricted
CROSS-PLATFORM DATA SHARING     = Enabled
DE-DUPLICATION                  = Enabled
EXTRA-BIG FILE SYSTEMS          = Enabled
FILE CHANGE LOG                 = Enabled
FSNP                            = Enabled
LICENSE METER                   = PER-CORE
LICENSE TYPE                    = PERPETUAL
MAXIMUM NUMBER OF FILE SYSTEMS  = Not Restricted
MULTI-VOLUME SUPPORT            = Enabled
ODM                             = Enabled
PLATFORM                        = UNIX
PLATFORM POLICY                 = Hard
PRODUCT EDITION                 = STORAGE
PRODUCT ID                      = 113
QLOG                            = Enabled
QUALITY OF STORAGE SERVICE      = Enabled
SMARTIO FSREAD                  = Enabled
SMARTIO FSWRITE                 = Enabled
TIER                            = unused
TIER POLICY                     = Soft
VERSION                         = 7.4.1
VFR                             = Enabled
VXCFS                           = Enabled
VXCKPT                          = Enabled
VXFDD                           = Enabled
VXFS                            = Enabled
-----------------***********************-----------------
License Key                     = VDMP-*.slf
Product Name                    = Veritas Dynamic Multi-pathing
Point Product                   = YES
Features :=
ALL DMP                         = Enabled
COUNT                           = 1
COUNT POLICY                    = max:100%
CPU COUNT                       = Not Restricted
DMP                             = Enabled
DMP NATIVE SUPPORT              = Enabled
DYNAMIC MULTI PATHING           = Enabled
LICENSE METER                   = PER-CORE
LICENSE TYPE                    = PERPETUAL
MAXIMUM NUMBER OF VOLUMES       = Not Restricted
PLATFORM                        = UNIX
PLATFORM POLICY                 = Hard
PRODUCT EDITION                 = STORAGE
PRODUCT ID                      = 113
TIER                            = unused
TIER POLICY                     = Soft
VERSION                         = 7.4.1
-----------------***********************-----------------
License Key                = VCS-AXXX_QTY1_VRT7_4_1_UNX_0485.slf
Product Name                    = Veritas Cluster Server
Point Product                   = YES
Features :=
COUNT                           = 1
COUNT POLICY                    = max:100%
LICENSE METER                   = PER-CORE
LICENSE TYPE                    = PERPETUAL
MODE                            = CFS_VRTS
PLATFORM                        = UNIX
PLATFORM POLICY                 = Hard
PRODUCT EDITION                 = STORAGE
PRODUCT ID                      = 113
TIER                            = unused
TIER POLICY                     = Soft
VERSION                         = 7.4.1
-----------------***********************-----------------
License Key               = VMS-AXX_QTY1_VRTS_OR_7_4_1_UNX_12.slf
Product Name                    = Veritas Mapping Services
Point Product                   = YES
Features :=
COUNT                           = 1
COUNT POLICY                    = max:100%
FOUND EDI MAP                   = Enabled
LICENSE METER                   = PER-CORE
LICENSE TYPE                    = PERPETUAL
PLATFORM                        = UNIX
PLATFORM POLICY                 = Hard
PRODUCT EDITION                 = STORAGE
PRODUCT ID                      = 113
TIER                            = unused
TIER POLICY                     = Soft
VERSION                         = 7.4.1
-----------------***********************-----------------
License Key      = A6467_QTY1_VRTS_IS_STOR_7_4_1_UNX_0485.slf
Product Name                    = Veritas InfoScale Storage
Editions Product                = YES
Features :=
COUNT                           = Enabled
COUNT POLICY                    = max:100%
LICENSE METER                   = PER-CORE
LICENSE TYPE                    = PERPETUAL
PLATFORM                        = UNIX
PLATFORM POLICY                 = Hard
PRODUCT EDITION                 = STORAGE
PRODUCT ID                      = 113
TIER                            = unused
TIER POLICY                     = Soft
VERSION                         = 7.4.1
ALL DMP#VERITAS DYNAMIC MULTI-PATHING= Enabled
CLIENT SERVICE#VERITAS VOLUME MANAGER= Enabled
COMPRESSION#VERITAS FILE SYSTEM = Enabled
CROSS-PLATFORM DATA SHARING#VERITAS FILE SYSTEM= Enabled
CROSS-PLATFORM DATA SHARING#VERITAS VOLUME MANAGER= Enabled
CVM FULL#VERITAS VOLUME MANAGER = Enabled
DE-DUPLICATION#VERITAS FILE SYSTEM= Enabled
DGSJ#VERITAS VOLUME MANAGER     = Enabled
DMP#VERITAS DYNAMIC MULTI-PATHING= Enabled
DMP NATIVE SUPPORT#VERITAS DYNAMIC MULTI-PATHING= Enabled
DYNAMIC LUN EXPANSION#VERITAS VOLUME MANAGER= Enabled
DYNAMIC MULTI PATHING#VERITAS DYNAMIC MULTI-PATHING= Enabled
EXTRA-BIG FILE SYSTEMS#VERITAS FILE SYSTEM= Enabled
FASTRESYNC#VERITAS VOLUME MANAGER= Enabled
FILE CHANGE LOG#VERITAS FILE SYSTEM= Enabled
FOUND EDI MAP#VERITAS MAPPING SERVICES= Enabled
FSNP#VERITAS FILE SYSTEM        = Enabled
HARDWARE ASSISTED COPY#VERITAS VOLUME MANAGER= Enabled
MULTI-VOLUME SUPPORT#VERITAS FILE SYSTEM= Enabled
ODM#VERITAS FILE SYSTEM         = Enabled
PGR#VERITAS VOLUME MANAGER      = Enabled
QLOG#VERITAS FILE SYSTEM        = Enabled
QUALITY OF STORAGE SERVICE#VERITAS FILE SYSTEM= Enabled
RAID5SNAP#VERITAS VOLUME MANAGER= Enabled
SITE AWARENESS#VERITAS VOLUME MANAGER= Enabled
SMARTIO FSREAD#VERITAS FILE SYSTEM= Enabled
SMARTIO FSWRITE#VERITAS FILE SYSTEM= Enabled
SMARTIO VMREAD#VERITAS VOLUME MANAGER= Enabled
SMARTIO VMWRITE#VERITAS VOLUME MANAGER= Enabled
STORAGE EXPERT#VERITAS VOLUME MANAGER= Enabled
VFR#VERITAS FILE SYSTEM         = Enabled
VIRTUALIZATION SERVICE#VERITAS VOLUME MANAGER= Enabled
VOLUME SHARING#VERITAS VOLUME MANAGER= Enabled
VVR#VERITAS VOLUME MANAGER      = Enabled
VVS CONFIG#VERITAS VOLUME MANAGER= Enabled
VXCFS#VERITAS FILE SYSTEM       = Enabled
VXCKPT#VERITAS FILE SYSTEM      = Enabled
VXFDD#VERITAS FILE SYSTEM       = Enabled
VXFS#VERITAS FILE SYSTEM        = Enabled
VXVM#VERITAS VOLUME MANAGER     = Enabled

Step 8. Now You can Import DiskGroup

Now you can import the disk group and start volume and mount the file system.

# vxdg import loc_ctm-dg
# vxvol -g loc_ctm-dg startall
# mount -a

Conclusion

That`s all about how to fix disk group import fails with the error message “license has expired or is not available for operation”.

Thanks for going through this article. Please let us know in the form of comments if it works for you. If you like our work please subscribe to our blog as we keep updating how to processes to fix issues in IT infrastructure related to various technologies