Hi Peter,
Your instinct is good. So you would update mqs.ini with the correct DataPath value, however if the Prefix is /var/mqm and the DataPath is /var/mqm/qmgrs/$Directory, you can simply delete the DataPath row.
Additionally you should absolutely verify the entry in the qm.ini as to the location of the qmgr's logs. If the prefix there is also /opt/mqm/log you will have to move the logs and give the new prefix of /var/mqm/log (see default for $LogDefaultPath that gets normally written to the qm.ini at creation.
I would suggest you stop the qmgr, copy the Data and Log files, make a backup of mqs.ini then change it and finally update the /var/mqm/qmgrs/$Directory/qm.ini.
Then start the qmgr and verify with dspmqinf where it is running. Also look at file date and time.
If that was all successfull you can delete the /opt/mqm Data and Log paths for the qmgr.
Needless to say all the file ownership should be preserved when moving the files / directories
By the way I expect the windows only command to be hamvmqm which would move the qmgr Data Files and Logs
migmqlog should be available in Unix/Linux but only affect the logs and not change their location.
According to documentation you could use migmqlog to move the log location (see migmqlog -ld absolute path)
Hope it helps.
------------------------------
Francois Brandelik
------------------------------