10-18-2015 04:03 PM
Hi ,
I am trying to create SRT in a RHEL6 Boot server and it is giving me the below error , any idea how to fix this ?
Select one of the following options:
1. Create a new Shared Resource Tree.
2. Create a new CD image based Shared Resource Tree.
3. Copy an existing Shared Resource Tree to a new location.
4. Import a Shared Resource Tree.
5. Modify an existing Shared Resource Tree.
6. Delete an existing Shared Resource Tree.
7. List Shared Resource Trees available on this server.
8. Quit.
Enter your selection (1-8) [1] : 1
Enter the name of the SRT to create : rhel6_SRT
Enter the description of the new SRT : rhel6
The following media is required:
Enter the path of first CD/DVD of desired RedHat/Oracle Enterprise Linux Server operating system level . The supported versions are (5 , 6)
Please load the media now.
Load media from (? for help) [/dev/cdrom] : /rhel6
Enter the desired architecture (i686 or x86_64) [x86_64] :
Enter the directory in which to place the new SRT [/export/srt] :
Creating repository to stow files from distribution media.
Extracting files .......................................................................................................... ok.
The media repository is now complete.
Working ....................................................................................... ok.
Working ......................................................... ok.
/usr/sbin/chroot: failed to run command `/sbin/depmod': Permission denied
V-125-39 caught exception: runtime error in srtPlat.cpp:DoSystem()
[Error] V-125-267 Cannot prepare boot files for this SRT.
You may choose either to leave this SRT on the server in its current state,
or to delete it.
Do you want to delete this SRT from the server? (y/n) :
Solved! Go to Solution.
10-20-2015 08:38 PM
10-26-2015 04:21 PM
Thanks everyone for the suggestions , I just found that /var wasn't executable by default in our kickstart script. I remounted /var -o remount,exec and it resolved the error.
the bmr logs were completely misleading saying that chroot cannot execute depmod command and the srt wasn't mounted on /var , it has a separate mount point.
That means the bmrsrtadm executes something on /var no matter what is ur srt location.
Cheers
10-18-2015 09:21 PM
Are you executing bmrsrtadm as root? What are the permissions set on /sbin/depmod?
10-20-2015 08:07 PM
yes I executed it as root and the depmod permissions are 777
10-20-2015 08:38 PM
10-20-2015 09:10 PM
Not sure then. Are you able to try on another client to figure out if its host, os, or netbackup related.
10-21-2015 01:47 AM
Can you post the bmrsrtadm logs?
vxlogcfg -l -p 51216 -o 125 vxlogcfg -a -p 51216 -o 125 -s DiagnosticLevel=6 -s DebugLevel=6 vxlogcfg -l -p 51216 -o 125 ...then try your BMR SRT create again... vxlogview -p 51216 -o 125 -t 00:10:00
10-23-2015 01:43 PM
Did you find anything in the bmrsrtadm logs?
10-26-2015 04:21 PM
Thanks everyone for the suggestions , I just found that /var wasn't executable by default in our kickstart script. I remounted /var -o remount,exec and it resolved the error.
the bmr logs were completely misleading saying that chroot cannot execute depmod command and the srt wasn't mounted on /var , it has a separate mount point.
That means the bmrsrtadm executes something on /var no matter what is ur srt location.
Cheers