Moving filesystems - tar or ufsdump
807559Feb 7 2010 — edited Feb 10 2010I need more space in a 240gb partition on a SAN. We cannot increase the current size so I will have to create a new one. The current name (mount point) must remain the same. I had originally planned to use tar, but then was looking at the ufsdump and see that I could use that too. This post is actually 2 parts.
1. I would greatly appreciate it if someone could look at my steps and give me a sanity check on it to make sure I'm not missing anything. And
2. Due to the size of the partition, I am wondering if tar or ufsdump is faster, or better?
Below are the steps. Please assume I have already done the format and newfs on the new partition.
mkdir /temp-data
mount /dev/dsk/c4t0d0s0 /temp-data
cd /data
tar cf - * .??* | ( cd /temp-data; tar xfp -) # or ufsdump 0f - /data | [cd /temp-data; ufsrestore xvf -
]
cd /temp-data
umount /data
#Edit vfstab to mount "Newpartition" on /data
mount /dev/dsk/c4t0d0s0 /data
Any and all suggestions are appreciated!
Thanks