Operating System - HP-UX
1832531 Members
8464 Online
110043 Solutions
New Discussion

Reduce cluster aware lvol by OnlineJFS

 
SOLVED
Go to solution
Rgomes
Valued Contributor

Reduce cluster aware lvol by OnlineJFS

Hi All,

We have to reduce 6 lvols distributed in 3 VGs.
All are 70GB in size. Final size of these lvols will be 50GB.

1)What are the precautions?
2)What needs to be done if I use OnlineJFS?
3)What would be the best way to take backups before reducing of these lvols?

Thanks in advance,

Richard


9 REPLIES 9
melvyn burnard
Honored Contributor
Solution

Re: Reduce cluster aware lvol by OnlineJFS

1) have good backups, and ensure you are patched very well.
2) Read the OLJFS man pages and maulas.
3) that depends, But I would suggest fbackup, as this allows you to do a test using frecover and hte -N option which does everything except actually write to hte discs.

ServiceGuard itself is not worried, as metadata like the lv size is keopt on the disc, but I do recommend you consider taking hte package(s) down and reactivating the vg using vgchange -a e as this will prevent acces during your resize, an dhopefull speed it up.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Sunil Sharma_1
Honored Contributor

Re: Reduce cluster aware lvol by OnlineJFS

Hi,

You should have good backup copy of all volumes. rest nothing much is required you can do it online, becoz Service guard is not worried about volume size.

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Rgomes
Valued Contributor

Re: Reduce cluster aware lvol by OnlineJFS

Hi Melvyn,

Thanks for your reply.

1) For fbackup, how much time it would take to perform backup of 70GB file system to ultrium 215?
Regarding patch, Support tools of March'2002 in installed.
2)Are these steps ok?:
Reduce the directries:
Only file systems which are multiple of 32MB can be reduced online (it depends on the allocated extent distribution). A backup
before execution is recommended
# fsadm ???F vxfs ???d ???D ???e ???E
-d perform directory defragmentation
-e perform extent defragmentation
# fsadm ???F vxfs ???b
-b set new file system size to n KB
# lvreduce ???L /dev/vgXX/lvolX
-L set new size of lvol to n MB

As these directories are 70GB in size, I guess we can reduce it 50GB. 70GB can be divided by 32MB.

Other than this, what is the regular procedure for reducing lvols in SG environment?

Thanks again,

Richard
Bernhard Mueller
Honored Contributor

Re: Reduce cluster aware lvol by OnlineJFS

Reducing the filesystem size using fsadm will probably not work with vxfs 3 (HP-UX 11.0).

If you are on 11.11 you have vxfs 4, then it should work.

Bernhard
Rgomes
Valued Contributor

Re: Reduce cluster aware lvol by OnlineJFS

Hi Burnhard,

I have 11i. But, what actually you ment by vxfs 4.0. I only know OnlineJFS ver 3.3.

best regards

Richard
Bernhard Mueller
Honored Contributor

Re: Reduce cluster aware lvol by OnlineJFS

Richard,

assuming you have a standard installation:
# fstyp -v /dev/vg00/lvol3 | grep version

will tell you "version 3" for HP-UX 11.0 and "version 4" for HP-UX 11.i

What browser do you use to browse this forum?

Regards,
Bernhard


melvyn burnard
Honored Contributor

Re: Reduce cluster aware lvol by OnlineJFS

If I remember correctly, JFS 3.3 is also known as vxfs type 4
do fstyp -v on a logical volume, and look at the version number.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Rgomes
Valued Contributor

Re: Reduce cluster aware lvol by OnlineJFS

Hi Burnhard/Melvyn/Sharma

Thanks a lot. Yes, I do have vxfs 4.0.And I'll try to reduce lvol size by OnlineJFS.

But how can I give you point?

Thanks

Richard
Rgomes
Valued Contributor

Re: Reduce cluster aware lvol by OnlineJFS

Thanks!

rg