NBServerMigrator: Fails to update the ownership of the files

Article: 100055236
Last Published: 2023-11-08
Ratings: 0 0
Product(s): Appliances, NetBackup & Alta Data Protection, NetBackup Flex Scale

Problem

NBServerMigrator 2.0
Migration fails to update the ownership while running update_install_folder_perms

Error Message

[ERROR] Command '/usr/openv/netbackup/bin/goodies/update_install_folder_perms  --os Linux --installer --previous_service_user <source_service_user> --reset_group_ids ' failed with status:1 (id: ‘<source_service_user>’: no such user id: ‘<source_service_user>’: no such user Setting the user "<traget_service_user>" as the owner of all files in the directory "/usr/openv". This operation may take some time. Fix below errors and then retry: find: ‘<source_service_user>’ is not the name of a known user find: ‘-exec’ is not the name of an existing group ERROR:   The user "<traget_service_user>" cannot be set as the owner of files in "/usr/openv".)
[INFO] Please check /usr/openv/nbsm/logs/nbsm_target_20230222_174502.log for more details.Ensure to act on 'ERROR' and 'WARN' in log file
#

Cause

The ownership of the files has changed to a numerical value. Thus the script is unable to find any files with ownership with the user present on the source primary server.

Solution

run chown command:
a) If service user is present on the target primary server
  i) chown -R <service_user>:<service_user's_group> /usr/openv/db/data
  ii) chown -R <service_user>:<service_user's_group> /usr/openv/netbackup/db/

b) If service user is not present on the target primary server
  i) chown -R root:root /usr/openv/db/data
  ii) chown -R root:root /usr/openv/netbackup/db/

Note 1: for Flex and NBFS the path will be /mnt/nbdata/usr/openv/db/data and  /mnt/nbdata/usr/openv/netbackup/db
Note 2: Depending upon the size of /usr/openv/netbackup/db/, the chown command may take minutes to hours to complete.

Once the commands have been executed successfully, please resume the migration by running the command on the target primary server:
nbsm_target -overwrite -keep_src_cert -resume

Was this content helpful?