Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Moving filesystems - tar or ufsdump

807559Feb 7 2010 — edited Feb 10 2010
I 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 10 2010
Added on Feb 7 2010
5 comments
321 views