Showing posts with label fsadm. Show all posts
Showing posts with label fsadm. Show all posts

Sunday, May 19, 2013

Error fsadm: You don't have a license to run this program -Online JFS , Vxfs filesystem

How to resolve the error "fsadm: You don't have a license to run this program"  while extending the Veritas filesystem(vxfs)?

While you are extending your file-system, you have got the below error.
# fsadm -F vxfs -b 138500M /u01 
ERROR: fsadm: You don't have a license to run this program


1. Check weather the ONLINEJFS software has been installed on  HP-UX.

#swlist -l bundle |grep -i jfs   
 B3929CA               B.11.11        HP OnLineJFS    
 B3929DA               3.5-ga15-03    HP OnLineJFS 3.5  
2. Check the license type of OnlineJFS/VxFS installed on the server.
# vxlicrep
VERITAS License Manager vxlicrep utility version 3.00.007  
Copyright (C) VERITAS Software Corp 2002. All Rights reserved.  
Creating a report on all VERITAS products installed on this system   
-----------------***********************-----------------      
License Key                         = 012345678901234567890123 
Product Name                        = VERITAS File System     License Type                                = PERMANENT 
Site License                        = YES     
Features :=     
HP_OnlineJFS                        = Enabled 

3. Check the available VxFS and VxVM licenses and features on the system.
# vxlicense -p    
 vrts:vxlicense: INFO: Feature name: HP_OnlineJFS [50] 
 vrts:vxlicense: INFO: Number of licenses: 1 (non-floating)  vrts:vxlicense:   INFO: Expiration date: No expiration date 
 vrts:vxlicense: INFO: Release Level: 22  
vrts:vxlicense: INFO: Machine Class: All  
vrts:vxlicense: INFO: Site ID: 0   
4. Check if the OnLineJFS features were enabled and if you the following output.

 # vxenablef
  The system is not licensed.
Resolution:
Enabled the full functionality of OnlineJFS/VxFS in the kernel using the following command
# vxenablef –a 
After performing the above command, try to extend the file system through “fsadm” and it will work fine.


Sunday, April 10, 2011

Extending the root filesystem in HP-UX

Solution:
This is assumed that you already have a online JFS installed on the HP box.

1.Assume / is /dev/vg00/lvol3 and it is a vxfs file system.

lets assume that /dev/vg00/lvol4 is the next logical volume on the disk.

2. Move lvol4 to the other disk in VG00 ,extend the root volume and the filesystem.
pvmove -n /dev/vg00/lvol4 /dev/dsk/
lvextend -L /dev/vg00/lvol3
fsadm -F vxfs -b 100M /

Your / filesystem must be a contiguous logical volume so you need to move the logical volume after it to another disk.

3.After you extended /dev/vg00/lvol3 you can now move lvol4 back to the root disk
pvmove -n /dev/vg00/lvol4 /dev/ /dev/

If you do not have a ONLINE JFS installed or have a HFS root filesystem ignite may be your best choice.

Ignite Procedure:

After the initial Ignite interface is loaded from your tape or Ignite server, you will have an opportunity to interact with the Ignite tabbed interface. Use the tab key to access the FileSystem tab and resize file systems as you wish. After each change, be sure to click
[Modify].

After you have resized your file systems, click [Go!].
Ignite will rebuild your boot disk using the new file system sizes, and restore your data from the recovery archive. Using make_net_recovery, this oftentimes takes less than 20 minutes!