HP-UX - Best way to copy directories with big files
发表于 : 2014年 10月 11日 10:06 星期六
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
2. Create a file system in the new LV
# lvcreate –L 24 –n data vg02
# newfs –F vxfs /dev/vg02/rdata
3. Create a temporary mount point for the new LV and mount it
# mkdir /tmp/data
4. Copy the data to the new logical volume
# mount /dev/vg02/data /tmp/data
# cd /data; fbackup –f - -i . | (cd /tmp/data; frecover –f - -r)
5. Unmount and remove the original LV
# umount /tmp/data
# umount /data
6. Update /etc/fstab
# lvremove -f /dev/vg01/data
# vi /etc/fstab
# mount -a