Take a look at onspaces and the onparams command.
First create a dbspace then create the logs. Remember you have to have a minimum of 3 logical logs present at all times.
Do the same with physical log, and I would recommend taking you database and out of rootdbs also. Create a tempdbspace as well
Cheers