From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <00a001c19eca$aca6cec0$38c8a8c0@caladanxp> From: "Don Williams" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_009D_01C19EA0.C3A45F90" Subject: [linux-lvm] Problem copying device files to an LVM volume Sender: linux-lvm-admin@sistina.com Errors-To: linux-lvm-admin@sistina.com Reply-To: linux-lvm@sistina.com List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: Date: Wed Jan 16 14:17:01 2002 List-Id: To: linux-lvm@sistina.com This is a multi-part message in MIME format. ------=_NextPart_000_009D_01C19EA0.C3A45F90 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello all, 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 fo the /dev/sda file itself. =20 The file that it's trying to copy is from Tom's Rescue CD kit. The = dev files are sources files for creating a bootable rescue CD. =20 My configuration is:=20 debian linux 3.0, Kernel v2.4.17 Using ReiserFS 3.6.x (I also = tried using the EXT2 fs with identical results) The SOURCE dir is about 5GB in size. I'm trying to copy that to a 50GB = LVM volume via the network (NFS) . However it consumes the whole 50GB. If I remove the offending = directories it returns to the proper size. Suggestions? Regards, Don Williams Storage Computer Corporation (603)880-3005 x115 The output of the copy looks like this: =20 cp: writing `/lvm2/src/trccs-0.8.1r2/_system/_cd/var/dev/sdb': No space = left on device `/nas/src/trccs-0.8.1r2/_system/_cd/var/dev/sdc' -> = `/lvm2/src/trccs-0.8.1r2/_system/_cd/var/dev/sdc' cp: cannot open `/nas/src/trccs-0.8.1r2/_system/_cd/var/dev/sdc' for = reading: No such device or address `/nas/src/trccs-0.8.1r2/_system/_cd/var/dev/sdd' -> = `/lvm2/src/trccs-0.8.1r2/_system/_cd/var/dev/sdd' cp: cannot open `/nas/src/trccs-0.8.1r2/_system/_cd/var/dev/sdd' for = reading: No such device or address `/nas/src/trccs-0.8.1r2/_system/_cd/var/dev/sde' -> = `/lvm2/src/trccs-0.8.1r2/_system/_cd/var/dev/sde' cp: cannot open `/nas/src/trccs-0.8.1r2/_system/_cd/var/dev/sde' for = reading: No such device or address `/nas/src/trccs-0.8.1r2/_system/_cd/var/dev/sdf' -> = `/lvm2/src/trccs-0.8.1r2/_system/_cd/var/dev/sdf' cp: cannot open `/nas/src/trccs-0.8.1r2/_system/_cd/var/dev/sdf' for = reading: No such device or address `/nas/src/trccs-0.8.1r2/_system/_cd/var/dev/sdg' -> = `/lvm2/src/trccs-0.8.1r2/_system/_cd/var/dev/sdg' cp: cannot open `/nas/src/trccs-0.8.1r2/_system/_cd/var/dev/sdg' for = reading: No such device or address `/nas/src/trccs-0.8.1r2/_system/_cd/var/dev/sdh' -> = `/lvm2/src/trccs-0.8.1r2/_system/_cd/var/dev/sdh' cp: cannot open `/nas/src/trccs-0.8.1r2/_system/_cd/var/dev/sdh' for = reading: No such device or address `/nas/src/trccs-0.8.1r2/_system/_cd/var/dev/rtc' -> = `/lvm2/src/trccs-0.8.1r2/_system/_cd/var/dev/rtc' corpnas:~# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/sda1 2667848 634816 2033032 24% / /dev/sda3 1776120 124360 1651760 8% /var /dev/sda4 4254908 68664 4186244 2% /local/home /dev/raid7/lvm2 51198432 51196436 1996 100% /lvm2 ** DESTINATION *** garfield-int:/home 24409984 3448808 20961176 15% /home garfield-int:/nas 37100944 5842216 31258728 16% /nas *** SOURCE = DIRECTORY *** /dev/raid7/lvm1 51198432 2153480 49044952 5% /lvm1 corpnas:~#=20 ------=_NextPart_000_009D_01C19EA0.C3A45F90 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello all,
 
 When I copy device driver files = files via=20 NFS to a LVM volume they are "interpreted" instead of copied.  = The
result is that when the = copy hits the=20 sda driver it starts copying the entire contents of /dev/sda = drive! =20 Instead
fo the /dev/sda file itself.  =
 
 The file that it's trying to = copy is from=20 Tom's Rescue CD kit.   The dev files are sources files for = creating=20 a
bootable rescue CD.  =
 
 My configuration is: =
 
 debian linux 3.0,  Kernel=20 v2.4.17    Using ReiserFS 3.6.x  (I also tried using = the=20 EXT2 fs with identical results)
 
 
The SOURCE dir is about 5GB in = size.  I'm=20 trying to copy that to a 50GB LVM volume via the network
(NFS) .  However it consumes the whole 50GB.   If I remove the = offending=20 directories it returns to the proper size.

  Suggestions?

  Regards,

   Don Williams

   Storage Computer=20 Corporation

   (603)880-3005 = x115

 

  The output of the copy = looks like=20 this:

 

cp: writing=20 `/lvm2/src/trccs-0.8.1r2/_system/_cd/var/dev/sdb': No space left on=20 device

`/nas/src/trccs-0.8.1r2/_system/_cd/var/dev/sdc'=20 -> `/lvm2/src/trccs-0.8.1r2/_system/_cd/var/dev/sdc'

cp: cannot open=20 `/nas/src/trccs-0.8.1r2/_system/_cd/var/dev/sdc' for reading: No such = device or=20 address

`/nas/src/trccs-0.8.1r2/_system/_cd/var/dev/sdd'=20 -> `/lvm2/src/trccs-0.8.1r2/_system/_cd/var/dev/sdd'

cp: cannot open=20 `/nas/src/trccs-0.8.1r2/_system/_cd/var/dev/sdd' for reading: No such = device or=20 address

`/nas/src/trccs-0.8.1r2/_system/_cd/var/dev/sde'=20 -> `/lvm2/src/trccs-0.8.1r2/_system/_cd/var/dev/sde'

cp: cannot open=20 `/nas/src/trccs-0.8.1r2/_system/_cd/var/dev/sde' for reading: No such = device or=20 address

`/nas/src/trccs-0.8.1r2/_system/_cd/var/dev/sdf'=20 -> `/lvm2/src/trccs-0.8.1r2/_system/_cd/var/dev/sdf'

cp: cannot open=20 `/nas/src/trccs-0.8.1r2/_system/_cd/var/dev/sdf' for reading: No such = device or=20 address

`/nas/src/trccs-0.8.1r2/_system/_cd/var/dev/sdg'=20 -> `/lvm2/src/trccs-0.8.1r2/_system/_cd/var/dev/sdg'

cp: cannot open=20 `/nas/src/trccs-0.8.1r2/_system/_cd/var/dev/sdg' for reading: No such = device or=20 address

`/nas/src/trccs-0.8.1r2/_system/_cd/var/dev/sdh'=20 -> `/lvm2/src/trccs-0.8.1r2/_system/_cd/var/dev/sdh'

cp: cannot open=20 `/nas/src/trccs-0.8.1r2/_system/_cd/var/dev/sdh' for reading: No such = device or=20 address

`/nas/src/trccs-0.8.1r2/_system/_cd/var/dev/rtc'=20 -> `/lvm2/src/trccs-0.8.1r2/_system/_cd/var/dev/rtc'

 

  corpnas:~# df

Filesystem 1k-blocks Used Available = Use% Mounted=20 on

/dev/sda1 2667848 634816 2033032 24% = /

/dev/sda3 1776120 124360 1651760 8% = /var

/dev/sda4 4254908 68664 4186244 2%=20 /local/home

/dev/raid7/lvm2 51198432 = 51196436 1996 100%=20 /lvm2   ** DESTINATION ***

garfield-int:/home 24409984 3448808 = 20961176 15%=20 /home

garfield-int:/nas 37100944 = 5842216 31258728=20 16% /nas  *** SOURCE DIRECTORY ***

/dev/raid7/lvm1 51198432 2153480 = 49044952 5%=20 /lvm1

corpnas:~# =

------=_NextPart_000_009D_01C19EA0.C3A45F90--