分页: 1 / 1

HP-UX - Best way to copy directories with big files

发表于 : 2014年 10月 11日 10:06 星期六
MUDBOY
Ideally the following command worked for me with reasonable performance, regardless of file size:

# cd /source; fbackup -f - -i . | (cd /destination; frecover -rXf -)

It is also the recommanded method for data copy introduced in the LVM management training.
Commands: Moving Data between Volume Groups

1. Determine the size of the LV to move, and create a new LV in the new VG

# lvdisplay /dev/vg01/data
# lvcreate –L 24 –n data vg02

2. Create a file system in the new LV

# newfs –F vxfs /dev/vg02/rdata

3. Create a temporary mount point for the new LV and mount it

# mkdir /tmp/data
# mount /dev/vg02/data /tmp/data

4. Copy the data to the new logical volume

# cd /data; fbackup –f - -i . | (cd /tmp/data; frecover –f - -r)
# umount /tmp/data

5. Unmount and remove the original LV

# umount /data
# lvremove -f /dev/vg01/data

6. Update /etc/fstab

# vi /etc/fstab

# mount -a