on 06-03-2010 2:11 PM
My enviroment is SAP ECC6/Oracle 10g on Solaris 10
The home directory of OS user <SAPSID>adm i.e prdadm is located in the internal disks of the server. see extract below
prdadm:x:105:101:SAP System Administrator:/home/prdadm:/bin/csh
I would like to relocate this home directory to the disks in the unified storage so that the SAP application backup can be done via replication to the secondary storage in a disaster recovery site.
My only worry is that the SAP application might not start after the exercise. kindly advice
regards
If you copy the entire content of the home dir of sidadm and change the new location in /etc/passwd, there shouldn't be any problem with starting your instance.
If you have doubts, you could create a symbolic link from the current home dir to the new one..
Kind regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In addition to the suggestion in above post, Also keep the same permission to new home directory as original...
So the steps would be..
1. Create "home" directory on target location.
2. Copy existing contents to target location
# cd $HOME
# cp -R *.* /<path_to_new_home>/<sid>adm
3. Change the permission of /<path_to_new_home>/<sid>adm same as original home directory.
4. Change the home directory path to new one in /etc/passwd.
If it is redhat you can use "usermod" command for the same...
Not sure about Solaris. See man page of usermod for more details..
Try below command to relocate users home directory with its contents.
Login as ROOT
# usermod -md /<path_to_new_home> <sid>adm
Regards.
Rajesh Narkhede
Edited by: Rajesh Narkhede on Jun 3, 2010 10:18 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.