Operating System - HP-UX
1821984 Members
3287 Online
109638 Solutions
New Discussion юеВ

(help!) cp: bad copy to...

 
Jim Kriegel
Advisor

(help!) cp: bad copy to...

Hi,
We added a new autoraid and extended the vg and the fs. The database files ended up being corupted. Before installing the autoraid we did a tape back and cp'ed the files to some free space.
We cp'ed most of the files, but one gives us this error:
cp: bad copy to ./rbs1alaw_01.dbf: write: No such device or address

I've contacted support but they haven't got back to me.

TIA
4 REPLIES 4
Madhu Sudhan_1
Respected Contributor

Re: (help!) cp: bad copy to...

It not able to read from the source or it is not able to write into the target ?

How did you make a copy ?

Did you make a copy into another LVM or Filesystems or tape ?

Did you change the hardware path of any disks or raid ?

Let us know ?

...Madhu
Think Positive
Paula J Frazer-Campbell
Honored Contributor

Re: (help!) cp: bad copy to...

Hi

1. Is this file at the end of the restore or in the middle?
2. Can you read this tape in another drive?
3. Have you cleaned the tape drive?
4. Is this a volatile file and if not can you use the file from a previous backup?

Just a few ideas

Paula
If you can spell SysAdmin then you is one - anon
alberto vasquez
Trusted Contributor

Re: (help!) cp: bad copy to...

this need further investigation:
1) Check /var/adm/syslog/syslog.log for errors on the file system. tell me the errors if any.
2) Try read from the file system using the dd command: dd if=/dev/vgXX/lvYY of=/dev/null bs=64k or 128k. tell what happens.

TML


Bill McNAMARA_1
Honored Contributor

Re: (help!) cp: bad copy to...

hopefully you extended the lv and not reduced
it by accident.
lvextend -l NEWSIZE /dev/vg/lvol
not
lvextend -l EXTENSION /dev/vg/lvol

however it should report error if it
realises a filesystem is there, but it
seems your filesystem is raw, thus no real
concept of files rather bit and byte.

The sysylog should tell us all.
send it along!..
also for good measure
strings /etc/lvmtab
vgdisplay -v vgroup
ioscan -fnk
and
arraydsp -a
^
from arraydsp -i

Later,
Bill
It works for me (tm)