From
AIX v5.2, you'll never need to restart any LPAR because of DLPAR (Dynamic LPAR) operations (from HMC).
So, the only tasks to do, starting from a normal situtation (i.e., production LPAR owning CD device), to release CD-ROM are:
1. Remove cd0, ide0 and pciX from production LPAR.
2. Remove de adapter for production LPAR, from HMC (DLPAR operation)
3. Define CD slot in test LPAR.
4. Start test LPAR.
I suggest, for every partition profile, define CD slot as 'desired' so you can always add/move/remove this slot from/to any LPAR.
Test this&good luck.