Operating System - HP-UX
1827428 Members
3926 Online
109965 Solutions
New Discussion

Re: lvextend command is failed

 
Mousa55
Super Advisor

lvextend command is failed

Hi
i have the rp8420 ux server (11.11i), the lvol3 which include â / â file in this server is full (100%).
I tried to extend the lvol3 from SAM, but there message error appeared
The summary of this message , the lvextend command is failed and the logical volume has not been extent.
Note: I have 22GB available space on disk
You can find the attachment file
16 REPLIES 16
Hasan  Atasoy
Honored Contributor

Re: lvextend command is failed

hi nejad ;
please post
lvdisplay /dev/vgname/lvol3
vgdisplay -v vgname.

Hasan
Mousa55
Super Advisor

Re: lvextend command is failed

hi
you can find the attachment

thanks and best regards
Hasan  Atasoy
Honored Contributor

Re: lvextend command is failed

hi nejad ;
you cannot extend / filesystem by simple lvextend and extendfs commands.
you need to find which files filling /.
it is possible to share also
du -sk /*
Mousa55
Super Advisor

Re: lvextend command is failed

Hi
How to solve this problem, and find the failer file.

root@ruxtstap > du -sk /
99317105 /

thanks and best regards

Robert-Jan Goossens
Honored Contributor

Re: lvextend command is failed

Hi Nejad,

Please provide the output of

# du -kx / | sort -rn | head -30

Regards,
Robert-Jan
Mousa55
Super Advisor

Re: lvextend command is failed

hi
this the output

root@ruxtstap > du -kx / | sort -rn | head -30
1042024 /
902808 /u02
606368 /u02/CA_CD
187160 /u02/CA_CD/UNIX
174464 /u02/CA_CD/IntelNT
91336 /etc
65536 /u02/CA_CD/IntelNT/NTAgent
62504 /u02/CA_CD/Intel64
60160 /u02/CA_CD/Intel64/NTAgent
59904 /etc/vx
50856 /u02/CA_CD/X64
49800 /u02/CA_CD/X64/NTAgent
45296 /u02/CA_CD/UNIX/solaris
45032 /u02/CA_CD/doc
42632 /sbin
39624 /u02/CA_CD/IntelNT/9xAgent
35504 /u02/CA_CD/IntelNT/Oracle.DBA
30336 /u02/CA_CD/IntelNT/LICENSE
29480 /etc/vx/type
29392 /etc/vx/static.d
28680 /etc/vx/static.d/build
27776 /u02/CA_CD/UNIX/hp
27152 /u02/CA_CD/UNIX/s86
24928 /u02/CA_CD/UNIX/aix
24064 /u02/CA_CD/UNIX/solaris26
23416 /u02/CA_CD/UNIX/tru64
23024 /etc/opt
20600 /u02/CA_CD/Install
20176 /u02/CA_CD/Linux
18464 /u02/CA_CD/NWAgent

thanks
Robert-Jan Goossens
Honored Contributor

Re: lvextend command is failed

Hi Nijad,

/u02/CA_CD +/- 900mb --> looks like you copied an installation cd into the root filesystem.

either move this to an other filesystem or create a filesystem for this data.

Regards,
Robert-Jan
Mousa55
Super Advisor

Re: lvextend command is failed

hi
i can't mouve this data or create new filesystem for this data.
how to solve this problem without moving any data.
thanks and best regards
Robert-Jan Goossens
Honored Contributor

Re: lvextend command is failed

You can´t solve it without moving the data.

Just a tought.

You have plenty of space in /opt.

# mv /u02 /opt
# ln -s /opt/u02 /u02

Now you have a link in / to the software in /opt/u02.

Robert-Jan
Mousa55
Super Advisor

Re: lvextend command is failed

Hi
And what in regard to this message in file attached
thanks
Robert-Jan Goossens
Honored Contributor

Re: lvextend command is failed

/dev/vg00/lvol3 -- / filesystem has to be contiguous.

You can only extend /root filesystem if you use an Ignite backup tape/server and restore that image with the advanced option to a larger root filesystem.
Srimalik
Valued Contributor

Re: lvextend command is failed

Hi, Nejad

As you have free space in the vg , what you can do is:

1. Create a new lv with filesystem on it
2. move your data("/u02") to /opt (or smwhere else)

3. Mount the new lv on /u02

4. mv the data from saved location to /u02

Thanks
Sri
abandon all hope, ye who enter here..
Mousa55
Super Advisor

Re: lvextend command is failed

Hi
i am move the data and now i have 86% free space
but the error message of lvextend is still.
how to solve this problem
thanks
Raj D.
Honored Contributor

Re: lvextend command is failed

Hi Nejad,

I undestand that you are trying to extend vg00/lvol3 , as lvol3 is the root filesystem, you cannot extend it directly, you need to have special steps for that.
1. Boot from ignite-ux media, and extend recover.
2. reinstall and restore back.

Hope this helps,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
F Verschuren
Esteemed Contributor

Re: lvextend command is failed

the problems seems to be solved, next time porperly the new filesystem wil be full and that one can be extended.

to be sure there are no more other potential problems, can you post a new:
du -kx / | sort -rn | head -30

Mousa55
Super Advisor

Re: lvextend command is failed

Hi
i have now space in the / file Because i move the more data from it.

# du -kx / | sort -rn | head -30
139616 /
91696 /etc
59904 /etc/vx
42640 /sbin
29480 /etc/vx/type
29392 /etc/vx/static.d
28680 /etc/vx/static.d/build
23024 /etc/opt
12000 /etc/vx/type/static
11272 /etc/opt/resmon
8824 /etc/vx/type/gen
7552 /etc/opt/resmon/lbin
6528 /etc/vx/type/raid5
5904 /sbin/fs
4616 /etc/lvmconf
4560 /etc/opt/wbem
4544 /etc/opt/wbem/mof
3696 /etc/opt/mx/config
3696 /etc/opt/mx
3496 /sbin/fs/vxfs
3352 /.VRTSob
3328 /.VRTSob/extensions
2296 /etc/opt/cifsclient
2264 /etc/opt/resmon/log
2248 /etc/opt/cifsclient/unitables
2120 /etc/vx/type/fsgen
1768 /sbin/fs/hfs
1304 /sbin/init.d
1184 /.dt
1064 /etc/opt/resmon/lib
thanks