Operating System - HP-UX
1753945 Members
8350 Online
108811 Solutions
New Discussion юеВ

Moving a filesystem from boot disk to VA7410

 
SOLVED
Go to solution
rob nolen
Advisor

Moving a filesystem from boot disk to VA7410

Hi,

I have a filesystem which was originally placed on the boot disk of my L2000. I need to get it off of there as it shouldn't be on the boot disk.

I created a 6gb LV on my array. The original LV on the boot disk is about 900MB.

I then executed dd bs=1024 if=/dev/vg00/roriglv of=/dev/extra/rnewlv.

It's takign a long time to complete, and as of this writing has been running about 5 minutes now...

Am I doing this the wrong way? Any suggestions on how to accomplish this easily?
2 REPLIES 2
Steven E. Protter
Exalted Contributor
Solution

Re: Moving a filesystem from boot disk to VA7410

Shalom rob,

Looks like you did it in a reasonable way.

I'd have set a bigger block size to make the transfer go faster.

It might be faster to use fbackup to back up and frecover to restore the data.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Bill Hassell
Honored Contributor

Re: Moving a filesystem from boot disk to VA7410

The command:

dd bs=1024 if=/dev/vg00/roriglv of=/dev/extra/rnewlv

will run very slowly sine only 1K of data is read and written at a time. Change the bs= to:

dd bs=256k if=/dev/vg00/roriglv of=/dev/extra/rnewlv

and it will run much, much faster. 900megs could take more than a half hour with bs=1024, just a minute or two with bs=256k.

You are correct in using the raw device files for copying, just make sure the source filesystem is not mounted when you copy. If not, you'll have to run fsck to cleanup the destination because the copied lvol had an open directory structure.

Now once you copy the current lvol to the new lvol, you'll have to inform the filesystem that it can be extended to fit the new disk space. Use extendfs on the unmounted raw lvol, then mount it and run bdf to verify the size.


Bill Hassell, sysadmin