Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Moving a file system 1

Status
Not open for further replies.

jocasio

IS-IT--Management
Oct 11, 2002
88
US
Hey guys,

I was hoping someone could help me out. I have an HP 9000 K380 and I want to know how to move filesystems.

I have 4 vgs.

/home is mounted on vg03 and takes up 2000MB

I want to mount it on vg04 where I have 3000MB free. I understand that cpio would do the trick, but can anyone provide me with details on how to use this command?

Any help will be greatly appreciated!
Thanks

jocasio
 
Make sure you have the logical volume for the new /home created in vg04 and mounted as something like home.new

Then do the following:


# cd /home

# find . | cpio -pudlmv /home.new

Once you are done:

# umount /home
# umount /home.new

Modify your /etc/fstab so that it now mounts /home from the vg04 lvol, remount /home (from the vg04 lvol) and you are set.
 
Hey,

Thanks for the reply. So I have to unmount both file systems and then remount the new one to vg04? How do I rename it back to /home? I think I'm a bit confused...

Please help.

Thanks

jocasio
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top