Operating System - HP-UX
1838405 Members
3237 Online
110125 Solutions
New Discussion

Re: Successfully extend lvol3 with Online JFS

 
SOLVED
Go to solution
hbhua_231
Advisor

Successfully extend lvol3 with Online JFS

Hi guys,several weeks ago,i Successfully extend lvol3 with OnlineJFS in my rp2470,
the os is 11.11 EOE,i do this only one time,and i have no chance to do that any more.Is this action reliable?

Here is my action.
--------------------------------------------
root@rp2470:/#bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 2097152 103328 1978296 5% /
/dev/vg00/lvol1 298928 30856 238176 11% /stand
/dev/vg00/lvol8 4096000 304200 3762832 7% /var
/dev/vg00/lvol7 3080192 922416 2140984 30% /usr
/dev/vg00/lvol6 1048576 2512 1037960 0% /tmp
/dev/vg00/lvol5 5128192 2471232 2636264 48% /opt
/dev/vg00/lvol4 512000 2304 505720 0% /home
/dev/vg00/test 2097152 922400 1165640 44% /test
root@rp2470:/#
root@rp2470:/#umount /home
root@rp2470:/#lvremove /dev/vg00/lvol4
The logical volume "/dev/vg00/lvol4" is not empty;
do you really want to delete the logical volume (y/n) : y
Logical volume "/dev/vg00/lvol4" has been successfully removed.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
root@rp2470:/#
root@rp2470:/#
root@rp2470:/#lvextend -L 2500 /dev/vg00/lvol3
Warning: rounding up logical volume size to extent boundary at size "2512" MB.
Logical volume "/dev/vg00/lvol3" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
root@rp2470:/#fsadm -b 2500m /
fsadm: /etc/default/fs is used for determining the file system type
vxfs fsadm: /dev/vg00/rlvol3 is currently 2097152 sectors - size will be increased
root@rp2470:/#bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 2560000 103344 2437512 4% /
/dev/vg00/lvol1 298928 30856 238176 11% /stand
/dev/vg00/lvol8 4096000 304192 3762848 7% /var
/dev/vg00/lvol7 3080192 922416 2140984 30% /usr
/dev/vg00/lvol6 1048576 2512 1037960 0% /tmp
/dev/vg00/lvol5 5128192 2471232 2636264 48% /opt
/dev/vg00/test 2097152 922400 1165640 44% /test
7 REPLIES 7
Patrick Wallek
Honored Contributor
Solution

Re: Successfully extend lvol3 with Online JFS

If you don't care about what is on /dev/vg00/lvol4, then this will work fine.

However, why in the world do you want a 2500 MB '/' partition? That is WAY TOO LARGE, as you see from the 4% (approx. 103 MB) usage.
sujit kumar singh
Honored Contributor

Re: Successfully extend lvol3 with Online JFS

hi


so you have deleted /dev/vg00/lvol4 right?
could you post cat /etc/fstab?
do you remember what was there on /dev/vg00/lvol4?


in the bdf i cannot see the /home thats why wanted to see the cat /etc/fstab.

Ok it also might be that you might not have created a separate LV for home.

also going to the root directory after a root login ( that is do a #cd /)
please show #ls -al
and also if you have /home in there please show #ll /home

please post all the outputs of all the commands.

regards
sujit
sujit kumar singh
Honored Contributor

Re: Successfully extend lvol3 with Online JFS

Hi


just a moment /dev/vg00/lvol4 happens to be the /home that keeps the home(login) directories typically for the users on the ssytem.
you must be facing probs with the general user logins.
regards
sujit
hbhua_231
Advisor

Re: Successfully extend lvol3 with Online JFS

Thanks for all your replies.

Yes, after remove lvol4, extend lvol3,i recreate lvol4,and it takes no effect on my
system.

I just want to take a test, maybe is a method to extend lvol3,but in fact ,it's not
an offcial solution.

Thanks again.

Ganesan R
Honored Contributor

Re: Successfully extend lvol3 with Online JFS

Hi,

You are right. The only policy which restrict to extend the root volume(though we have free space on VG) is contigious allocation policy. If you can allocate contigious space system is not going to block you to extend the root volume.

As patrick said, if you are not care about lvol4, then ofcourse the steps will work fine.

Instead of removing the very next volume to root that is lvol4, you can move to some other disk and extend it.

Another way is take the backup of lvol4, remove it. Then extend root and recreate lvol4 on some other place and restore the backup.
Best wishes,

Ganesh.
sujit kumar singh
Honored Contributor

Re: Successfully extend lvol3 with Online JFS

hi


Or you can also try before the lvextend and fsadm the pvmove for the lvol4.

#pvmove -n /dev/vg00/lvol4

this shall automatically move the lvol4 to the free space in the VG vg00, hence making available the Contiguous Space available just after the lvol3, which should then allow you the lvextend of /dev/vg00/lvol3 by the same amount as such.

Or you can add a disk in the VG vg00 and move /dev/vg00/lvol4 to that using
#pvmove -n /dev/vg00/lvol4 /dev/dsk/cXtYdZ /dev/dsk/cAtBdC
where /dev/dsk/cXtYdZ is the disk /dev/vg00/lvol4 is currently residing and /dev/dskv/cAtBdC is the disk you mwant lvol4 to move temporarily.

Also please before attaempting to do this activity make sure that you have an Ignite Backup of the server, in case you might need to roll-back.
regards
sujit
hbhua_231
Advisor

Re: Successfully extend lvol3 with Online JFS

Thanks for your replies.