1753408 Members
6997 Online
108793 Solutions
New Discussion юеВ

Re: Move a filesystem

 
SOLVED
Go to solution

Re: Move a filesystem

Hi (again...),

Just out of curiosity... Does anyone know if the following would work?:
# lvcreate -n newfs_vol /dev/vg00
# lvextend ... (same size as oldfs_vol)
# umount /oldfs
# dd if=/dev/vg04/roldfs_vol of=/dev/vg00/rnewfs_vol bs=64k
# fsck /dev/vg00/rnewfs_vol
# mount /newfs

That way it would be consistent since the source filesystem is unmounted during copy.
Robert-Jan Goossens
Honored Contributor

Re: Move a filesystem

Hi Hendrik,

Yes that would work ( small adjustement newfs and not extendfs :-)

Falco,

use dircmp to check if both filesystems are the same as in Hendrik's answer.

Regards,
Robert-Jan
Falco_1
New Member

Re: Move a filesystem

Thanks Henrik for your explaination about the size difference between two filesystems, thanks at all....
I executed dircmp and nothing is different, then I think there are no problems.

As soon as possible I will do a reboot.

Thanks again!