
loopmount -i /d/bioimages/texlive2011-20110705.iso -o "-V cdrfs -o ro" -m /cdrommounts the specified ISO file as if it were a CD/DVD ROM.
root privileges.
The error message
1320-007 loopmount: Failed to mount the imagefile.means that probably the
-V cdrfs option is missing.
The error message
1320-002 loopmount: Failed to read Customized Database in ODM.could mean that probably the ODM location is undefined:
env | grep ODM # check it. export ODMDIR=/etc/objrepos # (re-)define, if necessary.
cdrecord dev=1,0 image.iso # for CDs readcd -w dev=1,0 f=image.iso # for DVDsburns the (disk-resident) ISO image file
image.iso
on a CD/DVD writer
/dev/cd1
More hints (CD recording seems to be heavy magic):
sometimes the message appears: "readcd: Invalid argument. Cannot send SCSI cmd via ioctl" This can be ignored, just re-issue the command.
Depending on host hardware, cdrecord version and type
of CD writer, explicitly specifying writing speed might help:
cdrecord ... speed=4 ...
/fs, and associated
logical volume (LV), /dev/lv,
to be moved to another VG, newvg.
mklv -y newlv newvg number_of_physical_partitionsIn any case:
chlv -t copy newlv # flags that it will receive a copy
mklv -t jfslog newvg 1 # for a jfs LV, creates JFS log /dev/loglv mklv -t jfs2log newvg 1 # for a jfs2 LV, creates JFS2 log /dev/loglvxx logform /dev/loglvxx # assuming this is the JFS log, insert the actual name here
exportfs -u /fs umount /fsIf, as usual, this can't be accomplished because somebody is using the filesystem, use
fuser /dev/lv # or: lsofto discover and
kill -9 the offending processes.
fuser -kxuc /dev/lvkills everything associated with
/dev/lv
cplv -e newlv -f lv # copy old to new LV, may take looong, so be patient! chlv -n oldlv lv # swap LV names ... chlv -n lv newlv # swap LV names ...
chfs -a dev=/dev/lv /fs # the new LV it resides on chfs -a log=/dev/loglvxx /fs # the new JFS log it uses, use the actual JFS log name here !!!
mount /fs .
exportfs /fs. It might be necessary to un/remount on the client side:
umount -f client_mountpoint_for_fs
smitty to
remove old LV oldlv.
/fsnew on the target file server,
as described here, but delay NFS access
until later.
# for a dry run rsync -e ssh -v -r -l -S -p -o -g -t -u -n /fsold/ root@target:/fsnew # for real rsync -e ssh -v -r -l -S -p -o -g -t -u /fsold/ root@target:/fsnewmind the trailing slash (
/), it's significant!!
cp -h -r -p /fsold/ /fsnew/One may verify the successful transfer by comparing filesystem sizes:
du -g -s /fsold/ du -g -s /fsnew/however, this is only a crude estimate since some filesystem types offer compression. Alternatively, the number of files in both filesystems can be compared via
find /fsold/ |wc find /fsnew/ |wcwhere the first two numbers (lines, words) should be approximately equal.
smitty Communications Applications and Services - NFS - Remove a Directory from Exports List # or on the command line: /usr/sbin/rmnfsexp -d '/fsold' '-B'
smitty System Storage Management - File Systems - Unmount a File System # or on the command line: /usr/sbin/umount /fsold
smitty
System Storage Management
- File Systems - Delete File Systems
- [Enhanced] Journaled File Systems
- Remove a[n Enhanced] Journaled File System
# or on the command line:
/usr/sbin/rmfs /fsold
/usr/tivoli/tsm/client/ba/bin/dsm.opt (32-bit version),
/usr/tivoli/tsm/client/ba/bin64/dsm.opt (64-bit version).
restore -T -f /dev/rmt0
dd if=/dev/rmt0 ibs=512 of=/tmp/rmt0.dd dd if=/dev/rmt0 ibs=10240 of=/tmp/rmt0.dd # alternative ?
installp -l -d /dev/rmt0 >/tmp/rmt0.log 2>&1
tctl -f /dev/rmt0 rewind # position at tape start tctl -f /dev/rmt0.1 fsf 3 # skip first 3 files, don't rewind tar -tvf /dev/rmt0.1 >/tmp/rmt0.log 2>&1 # here we are
tctl -f /dev/rmt0 rewind restore -s4 -Tvqf /dev/rmt0.1 >/tmp/rmt0.log 2>&1
/dev/rmt0
into file /tmp/rmt0.log.
smitty
Problem Determination - Hardware diagnostics - Current Shell Diagnostics - Resource SelectionSelect the disk to format (take care !), use
F7 to commit.
Task Selection choose Format Media, then
Format and certify disk. Think twice and go ahead.
Be patient, it may take an hour or so.
/usr/lpp/X11/defaults/xmodmap/en_US/keyboard
keycode 50 = backslash bar NoSymbol !keycode 50 = NoSymbol NoSymbol NoSymbolthen run
xmodmap /usr/lpp/X11/defaults/xmodmap/en_US/keyboard
/etc/inetd.conf
ftp stream tcp nowait root /usr/sbin/ftpd ftpd -t 1800After refresh of the
inetd subsystem the timeout will be 1800 seconds.
Refreshing is accomplished by the line command
refresh -s inetdor by the
smitty - Processes & Subsystems - Subsystems - Refresh a Subsystem
menu selection.
site idle 1800will do the job. The currently valid timeout can be queried by the ftp subcommand
site idle
smit tool on the command line:
smittythen walk through the menus
Print Spooling - Manage Print Queues - Start a Print QueueFill in the required information and press enter.
root-privileges.
Ordinary users would have to be in the secondary group printq.
/usr/lpp/UMS/defaults/mime/setup_ums_mime
oslevel -rto determine current OS maintenance level. If not as expected sth like
instfix -ciqk 5200-09_AIX_ML | grep ":-:" | pgmight tell you which filesets are missing to reach e.g. AIX 5.2 ML-09
bootinfo -y tells the 32/64-bit capability of the system.
bootinfo -K tells the 32/64-bittedness of the currently
active kernel.
ln -fs /usr/lib/boot/unix_64 /usr/lib/boot/unix ln -fs /usr/lib/boot/unix_64 /unixFrom 64 to 32 bit:
ln -fs /usr/lib/boot/unix_up /usr/lib/boot/unix # for uni-processor machines ln -fs /usr/lib/boot/unix_up /unix ln -fs /usr/lib/boot/unix_mp /usr/lib/boot/unix # for multi-processor machines ln -fs /usr/lib/boot/unix_mp /unixThen in both cases:
bosboot -a -l /dev/hd5 -d /dev/hdisk0 bosboot -a -l /dev/hd5 -d /dev/hdisk1 # for a mirrored disk bootlist -m normal hdisk0 hdisk1 # paranoia bootlist -m normal -o # paranoia shutdown -Fr
chdisp -d bbl0 # temporarily switch to graphics adapter "bbl0" chdisp -p bbl0 # permanently switch to graphics adapter "bbl0"Needs reboot / X11 restart.
lsattr -El proc0should give CPU architecture and clock frequency (in Hz) for CPU
proc0
smitty, then Software Installation/Maintenance,
or on the command line e.g.:
/usr/lib/instl/sm_inst list_filesets -l -f _all_available -d '/dev/cd0' >/tmp/content.txt 2>&1will list the software on CD/DVD in drive
/dev/cd0
into file /tmp/content.log.
For multi-volume sets it is sufficient to list the first CD/DVD of the set.
root rights.
smitty, then System Storage Management - System Backup Manager,
or on the command line e.g.:
/usr/sbin/restore -s 4 -Tqv -f /dev/rmt0.1; tctl -f /dev/rmt0.1 rewindThis command sequence skips the first four tape files (
-s 4 -q)
and positions the tape at the fifth, which is the real backup.
The files in the backup are then listed (-Tv).
The tape special file has to be "non-rewinding" (/dev/rmt?.1)
to avoid rewinding after one of the first four EOF's.
Finally, tctl repositions the tape at its load point.
root rights.
inutoc /usr/sys/inst.images bffcreate -c -d /usr/sys/inst.images
/etc/netsvc.conf add/modify:
hosts=local,bind
/etc/resolv.conf:
Remove inappropriate nameservers.
/etc/hosts.
/etc/hosts.allow, for example allow only local access:
ALL: LOCAL
/etc/ssh/sshd_config,
for example modify rootlogin:
rootlogin no # disallow #rootlogin no # allow, yes is the default.restart sshd:
stopsrc -s sshd; startsrc -s sshd
tsm, e.g. in /etc/rc.local.
LoadL_schedd process doesn't start up properly,
burns useless CPU cycles,
is marked as "down" in xloadl and fills
/var/loadl/log/SchedLog with messages like:
LoadLeveler: JobQueue::scan(int (*)(Job *)): Error retrieving Job StepList from Queue. Unable to route step typeProbable Reason: some corrupted remnants from previous jobs.
/var/loadl/spool:
rm /var/loadl/spool/jobxxxxxx.ickpt.0 # offending job relics
# sometimes this is needed in addition:
rm /var/loadl/spool/history
rm /var/loadl/spool/job_queue.dir
rm /var/loadl/spool/job_queue.pag
and restart LoadLeveler on the respective node.
vers=2 wherever applicable:
mount -o vers=2 ... # when mounting manually
nfs_mount: 109 error while mounting (.....): Function not implementedCure:
ypbind must be started, then:
stopsrc -s automountd stopsrc -g nfs /etc/rc.nfs # should start ypbind services
getrootfs hdisk0
ksh; export TERM=lft # try, if "vi" is to be used
# if unsuccessful, "vi" runs in "open" mode,
# i.e. use "l" and "h" to navigate right and left, respectively
#
# ... actions to be done to fix the problem
#
sync; sync; sync # force writing changes to disk
shutdown -Fr
# or:
reboot
mount /dev/hd0 /mntthen the
/etc/ directory for example will be accessible as
/mnt/etc/ .
umount /mntand leave the shell with
CTRL-D.
The menu will allow you to reboot into normal AIX.
vi /etc/security/passwordand remove the root password.
cd /mnt/etc/security/ dd if=passwd of=passwd.save # for security (there's no cp) ed passwd # enter very primitive line editorIn
ed, type consecutive line numbers until
the line for the root password appears. Then
s/<encryption>//g # remove password. Use \/ if the encryption contains a / w passwd # write edit buffer to file q # leave the editorLeave the shell and reboot:
sync; sync; sync # write disk buffers CTRL-D
vi /etc/inittaband outcomment (place a colon,
:, before the line)
the offending line which invokes /etc/rc.nfs.
nedit refuses cut&paste, etc
root:
cd /usr/bin/X11
cp -p X X.save # save original X
cp -p X X.large # the new X
# tell the executable to use 1GB heap space
/usr/bin/echo '\0100\0\0\0' | dd of=X.large bs=4 count=1 seek=19 conv=notrunc
ln -sf X.large X
hdisks are mapped onto "RAID Disk Array"s
consisting of physical pdisks.
hdisk5)
is dead.
smitty
- System Storage Management
- Logical Volume Manager
- Volume Groups - Unmirror a Volume Group
PHYSICAL VOLUME names [hdisk5] # specify dead disk +
smitty
- System Storage Management
- Logical Volume Manager
- Volume Groups
- Set Characteristics of a Volume Group
- Remove a Physical Volume from a Volume Group
* PHYSICAL VOLUME names [hdisk5] +
smitty - Devices - Fixed Disk - Remove a Disk Disk hdisk5 KEEP definition in database no +then remove it physically from the machine.
diagor
smitty Problem Determination - Hardware Diagnostics - Current Shell Diagnostics - Task Selection - Identify and Attention Indicatorsselect the location, e.g.
U789C.001.DQD4926-P2-D8
smitty - Devices - Install/Configure Devices Added After IPL
hdisk5.
smitty
- System Storage Management
- Logical Volume Manager
- Volume Groups - Set Characteristics of a Volume Group
- Add a Physical Volume to a Volume Group
* PHYSICAL VOLUME names [hdisk5] +
smitty
- System Storage Management - Logical Volume Manager
- Volume Groups - Set Characteristics of a Volume Group
- Mirror a Volume Group
PHYSICAL VOLUME names [hdisk5] +
Number of COPIES of each logical 2 +
partition
(be patient, might take several minutes)
rootvg,
rewrite the boot records for both disks in the mirror:
bosboot -a -l /dev/hd5 -d /dev/hdiskx bosboot -a -l /dev/hd5 -d /dev/hdisky bootlist -m normal hdisky hdiskx
/ is full.
/.
smitty - Devices - Tape Drive - Change / Show Characteristics of a Tape Drive
DENSITY setting #1 [140]