This technote describes an ** UNSUPPORTED ** method of migrating virtual
printer queues from one AIX system to another.
Original document (author unknown) was written for migrating virtual
printer queues between AIX v3.2.5 and AIX v4.2.x and greater. It has
been used since for migrating virtual queues between like oslevels as
well as from AIX v4.x to AIX v5.1. Most recently, it was confirmed to
work for migrating virtual printer queues from AIX v4.3.3 to AIX v5.2.
VIRTUAL PRINT QUEUE MIGRATION
Following, is the original document as taken from various closed PMRs.
(cleaned up a bit for readability)
Information in this document is correct to the best of our knowledge at
the time of this writing.
Please use this information with care. IBM will not be responsible for
damages of any kind resulting from its use.
The use of this information is the sole responsibility of the customer
and depends on the customer's ability to evaluate and integrate this
information into the customer's operational environment.
Migrating print queues from one system to another/os level independent.
(this only addresses the queue names and virtual printers). print
devices (lp's) must still be made independent of these actions and this
will not work for any queues with non-AIX backends or most network queue
connections (host names and routes being the primary issue). Also
depending on what kind of connection the queue has, the file and or
backend directory path in /etc/qconfig stanzas will be different between
os level 3.2.5 and 4.x.x
The reason there is no cut and dry answer to this issue is that
customer's systems vary so much in adapter/network connectivity,
filesystem structure, host naming conventions, etc., that years of
experience have taught us most people are much better off just making
queues via smit. A few hours work and it's done rather then 20 hours
later and still trying to figure out one more piece of the puzzle which
is stopping the cloned system from working.
NOTE: Save all files which will be over-written by this process
before attempting the migration.
1. copy the /etc/qconfig to the target system.
2. cycle the printer subsystem on target machine.
stopsrc -cg spooler
startsrc -g spooler
3a.copy all the /var/spool/lpd/pio/ local/custom files to target
system (/var/spool/lpd/pio/custom for AIX 3.2.x)
3b.copy all the /var/spool/lpd/pio/ local/dev directory files
(this is the queue device place holder)
4. change the permission on the copied files in
/var/spool/lpd/pio/ local/custom to 664 and make ownership
of root owner and printq group.
5. digest the colonfiles:
Run the sm_file script below
chvirprt -q(queue name) -d(device name) for each file in
The sm_file Script:
echo " n n n n n n n n n n n n n n n n n n n n n n n n n n n n n"
echo "This operation will refresh the printing system smit screens"
echo "and relink the system queues to the new screens. To complete"
echo "the operation I will stop qdaemon and restart it after I am
echo "Any job currently printing will start over from the begining. n"
echo "If you want me to continue with this operation type YES in
echo "letters, and hit
echo "Shall I continue?"
while read QSTOP
if -z $QSTOP tests for a null (just hit enter)
echo " n"
elif test $QSTOP = "NO"
echo "stopping with no change to smit queue screens"
exit exits this shell script
elif test $QSTOP = "YES"
break exits the while loop after the
echo "Please enter NO or YES"
echo " n"
echo "Stopping qdaemon."
echo " n"
stopsrc -cs qdaemon
echo "I will now copy backup smit screen files to the directory of:"
echo "/var/spool/lpd/pio/ local/smit."
echo "one moment please... n"
cp /usr/lpp/printers.rte/inst_root/var/spool/lpd/pio/ local/smit/*
echo "Done with smit screen refresh. n"
cd /var/spool/lpd/pio/ local/custom
echo "I will now link the currently existing queues on the system, with
echo "refreshed smit screens. n"
for file in ls
echo "Now linking queue and device $file"
echo " n"
echo "Starting qdaemon"
startsrc -s qdaemon
echo " n"
echo "The print queue refresh/relink operation is complete. If you
echo "any questions or problems please call: 1-800-225-5249 (AIX
echo "Thank you for using AIX SUPPORT."
End of script
This has worked in a test environment but it is not guaranteed to work
in any particular OS or hardware environment. If it does not work,
return to the supported method of queue construction as laid out in the
AIX system manuals.
My blog has moved,please visit the new site
IBM AIX/UNIX system storage administration ksh/perl scripting
Monday, March 16, 2009
- ACL (1)
- admin (2)
- AIX 5.3 (1)
- AIX 6.1 (3)
- Atape (1)
- backup (5)
- backupios (1)
- Best Practices (1)
- bosboot (1)
- cdrom (1)
- cfgmgr (1)
- commands (4)
- compatibility (1)
- console (1)
- device (2)
- dhcp (1)
- disk (1)
- DNS (2)
- Downloads (1)
- dump (1)
- Dynamic (1)
- error (1)
- errpt (1)
- ESS (1)
- etherchannel (1)
- Filesystem (7)
- firmware (2)
- Freeware (1)
- ftp (2)
- getty (1)
- GNU (1)
- HACMP (2)
- HEA (1)
- HMC (2)
- hostname (1)
- I/O (1)
- Installation (2)
- installp (2)
- IP alias (1)
- iptrace (1)
- iso (2)
- IVM.CLI (1)
- jfs (1)
- JFS to JFS2 conversion (1)
- jfs2 (2)
- kdb (1)
- kernel (1)
- LED (2)
- lifecycle (2)
- Live Partition Mobility (1)
- lofiadm (1)
- login (1)
- LPAR (1)
- lppchk (1)
- lsof (1)
- LV (1)
- lvm (3)
- memory (1)
- migration (4)
- mksysb (2)
- mkvdev (1)
- mkvgdata (1)
- mount (1)
- multibos (1)
- ndd (2)
- netstat (1)
- network (7)
- NFS (2)
- NIC (4)
- NIM (2)
- NPIV (1)
- ODM (2)
- openssh (1)
- oslevel (1)
- patching (1)
- Performance (4)
- Perl (2)
- Perl Module (2)
- permission (1)
- port (1)
- Power VM (1)
- Power5 (1)
- Power6 (1)
- printer (1)
- problem (17)
- process (4)
- RAID5 (1)
- Recovery (2)
- respawn (1)
- restore (1)
- routing (4)
- RSC (1)
- runq (1)
- savevg (1)
- scripts (4)
- SEA (1)
- security (5)
- sendmail (1)
- solaris (7)
- SSA (1)
- SSH (2)
- ssh-agent (1)
- storage (3)
- subnet (1)
- Sun Remote System Control (1)
- support (2)
- synchronize (1)
- TCPIP (5)
- telnet (2)
- time zone (1)
- topas (1)
- Total Storage (1)
- trace (2)
- tuning (1)
- uninstall (1)
- update (1)
- update boot (4)
- upgrade (3)
- users (2)
- Veritas Volume Manager (1)
- VG (1)
- VIOS (4)
- VMM (1)
- VxVM (1)
- wtmp (1)
- Getty and Login relationship in AIX
- How can I move my DVD-ROM or CD-ROM drive from one...
- Hard-Luck Editing the /etc/inittab File in Mainten...
- Querying filesystem information used in mouting a ...
- 0516-008 varyonvg: LVM system call returned an unk...
- Remove IP Configuration for enX Device
- Procedure to change NIC speed
- Cfgmgr does not find a device
- lsdev: 0514-521 Cannot find information in the pre...
- Use IP alias trick to solve hung NFS mount problem...
- HMC CLI to Turn Off Attention LED on System p Serv...
- Raw vs. JFS Logical Volumes I/O
- How can I suppress the telnet login message (hostn...
- Using netstat and rmsock to Identify Processes Usi...
- How to install Perl module on AIX
- List installed Perl modules
- p5 System Firmware Upgrade
- Problem: 0315-132 The supplied error log is not va...
- Total Storage Network setup using the serial port
- Procedure to remove and rediscover ESS disk's
- Adding New telnet Service to Different Port
- AIX using chdev to add/change/remove routing
- Why you should NOT put two interfaces in same subn...
- Migrate print queues from one AIX server to the ot...
- How to do a iptrace
- How to mount ISO image file on AIX
- Solaris script(get_active_nic_settings.sh) - bash...
- Solaris script (get_all_nic_settings.sh) - bash sc...
- lppchk -v returns some filesets in inconsistent st...
- Sun Remote System Control - Using the RSC Command ...
- oslevel -s reports incorrectly after OS migration ...
- Script to list process in current runq in AIX
- JFS to JFS2 conversion for rootvg
- NIM server setup for dummies
- 3004-622 An error occurred updating the password d...
- HACMP Version Compatibility Matrix
- Preparing to migrate to AIX 5.2, 5.3, or 6.x
- Migrating Users from One AIX System to Another AIX...
- Restore specific file from mksysb backup
- List files in mksysb backup
- 3001-243 The DBM files for /etc/passwd are out of...
- ▼ March (42)