Alternate Pathing 2.3 Cheatsheet 1. Add AP 2.3 packages: SUWNapr SUNWapu ... 2. Add AP Patches 3. Create at least 3 AP Databases replicas on 3 raw (6mb) slices accross controllers and System boards. # apdb -c /dev/rdsk/c0t0t0s4 -f # apdb -c /dev/rdsk/c1t0d0s4 # apdb -c /dev/rdsk/c2t0d0s4 4. Creat 3 more on the same slices, except use there alternate paths. # apdb -c /dev/rdsk/c3t0t0s4 # apdb -c /dev/rdsk/c4t0d0s4 # apdb -c /dev/rdsk/c5t0d0s4 5. Verify entries in /etc/system 6. Refresh copies # apdb -Z 7. Verify the state of all copies # apconfig -D 8. You may delete any replicas # apdb -d /dev/rdsk/c5t0d0s4 -f 9. Create a metha network pathgroup # apnet -c -p qfe0 -a qfe4 10. Verify uncommited pathgroup # apconfig -N -u 11. Commit the metanetwork (mether0) and verify # apdb -C # apconfig -N 12. You may switch interfaces # apconfig -P mether0 -a qfe0 13. To delete th emetanetwork # apdb -d mether0 # apdb -C (apdb -Z will undelete) 14. Verify AP sees disks # apinst 15. Create disk pathgroup # apdisk -c -p sf:2 -a sf:6 # apconfig -S -u # apdb -C # apconfig -S 16. Create /devices ap devices # drvconfig -i ap_dmd (Solaris 7 and under) # devsadm -i ap_dmd (Solaris 8) # apconfig -R (to create /dev/ap links) 17. Put root under ap control # apboot mc0t0d0 # init 6 18. Allow Vxvm to see ap disks. # vxdctl enable 19. To switch withing disk pathgroup sf:2 # apconfig -P sf:2 -a sf:6 20. If ap mark a path with "t" because it once failed, fix it, then reset flag # apdisk -w sf:6 stephane.petit@central.sun.com