VERITAS License expired issue - Solaris

Hi Guys

From now onwords I am going to create and publish knowledge base articles by which you can find solutions for the error messages or some known errors. Hope this will help guys work with solaris and storage.

Knowledge Base Article: SOLSAT0001
Problem/ Error Message:
VxVM vxassist WARNING V-5-1-1402 Your license does not include support for striping
Striping layout disabled.Defaulting to concat.

VxVM vxassist ERROR V-5-1-435 Cannot allocate space for 284774400 block volume



Host Name: dbhost1
Server Model: Sun Fire 4800
OS/ version: Solaris 8
Software Involved: Veritas VXVM
Version: 4.1
Reason / Analysis:
VERITAS License expired.
Description:
  • When trying to run vxassist command to create a stripe volume the following error appeared.
  • dbhost1# vxassist -g DW2sbdg make data201 284774400 layout=stripe sc5-9585-4-FB08-096-PG08-00 sc5-9585-4-FB09-107-PG09-00 sc5-9585-4-FB10-118-PG10-00 sc5-9585-4-FB11-129-PG11-00
    VxVM vxassist WARNING V-5-1-1402 Your license does not include support for striping
    Striping layout disabled.Defaulting to concat.
    VxVM vxassist ERROR V-5-1-435 Cannot allocate space for 284774400 block volume
  • Tried vxassist with the concat option but did not work.
  • Next checked the vxlicense with the following command
  • # /sbin/vxlicrep
Product Name = VERITAS Volume Manager
License Type = DEMO
Demo End Date = Sun Jan 27 01:00:00 2008
(Expired 2 days ago).
Features: =
Storage Expert = Expired
Dynamic Lun Expansion = Expired
Cross-platform Data Sharing = Expired
PGR = Expired
PGR_TRAINING = Expired
FMR_DGSJ = Expired
VVS_CONFIG = Expired
Hardware assisted copy = Expired
-----------------***********************-----------------
Product Name = VERITAS File System
License Type = DEMO
Demo End Date = Sun Jan 27 01:00:00 2008
(Expired 2 days ago).
Features: =
File Change Log = Expired
Cross-platform Data Sharing = Expired
Extra-Big File Systems = Expired
Multi-Volume Support = Expired
Quality of Storage Service = Expired
VXCKPT = Expired
QLOG = Expired
Use the following command to check the VERITAS products installed and their versions.
sc5db05# vxlicrep |egrep 'Product|Version'
Product Name = VERITAS Storage Foundation for Oracle
Editions Product = YES
Version = 4.1
Product Name = VERITAS SANPoint Control
Product Name = VERITAS Volume Manager
Product Name = VERITAS File System
Product Name = VERITAS Mapping Services
Product Name = VERITAS File System
Point Product = YES
Version = 4.1
Product Name = VERITAS Volume Manager
Point Product = YES
Version = 4.1
Product Name = VERITAS Mapping Services
Point Product = YES
-----------------***********************-----------------
Action Taken:
Called VERITAS Technical Support
Toll Free Number: 1-800-342-0652
Veritas TSE will ask for a VSN number give this one below:
VSN Number: xxx-xxxx-xxxx
Resolution:
VERITAS gave a temporary 60 days license and it has been installed.
Storage Foundation for Oracle-Enterprise, Solaris, v4.1, 60 Day Evaluation License: RJPG-PJJP-D3RD-ZS77-9GO3-4MSJ-ZP             
Here are the commands to install the temporary license.
dbhost1# /sbin/vxlicinst
VERITAS License Manager vxlicinst utility version 3.02.005
Copyright (C) 1996-2004 VERITAS Software Corp. All Rights reserved.
Enter your license key: RJPG-PJJP-D3RD-ZS77-9GO3-4MSJ-ZP
You will get a message license installed successfully.
Now again you can check with the “Vxlicrep” command to verify if the license are installed properly and whether the products and options are enabled or not.
And without any reboot the vxassist commands worked fine with all options.

------------------------------------------------------------------------------------------------------------
VXVM - How to extend Volumes using vxresize and vxassist


1. Verify free space on underlying device:


# vxdg -g datadg free

from the output you will see disks length starts from "0", those disks are free.

# vxassist -g datadg maxsize layout=concat or layout=stripe

# vxassist -g datadg  maxgrow datavol

2. Expand the volume using vxassist:

example: #vxassist -g testdg growto datavol 4096000

3. Expand the file system using fsadm:

# fsadm -F vxfs -b "newsize" -r /dev/vx/rdsk/testdg/datavol /datavol

4. Verify that the file system was resized by using df:

# df -k /datavol


The volume can be increased using vxresize command also,

For vxresize command "fsadm" is not required.

in the below example the volume "datavol" is increased from 2GB to 4Gb.

NOTE: you need to mention the total size which the volume need to be grown.

First determine the free space available:

# vxassist -g datadg maxsize layout=concat or layout=stripe


# vxassist -g datadg maxgrow datavol

Determine the filesystem type:

fstyp /datamount or fstyp -v /dev/vx/rdsk/testdg/datavol

# vxresize -b -g testdg datavol 4G or

vxresize -g testdg datavol +2g

Check with df -h or df -k to check if the FS is grown.




HP-UNIX Volume Manager Tasks

Hi,
I found a good document on hp-ux LVM and like to share with you guys.

HP-UX: Disk and Filesystem tasks

Search for attached disk
ioscan -fnC disk
Initialize a disk for use with LVM
pvcreate -f /dev/rdsk/c0t1d0
Create the device structure needed for a new volume group.
cd /dev
mkdir vgdata
cd vgdata
mknod group c 64 0x010000
Create volume group vgdata
vgcreate vgdata /dev/dsk/c0t1d0
{ if your expecting to use more than 16 physical disks use the -p option, range from 1 to 256 disks. }
Display volume group vgdata
vgdisplay -v vg01
Add another disk to volume group
pvcreate -f /dev/rdsk/c0t4d0
vgextend vg01 /dev/dsk/c0t4d0
Remove disk from volume group
vgreduce vg01 /dev/dsk/c0t4d0
Create a 100 MB logical volume lvdata
lvcreate -L 100 -n lvdata vgdata
newfs -F vxfs /dev/vgdata/rlvdata
Extend logical volume to 200 MB
lvextend -L 200 /dev/vgdata/lvdata
Extend file system to 200 MB
{ if you don't have Online JFS installed volumes must be unmounted before you can extend the file system. }
fuser -ku /dev/vgdata/lvdata { kill all process that has open files on this volume. }
umount /dev/vgdata/lvdata
extendfs /data
{ for Online JFS, 200 MB / 4 MB = 50 LE; 50 x 1024 = 51200 blocks }
fsadm -F vxfs -b 51200 /data
Set largefiles to support files greater than 2GB
fsadm -F vxfs -o largefiles /data

Exporting and Importing disks across system.
1. make the volume group unavailable
vgchange -a n /dev/vgdata
2. Export the the disk while creating a logical volume map file.
vgexport -v -m data_map vgdata
3. Disconnect the drives and move to new system.
4. Move the data_map file to the new system.
5. On the new system recreate the volume group directory
mkdir /dev/vgdata
mknod /dev/vgdata/group c 64 0x02000
6. Import the disks to the new system
vgimport -v -m data_map /dev/vgdata /dev/dsk/c2t1d0 /dev/dsk/c2t2d0
7. Enable the new volume group
vgchange -a y /dev/vgdata
Renaming a logical volume
/dev/vgdata/lvol1 -> /dev/vgdata/data_lv
umount /dev/vgdata/lvol1
ll /dev/vgdata/lvol1 take note of the minor ( e.g 0x010001 )
brw-r----- 1 root root 64 0x010001 Dec 31 17:59 lvol1
mknod /dev/vgdata/data_lv b 64 0x010001 create new logical volume name
mknod /dev/vgdata/rdata_lv c 64 0x010001
vi /etc/fstab { reflect the new logical volume }
mount -a

rmsf /dev/vgdata/lvol1
rmsf /dev/vgdata/rlvol1

Installing Ingress Controller - Kubernetes

Installing the Ingress Controller Prerequisites Make sure you have access to the Ingress controller image: For NGINX Ingress controll...