System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

copy a filesystem from HP-UX to Linux Suse

 
support_billa
Valued Contributor

copy a filesystem from HP-UX to Linux Suse

hello,

 

Now i have to expand the copy commands for copy a filesystem from HP-UX (vxfs) to Linux SuSe (ext3) or backwards

 

We had discuss here a long thread copy a filesystem best solution (local host or remote host)  and now i will extend it for copying to Linux.

 

i hope those options are right for Linux and compatible (like cpio)

here my options:

 

cd /source_fs

CPIO
find .  ! \( -name lost+found -type d -prune \) -depth -print | cpio -oc |ssh root@other_host "cd /dest_fs; cpio -idumvV -H hpodc"

 

TAR
tar -cpvf - . | ssh root@other_host "( cd /dest_fs; tar -xBpvf - )"

 

PAX
pax -w . | ssh root@other_host "( cd /dest_fs; pax -v -r -pe )"

 

RSYNC
rsync --progress -avhz --rsh="ssh" . root@other_host:/dest_fs

 

DUMP
dump ???

 

combination of tar and zip are also solutions.

 

regards

3 REPLIES
support_billa
Valued Contributor

Re: copy a filesystem from HP-UX to Linux Suse

some news:

 

when i tested files > 2 GB i detected limits... i forget :

 

so only options are - RSYNC and - CP (RCP/SCP) ...

 

i will test:

 

GNU version of tar, a tape file archiver

 

GNU version of cpio, program to manage archives of files

 

does anybody have experiences with this versions ?

 

how i detect what version of CPIO and TAR is installed ? cpio --version isn't available !

 

regards

support_billa
Valued Contributor

Re: copy a filesystem from HP-UX to Linux Suse

here a little overview about limits of the commands:

 

HP-UX :      tar: Size of Files >= 8GB.  Not dumped.  tar is not working with a file more than 8GB
        GNU: tar: No Limit  ( local copy)

HP-UX :      cpio: Size of Files >= 2GB.  Not dumped.
         GNU: cpio: No Limit ( local copy)   Limit is obsolete: GNU cpio 2.6 does not write files larger than 2 GB (>2GB)

HP-UX :      pax: No Limit

HP-UX :      rsync: No Limit

 

Remote Copy Limit / Error:


I have problems using GNU cpio to copy to a remote host (HP-UX 2 HP-UX) files bigger >= 8GB.

 

command:

find /source_fs -xdev -depth ! \( -name lost+found -type d -prune \) -print | \
/usr/local/bin/cpio -ocav | \
ssh -p 22 server -l root "cd /dest_fs; /usr/local/bin/cpio-idumv"

 Error: /usr/local/bin/cpio: 10 G File. field width not sufficient for storing file size

 

regards

Dennis Handly
Acclaimed Contributor

Re: copy a filesystem from HP-UX to Linux Suse

>HP-UX:   pax: No Limit

 

You probably have to install  PAX-Enh and a patch.