===== Recreate a WPAR (reread spec file on new server) =====
Create a WPAR on the first node, on a VG wpar5vg with major number 50, if available. Check with command\\
[root@powerha1] # lvlstmajor
37..49,52,54...
Then try to start and stop the WPAR\\
varyoffvg on the wpar5vg
on the second node import the vg:\\
importvg -V 50 -y wpar5vg hdisk2
Mount all filesystems from the volume group, if needed create the mount points
==== Import the WPAR config on anaother node ====
Then create the WPAR with preserve option, it will read the spec file from /wpars/wpar5/var/adm/ras/mkpar.spec
[root@powerha2] # mkwpar -p -n wpar5
mkwpar: Attaching to existing file systems...
/wpars/wpar5
/wpars/wpar5/app
/wpars/wpar5/app/admin
/wpars/wpar5/app/oracle
/wpars/wpar5/app/oracle/flash_recovery_area
/wpars/wpar5/app/oracle/oradata
/wpars/wpar5/apps
/wpars/wpar5/home
/wpars/wpar5/opt
/wpars/wpar5/opt/ORCLfmap
/wpars/wpar5/proc
/wpars/wpar5/root
/wpars/wpar5/tmp
/wpars/wpar5/usr
/wpars/wpar5/var
/wpars/wpar5/var/core
Workload partition wpar5 created successfully.
mkwpar: 0960-390 To start the workload partition, execute the following as root: startwpar [-v] wpar5
**IMPORTANT** Before integrated the resource into PowerHA, list all mount point from volume group, and try to mount it in the order of the lsvg -l command. Maybe some mount points are missing, especially into /usr or /opt if you use these from Global partition.
===== WPAR import deep in detail =====
First import the VG containing the WPAR
Then copy the most files (maybe other if changed) from /etc/corrals/ : index , wpar1.cf, lastkey
Create a service called cor_wpar1
# mkssys -s "cor_wpar1" -p "/usr/lib/wpars/runwpar" -a "wpar1" -i "/dev/console" -o "/var/adm/ras/wpar.wpar1.srclog" -e "/var/adm/ras/wpar.wpar1.srclog" -u 0 -w 20 -S -n 30 -f 31 -R
For information here are all service parameters set
[root@powerha1]/etc/objrepos # odmget SRCsubsys | grep -p wpar1
SRCsubsys:
subsysname = "cor_wpar1"
synonym = ""
cmdargs = "wpar1"
path = "/usr/lib/wpars/runwpar"
uid = 0
auditid = 0
standin = "/dev/console"
standout = "/var/adm/ras/wpar.wpar1.srclog"
standerr = "/var/adm/ras/wpar.wpar1.srclog"
action = 1
multi = 0
contact = 2
svrkey = 0
svrmtype = 0
priority = 20
signorm = 30
sigforce = 31
display = 1
waittime = 20
grpname = ""
Don't forget to copy all entries from /etc/filesystems related to the wpar1 (also /proc, /usr and /opt)