Operating System - HP-UX
1752777 Members
6148 Online
108789 Solutions
New Discussion юеВ

To increase Logical volume/

 
SOLVED
Go to solution
RSalyRosas
Occasional Contributor

To increase Logical volume/

Like podria to increase the space by the root/, when I do bdf 100%, that steps I must segir. Thanks for a the aid I have space available
8 REPLIES 8
Arunkumar.B
Trusted Contributor

Re: To increase Logical volume/

Hi,

Your Query is not much clear.Anyway if ur asking how to increase the root Filesystem.There is no way for increasing the root & stand filesystem.You will to boot through ignite tape & u can increase the root filesystem


With Cheers
Arunkumar.B
Necessity breaks iron
Florian Heigl (new acc)
Honored Contributor
Solution

Re: To increase Logical volume/

Hi,

a bit of bad news:

- it is tricky and unsupported to extend the logical volume containing / (root)
- it's impossible to extend any filesystem that has a 100% usage, as the file system driver can't allocate space to take note of the extension.
- 100% root is usually caused by a software, hardware or configuration issue, mostly an overgrowing file.
If You delete it, while it is still being accessed, NO space will be freed.

See the following thread (from two days ago) for a few tips debugging the issue:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1030393

or just come back with the output of

du -kx / | sort -rn | head -50

find / -xdev -size +20000 -exec ls -l {} \;


We should be able to help You given that information.
yesterday I stood at the edge. Today I'm one step ahead.
Chauhan Amit
Respected Contributor

Re: To increase Logical volume/

Hello,

a) Only way to increase root is via ignite tape as suggested above.

Best Solution would be to try and find out the files which are causing root file system to be full and either move them to other empty file system or deletethem if not required. Following commands will be able to help you in achieving the same:

Root File System Full :

├в ┬в Check What all directories are there in root
├в ┬в Check which directory is consuming space
du ├в sk
once you are able to locate , run the following command
├в ┬в Check du ├в xk
├в ┬в To find any file in root file system more than 10 MB
find / -size +10000000c -print


-Amit
If you are not a part of solution , then you are a part of problem
Florian Heigl (new acc)
Honored Contributor

Re: To increase Logical volume/

*whispers*
Please don't advise people to move / delete files without checking if they are still open. files open in / usually can't be very simply freed, especially after deleting them :p
yesterday I stood at the edge. Today I'm one step ahead.
MarkSyder
Honored Contributor

Re: To increase Logical volume/

The two most likely causes of the root filesystem being full are:

1. an attempt to backup to tape that actually created a large file in /dev

2. stuff in / that should be in a different filesystem.

Look firstly for option 1. A large file might start with rmt or be in the rmt directory.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Sivakumar TS
Honored Contributor

Re: To increase Logical volume/


Hi,

The suggested method to increase the root filesystem would be take a Ignite backup and restore it after changing the root disk layout.

Regards,

Siva.
Nothing is Impossible !
rariasn
Honored Contributor

Re: To increase Logical volume/

Hi Netcomp,

- Verify applications instaled in "/" file system. Create independents FS for this applications.

- Sample,

# lvcreate -n lvapp100 vg00
# lvextend -L 250 /dev/vg00/lvapp100
# lvextend -m 1 /dev/vg00/lvapp100
# newfs /dev/vg00/rlvapp100
# mkdir /tmp/app100
# mount /dev/vg00/lvapp100 /tmp/app100
Shutdown "APP100"
# cd /app100
# find . -depth -print | cpio -pdm /tmp/app100

# rm -r /app100
# mount /dev/vg00/lvapp100 /app100

Modify file /etc/fstab for execute mount in the server start, if necessary.

rgs,

ran


# cd /apps100


rgs

ran
Sp4admin
Trusted Contributor

Re: To increase Logical volume/


Hello,

first try to find out whats filling up root. I wold start looking for any newly created files. Some time application folks will move some files and not realize that they are filling /root. I agree with guru's above of using an ignite tape to increase the size. I though root should always stay the same size.


My $0.02

Sp