reducing /usr HP-UX 11i


 
Thread Tools Search this Thread
Operating Systems HP-UX reducing /usr HP-UX 11i
# 1  
Old 01-24-2008
reducing /usr HP-UX 11i

Hi,

I've entered the HP-UX 11i server in single user mode, and increased the filesystem /usr by mistake using

lvextend -l 3092 /dev/vg00/lvol7
extendfs /dev/vg00/rlvol7

I put small letter "l" instead of "L".
and as a result of this mistake the /usr take all the free space in the volume group.

I don't have onlineJFS to make online reduce.
and i've a plenty of space at other file system.

this server is hp-blade which means i don't have cdr-rom, tape.

any idea how to reduce the /usr without using onlineJFS or reinstalling OS?

Thanks
# 2  
Old 01-24-2008
As root Copy the filesystem in another one e.g.
cd /usr; find. -print| cpio -dpuml /<backup-copy-filesystem>
Ah but you did an extendfs...
So when you say you have plenty of space on another filesytem do you mean you have no more free PE ?
Which case you will have to do the above to where you have room:
cd /;
find usr -depth|cpio -xdump /<where you can spare the space>
umount /dev/vg00/lvol7;
I imagine now you have not much choice:
rmdir /usr
ln -s /<where you copied usr> /usr

And now test!!

If all is fine and works
You will have to remove the logical volume and recreate it then do the copy the other way round by mounting lvol7 on lets say /usr2 in order to do the transfer then remove the link and mount lvol7 on /usr (dont forget the mkdir...)

Good luck
# 3  
Old 02-14-2008
vbe,
You mean that we run this command in single user mode or multimode? One more thing. From the commands that you give, is this possible to aplly for lvreduce also?

Quote:
cd /;
find usr -depth|cpio -xdump /<where you can spare the space>
umount /dev/vg00/lvol7;
I imagine now you have not much choice:
rmdir /usr
ln -s /<where you copied usr> /usr
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Reducing / on rootvg

The root filesystem was mirrored, someone/something stopped mirroring, and increased / and /home to ridiculous values (/ got increased to 102gb and its only using 4.3gb, so 98gb is free). Can I reduce the / (/dev/hd4) filesytem down WITHOUT corrupting the the OS? I would do a: chfs -a size=10g... (6 Replies)
Discussion started by: mrmurdock
6 Replies

2. OS X (Apple)

OSX: ./Users/myname OR. /usr/myname ? 1) what is the truth on UNIX ./usr/ directory.

OSX uses its own directory strecture on the BSD core, for example /Users/Bob_Alice/. but legacy Unix structure /usr/... remains. Adding confustion, some Unix books say /usr/ was never intended for specific users. and others show it being used for Bor or Alice. I am not sure where to put my third... (5 Replies)
Discussion started by: michaelayres
5 Replies

3. BSD

FreeBSD: /usr/bin/ld not looking in /usr/local/lib

I'm not sure if this is the default behavior for the ld command, but it does not seem to be looking in /usr/local/lib for shared libraries. I was trying to compile the latest version of Kanatest from svn. The autorgen.sh script seems to exit without too much trouble: $ ./autogen.sh checking... (2 Replies)
Discussion started by: AntumDeluge
2 Replies

4. Shell Programming and Scripting

ksh - Need Help Reducing Nested Loops

Hello, I pulled out some old code from an unfinished project the other day and wanted to stream line it better. I know anything beyond a double loop is usually bad practice, and I came up with some logic for later that would no longer require the first loop in the following code that works: ... (5 Replies)
Discussion started by: Azrael
5 Replies

5. Solaris

Reducing threads on T5140

Hi All, We have a T5140 server which has 128 threads in total. Is it possible to reduce the number of threads per core through some configuration changes? I am sorry for being so naive but I am one on this. Why would I like to do this? Unfortunately we have this for an Oracle Database Server... (6 Replies)
Discussion started by: VENKITACHALAMS8
6 Replies

6. Solaris

How do I link ld in /usr/ucb/ to /usr/ccs/bin?

Hi all, below is the problem details: ora10g@CNORACLE1>which ld /usr/ucb/ld ora10g@CNORACLE1>cd /usr/ccs/bin ora10g@CNORACLE1>ln -s /usr/ucb/ld ld ln: cannot create ld: File exists ora10g@CNORACLE1> how to link it to /usr/ccs/bin? (6 Replies)
Discussion started by: SmartAntz
6 Replies

7. Shell Programming and Scripting

Reducing Backup Time

$ /backup_restore/backupDatabase -b 128 -s 45056000 -non-interactive The above command is usually ran through cron on a daily basis. However it takes 2hrs to complete. The tape is usually inserted into the V890 server, and cron kicks off the backup around 1:10AM. It completes around 3:30 -... (0 Replies)
Discussion started by: ravzter
0 Replies

8. UNIX for Dummies Questions & Answers

Reducing file names

I have a script which includes an FTP. The filename is too long for my target area. The filename is HD012_ABCD_EFGH_061004_F_300_40. I need to the filename to be HD012_ABCD_EFGH_061004_F_. Any ideas. (5 Replies)
Discussion started by: paul1s
5 Replies

9. AIX

Reducing Lvol on AIX5.3

Hi folks, I known how to incrase and reduce File System size on AIX 5.3, but my issue is that I have a Logical Volume without any filesystem. So, how to shrink just the logical volume ? Thanks, Livio. (5 Replies)
Discussion started by: Livio
5 Replies

10. UNIX for Dummies Questions & Answers

Script for reducing logs

Hi, I'm not good in scripting, maybe someone can help me. I need to delete the lines that contains the last month date from a text file. Each line has the following date format: So the script should check the actual month, and delete all the lines that contains the past month. The script runs... (2 Replies)
Discussion started by: piltrafa
2 Replies
Login or Register to Ask a Question