1829182 Members
2388 Online
109986 Solutions
New Discussion

Moving a file system

 
SOLVED
Go to solution
Mike Blatsos
Advisor

Moving a file system

I wish to move my file system from disk on a HVD10 (36 GB drives) to a SAN attached EMC 8430 (presenting 8.3 GB drives). I have mirror disk but am unsure of the size differance and being able to mirror them and breaking the mirror???
2 REPLIES 2
Marco Santerre
Honored Contributor
Solution

Re: Moving a file system

If you have MirrorDisk/UX then it will be very easy to actually move your file system over to your new EMC. All you have to do is :

#vgextend /dev/vgname /dev/dsk/EMCdisks
#lvextend -m 1 /dev/vgname/lvname /dev/dsk/EMCdisk
#lvreduce -m 0 /dev/vgname/lvname /dev/dsk/HVDdisk
#vgreduce /dev/vgname /dev/dsk/HVDdisks

That way, you mirror onto your new disks and then break the mirror from HVD so your file system runs from your EMC disks. In this case, whatever size doesn't matter. The only concern you may have is making you have room to grow your Volume Group with the number of disks that you need to add from EMC.
Cooperation is doing with a smile what you have to do anyhow.
Michael Steele_2
Honored Contributor

Re: Moving a file system

Just use:

cp -p -r /old_dir /new_dir

...this way you're relying upon the built in file system safeties.

Sometimes largefiles over 2 gb becomes an issue. In this case you have to use fbackup:

cd /destination

fbackup -i /source -f - | frecover -x -X -f -

(* Note all of the "-" (* dashes *) are important. *)

Raid on a disk array stripes out across several disks, making the concern for disk size irrelevant.
Support Fatherhood - Stop Family Law