/usr out of disk space need to unmount/ expand volume /mount


 
Thread Tools Search this Thread
Operating Systems HP-UX /usr out of disk space need to unmount/ expand volume /mount
# 1  
Old 04-09-2009
/usr out of disk space need to unmount/ expand volume /mount

Greetings,
I am running HP-UX 10.2 and /usr is out of disk space already. I installed IE 5.0 for UNIX on my machine under /usr and browsed the Internet for a while and presto no more disk space.
I have plenty of hard disk space on my computer so would like to expand the size of the volume. The problem being is that /usr is mounted and in use and cannot be expanded by SAM.
I need to know which commands to refer to in order to unmount , expand and then mount the volume /usr again.
Respectfully,
Dirk
# 2  
Old 04-10-2009
You should login in single user mode to increase the space for /usr or /tmp or /var mount points.
# 3  
Old 04-20-2009
Hi,

If you have Online JFS, you could do it on the fly. Otherwise you will need to bring to down to single user or use an ignite tape to resize the filesystems. Which means you will still need to bring the system down.

Leslie
# 4  
Old 04-27-2009
Solved?
# 5  
Old 04-27-2009
Yes the problem is solved for now. I resolved the problem by uninstalling Internet Explorer 5 for Unix from the /usr volume (the default) and installed it on its own volume. I tried in vain to expand the /usr volume without any luck. fuser reported that it was in use by root and I don't know how to unmount then expand the volume and mount it again outside of SAM.

Thanks for checking in.
Dirk
# 6  
Old 04-28-2009
The next will be /var unless it was installed with a FS of 2 GB...

A few things: Is your root VG (vg00) mirrored? Which means whatever space left in the VG is to be divided by 2...

/var will be like /usr: SAM uses it... so unless you have OnlineJFS you are to learn "how to" for a few things without SAM, the easy way round is to have a ignite tape, but I suppose you have no DAT device installed?

So its not complicated:
1 - Bring the Box into single user (or boot into single user...)
2 - lvextend -L SSS /dev/vg00/lvolX (SSS in Megabytes...)
3 - umount /dev/vg00/lvolX
4 - extendfs /dev/vg00/rlvolX (notice the "r" in rlvolX)
5 - mount /dev/vg00/lvolX

If it does not automatically backup lvm structure, ->
vgcfgbackup vg00

You should know where the system saves LVM and Filesystem information:
look at /etc/lvmconf /etc/lvmtab /etc/fstab

The commands you need to know for disks and LVM:
pvcreate
pvdisplay
pvchange
vgcfgbackup
vgcfgrestore
vgcreate
vgextend/vgreduce
vgexport/vgimport
vgremove
vgdisplay
lvdisplay
lvcreate
lvextend
lvremove
newfs
extendfs

Not bad for a start? (Read the man pages and feel welcome to ask here if some of it isnt clear...)

Good luck
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to unmount and mount by UUID

Hi, Need a bit of help on this one as I am a scripting noob. I have a linux based NAS that mounts USB hard drives in an inconsistent location and to make matters worse, seems to lose the mount for an unknown reason and doesn't remount automatically unless the drive is removed and re-inserted.... (4 Replies)
Discussion started by: gtr33m
4 Replies

2. Solaris

2540 volume expand and solaris zfs grow

Hello I hope everyone is having a good day! Situation: 2540 with 3.6TB of usable space volume A is 2.6TB volume B was 1TB Volume A is mounted via a single lun on a solaris server and is running out of space. Volume B was used on another server but is no longer, I deleted the volume in... (7 Replies)
Discussion started by: Metasin
7 Replies

3. Solaris

Grow / expand a ZFS volume

Hi, I need to expand a ZFS volume from 500GB to 800GB. I'd like to ask your help to confirm the following procedure: Can I do it on the fly without bothering the users working on this volume? Thank you in advance! (6 Replies)
Discussion started by: aixlover
6 Replies

4. Shell Programming and Scripting

if (disk is mounted) unmount if (disk is unmounted) mount

Hey there, sorry if this is a bit too much of a noob question, trying to get to grips with a simple bash script - but i have done ZERO bash scripting. basically having worked out how to mount and unmount disks using: disktool -m *device* & disktool -e *device* - and looking at the result of... (2 Replies)
Discussion started by: hollister
2 Replies

5. Solaris

How to know used disk space at a mount point?

how to check how much space is occupied when u softmount or hard mount a file? ---------- Post updated at 03:24 AM ---------- Previous update was at 03:24 AM ---------- can anyone send me the answer (2 Replies)
Discussion started by: revathireddy
2 Replies

6. Solaris

Increasing disk space of a mount point.

Hi I have a mount point that is in production environment, and is currently filled up. more space has been presented from same original source (EVA). Problem; 1. Can't see presented space 2. After I discover the presented space, how do I go about adding this new space to existing mount point.... (9 Replies)
Discussion started by: Targ
9 Replies

7. OS X (Apple)

Can't Mount Disk / Image after bad unmount

I have had a little issue with one of my disks, the usb cacble was pulled out and one of the external drives on it would no longer mount. I used First Aid and it verified and repaired both OK / nothing to do). After lots of messing around and not being able to mount I used Drive Genius 2 and that... (1 Reply)
Discussion started by: Cranie
1 Replies

8. HP-UX

Unmount and remove all Logical vol.Volume group and physical disk

Hi, Someone please help me with how i can unmount and remove all the files systems from a cluster. This is being shared by two servers that are active_standby. (3 Replies)
Discussion started by: joeli
3 Replies

9. HP-UX

Cannot unmount mount points??

When taking a snap, I have a script that stops any active snap. When running the script, I'm getting a message that u02 and u04 are already mounted. How can I find out what process(es) is/are latching on the these mount points? Thank you for your time. (1 Reply)
Discussion started by: genzbeat
1 Replies
Login or Register to Ask a Question