Operating System - HP-UX
1836385 Members
3669 Online
110100 Solutions
New Discussion

Re: Will pvmove work with /usr and /opt ??

 
SOLVED
Go to solution
Janet L White
Occasional Advisor

Will pvmove work with /usr and /opt ??

I am trying to clean up a mess... hpux 11.11 with online jfs
vg00 consists of 2 8gb disks (internal)one of them is a mirror, and 4 LUNS of an autoraid (/usr and /opt only). There is an /apps directory on the internal disk vg00. I would like to remove the /apps then re-create on a different vg, then pvmove the extents used on the autoraid disks to the internal disks and have all vg00 on one disk (then mirrored on second internal)where it belongs. Will a pvmove work with /usr and /opt or do I have to make_recovery and "re-build" vg00 on one disk ? Thank you for your time.
Janet
7 REPLIES 7
Patrick Wallek
Honored Contributor
Solution

Re: Will pvmove work with /usr and /opt ??

pvmove will work fine for this.

There is no need here to rebuild using Ignite.
Paul Sperry
Honored Contributor

Re: Will pvmove work with /usr and /opt ??

yes pvmove will work with /usr and /opt
Janet L White
Occasional Advisor

Re: Will pvmove work with /usr and /opt ??

GREAT!! do you suggest single user mode? (I have never done a pvmove before). Thanks again.
Marco Santerre
Honored Contributor

Re: Will pvmove work with /usr and /opt ??

Janet,

From what I understand of your problem, pvmove won';t be your answer as pvmove moves extent to extent to a different disk. If you're trying to move /usr and /opt to a different disk and that disk is also used as your root and other things as well, you would just clobber everything that is on there with a pvmove. You probably don't need to do a make_recovery as you can probably backup and restore, but I would definitely recommend a make_recovery.
Cooperation is doing with a smile what you have to do anyhow.
Marco Santerre
Honored Contributor

Re: Will pvmove work with /usr and /opt ??

Oops, maybe I understand this wrong sorry
Cooperation is doing with a smile what you have to do anyhow.
Patrick Wallek
Honored Contributor

Re: Will pvmove work with /usr and /opt ??

No, you don't need to be in single-user mode to do this either. It could be done online during the day.

I would use the '-n' option to pvmove to move only the extents for the LVOL you want to the new disk.

Have a look at the pvmove man page for some good examples.
Janet L White
Occasional Advisor

Re: Will pvmove work with /usr and /opt ??

Thank you!!!