cancel
Showing results for 
Search instead for 
Did you mean: 

BMR SRT Creation error

Leed_Engineer
Level 4
Partner Accredited Certified

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) :

2 ACCEPTED SOLUTIONS

Accepted Solutions

WVT
Level 4
Partner Accredited Certified
Maybe mount with exec privileges will solve.

View solution in original post

Leed_Engineer
Level 4
Partner Accredited Certified

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

 

View solution in original post

7 REPLIES 7

RiaanBadenhorst
Moderator
Moderator
Partner    VIP    Accredited Certified

Are you executing bmrsrtadm as root? What are the permissions set on /sbin/depmod?

Leed_Engineer
Level 4
Partner Accredited Certified

yes I executed it as root and the depmod permissions are 777

 

 

WVT
Level 4
Partner Accredited Certified
Maybe mount with exec privileges will solve.

RiaanBadenhorst
Moderator
Moderator
Partner    VIP    Accredited Certified

Not sure then. Are you able to try on another client to figure out if its host, os, or netbackup related.

sdo
Moderator
Moderator
Partner    VIP    Certified

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

sdo
Moderator
Moderator
Partner    VIP    Certified

Did you find anything in the bmrsrtadm logs?

Leed_Engineer
Level 4
Partner Accredited Certified

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