05-09-2013 02:34 AM
I am executing below command through script to restore volumes
ssh -p 22 root@172.19.18.134 dd if=/dev/rmt/0n ibs=4096b | (cd /mnt; vxrestore -c -r -b 4096 -f -)
after restoring thre or four volimes, its ending with below message
===> Verifying ossdg/JUMP 2013-05-09 09:15:48
Positioning tape at block 3
Creating ossdg/JUMP_verify (12288 MB)
New vxfs FS on JUMP_verify
vxrestore -c JUMP_verify
Using vxrestore to receive root@172.19.18.134:/dev/rmt/0n to /mnt
UX:vxfs vxrestore: ERROR: V-3-20068: cannot open /dev/tty: No such device or address
and next volume restore doesnot start
I have tried couple of times and it gave the same error for different volumes each time and it stucks randomly
please suggest
05-09-2013 04:25 AM
Hi Symsonu,
You'll need to consider using a temporary dump file to read inputs for vxrestore, rather than using the STDIN -if you must use a non-interactive script.
In you command you use '-' (after the -f argument) which implies reading from stdin.
There are situations where vxrestore expects user input and this method of using stdin might not work everytime inside scripts. Theres an old technote that has more details on using the workaround but the advised steps are still valid:
http://www.symantec.com/business/support/index?page=content&id=TECH22170
05-09-2013 04:33 AM
It restores three four sometimes 10 volumes and then randomly fail for any volume
05-09-2013 04:35 AM
However if it lookinfor input like 'y' from user , it should be the case in each volume restore.
How come it restores few volumes in non-interactive mode and then it fail for one
05-09-2013 04:54 AM
only for some restores the user input might be prompted & not for others ..like only for specific FS, vxrestore might want to correct/reset the permissions/mode etc and seek user confirmation
05-09-2013 06:35 AM
technote say that If I use file instead of stdin
then vxrestore will not ask interactive question like set mode ? y/n
Is my understanding right ?
05-09-2013 11:46 AM
yes,you got it right. In addition use the '-e ignore' switch with vxrestore to ignore any extent attribute warning messages. Incase every extent attribute is to be preserved, use the commands interactively per restore, -outside of the script.