Tag Archives: Hello Gurus

NIM Restore hangs at the start

By elcounto

Hello Gurus,

I have a couple of questions, I’m trying to do a mksysb restore from backup and it has just hung at the start.

Code:

RS/6000 Firmware
Version TCP05287
(c) Copyright IBM Corp. 2000 All rights reserved.
-------------------------------------------------------------------------------
LOAD: Waiting 60 seconds for Spanning Tree
BOOTP R = 1 BOOTP S = 1
FILE: /tftpboot/bsrs6d
Load Addr=0x4000 Max Size=0xbfc000
FINAL Packet Count = 16105 Final File Size = 8245686 bytes.
-------------------------------------------------------------------------------
Welcome to AIX.
boot image timestamp: 11:10 11/28
The current time and date: 15:40:43 03/21/2013
number of processors: 1 size of memory: 1024Mb
boot device: /pci@80000000/ethernet@c:10.11.2.9,,10.11.2.88,10.11.0.1,00,00
closing stdin and stdout...
-------------------------------------------------------------------------------


Anyone know why this is happening and how I can break out of it without someone going to power off the machine from the front panel. I’m logged on through the console cable and not the HMC unfortunately.

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

String comparison with a space

By rajivan

Hello Gurus,

I’ve searched enough to find what I wanted and finally ended up creating a thread.
I’m in the process of coding something like below

sed -n -e “s/.*(successfully completed).*/1/p” xxx.log
read status
if [[ “$status” = successfully completed ]]
then
#sleep 3;
echo “Export successful and exiting”
else
Send the log file as attachment
/usr/sbin/sendmail -f “expdp error” name@email.com << END
subject: Expdp error log
`cat /body-message.txt`
`uuencode xxxx.log xxxx.log`
END
fi

I’ve an issue in string comparison as the condition is not being met in “if ” condition, and always sends me an email (that’s satisfying the else condition)

Can some one please help.

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Moving a zone path to a new file system

By cjashu

Hello Gurus,
I need your help with this please. I am trying to move a zone to a new directory but it keeps failing.

Below is what I did and the message I get. Your help will be appreciated.

Thanks


zoneadm -z testzone move /rpool/testzone
cannot create ZFS dataset rpool/testzone: dataset already exists
Moving across file-systems; copying zonepath /rpool/zones/testzone...sh: /rpool/zones/testzone: does not exist
zoneadm: zone 'testzone': 'copy' failed with exit code 1.

The copy failed.
More information can be found in /var/log/zoneAAAZhay9R

Cleaning up zonepath /rpool/testzone...The ZFS file system for this zone has been destroyed.


the log file /var/log/zoneAAAZhay9R doesn’t exist either.

Source: FULL ARTICLE at The UNIX and Linux Forums