Operating System - HP-UX
1753858 Members
7737 Online
108809 Solutions
New Discussion юеВ

Reduction of LV for the /var and /opt directories

 
SOLVED
Go to solution
MarkSyder
Honored Contributor

Re: Reduction of LV for the /var and /opt directories

1. mv mydir mydir.old

2. Go into SAM -> discs and filesystems -> Logical volumes -> create. Create an lvol that you think will be big enough to take the contents of mydir.old, preferably not on the os disc. Name the filesystem /mydir

2. cd mydir.old
find . ├в xdev ├в depth ├в print|cpio ├в pmd /mydir

Once this has finished, monitor for a while and then delete mydir.old and all its contents.

Mark
The triumph of evil requires only that good men do nothing
Phillip Popp
Regular Advisor

Re: Reduction of LV for the /var and /opt directories

Thanks Mark,
I really appreciate this help. Just one thing, I can not read step two in your directions.

2. cd mydir.old
find . ├Г┬в├В ├В xdev ├Г┬в├В ├В depth ├Г┬в├В ├В print|cpio ├Г┬в├В ├В pmd /mydir

I do not understand the a and squares, the characters must not be translating correctly or something?

Could you please resend

And thanks again for for all your time!!
MarkSyder
Honored Contributor

Re: Reduction of LV for the /var and /opt directories

That's what I get for copying and pasting from a M$ Word document!

find . -xdev -depth -print|cpio -pmd /mydir

Mark
The triumph of evil requires only that good men do nothing
MarkSyder
Honored Contributor

Re: Reduction of LV for the /var and /opt directories

Phil,

One final point (for which I want no points).

I'm grateful for the points you've given to me, but other people have tried to help. When I ask a question I always give a minimum of 3 points to every genuine attempt to help, even if it didn't help at all. Some good people have given you some good answers and they deserve points!

Mark
The triumph of evil requires only that good men do nothing