[linux-lvm] Problem copying device files to an LVM volume
Luca Berra
bluca at comedia.it
Wed Jan 16 15:40:02 UTC 2002
On Wed, Jan 16, 2002 at 03:16:25PM -0500, Don Williams wrote:
> When I copy device driver files files via NFS to a LVM volume they
> are "interpreted" instead of copied. The
>
> result is that when the copy hits the sda driver it starts copying the
> entire contents of /dev/sda drive! Instead
1) you should not post in html to mailing lists, fix you MUA
2) this is not an LVM related question but an UNIX related one
3) never use cp to copy special files, use cpio or tar instead as in
cd /source/dir
find . -xdev -print0 | cpio -0padumv /destination/dir
4) nfsv2 does not support mknod syscal (AFAIR), so you should either be sure
you are using nfsv3 or you better use cpio on a rsh pipe
sourcehost# cd /source/dir
sourcehost# find . -xdev -print0 | cpio -0oadumv | rsh desthost "cd /destination/dir && cpio -iadumv"
L.
--
Luca Berra -- bluca at comedia.it
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
More information about the linux-lvm
mailing list