You want to use  'resize2fs'.   But you've got some footwork
to do before you jump into that.   Is the new disk pre-blocked?
If it is blocked with 4K blocks  (as CMS FORMAT will give you)
then you can  'dd'  the old disk to the new disk,  and then
'resize2fs'  to enlarge the filesystem found there.

I was amazed to learn that TAR-to-TAR is faster than a 'dd' copy.

If the new disk was formatted by CMS,  then you would simply need
to run a 'resize2fs' on it.   But is this using LDL or CDL?   If CDL,
then you'll want to run  'dasdfmt'  against the new volume,  not use
CMS FORMAT.   Once it is formatted,  even a CDL disk could be
handled with 'dd' plus 'resize2fs'.

But ... if you think about it,  it makes sense,
only a 100% full filesystem would really be copied any quicker
with 'dd' than with 'tar'.   TAR reads only what is in the files.
With the right incantation of options,  it will properly handle
sparse files,  in case you have any.

I hope this helps.

-- R;

Reply via email to