1753706 Members
4784 Online
108799 Solutions
New Discussion юеВ

Re: root lvol extending

 
gany59
Regular Advisor

root lvol extending

I have searched in this forumn, to extend the root volume, i got the below steps from the thread

strings /etc/lvmtab |grep c7t0d6
pvcreate -f /dev/rdsk/c7t0d6
vgextend /dev/vg00 /dev/dsk/c7t0d6
lvdisplay -v /dev/vg00/lvol4 |more
lvreduce -m 0 /dev/vg00/lvol4
lvdisplay -v /dev/vg00/lvol4 |more
pvmove -n /dev/vg00/lvol4 /dev/dsk/c0t6d0 /dev/dsk/c7t0d6

lvextend -L 1024 /dev/vg00/lvol3
fsadm -b 1024M /

pvmove -n /dev/vg00/lvol4 /dev/dsk/c7t0d6 /dev/dsk/c0t6d0
vgreduce /dev/vg00 /dev/dsk/c7t0d6

lvextend -m 1 /dev/vg00/lvol4

Now i have the concern like, why we need to move the /opt to the original location, the newly added disk also in the same VG right ? and what is the use for using the
vgreduce /dev/vg00 /dev/dsk/c7t0d6 step after moved the lvol to the previous location.

Thanks in advance!!!!!
4 REPLIES 4
Torsten.
Acclaimed Contributor

Re: root lvol extending

First you need to think about if this is really needed.

Normally it isn't.

Best procedure would be to do a ignite backup and adjust while restore.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Asif Sharif
Honored Contributor

Re: root lvol extending

Hi,

You can have a look at below mentioned LVM recovery document:

http://www13.itrc.hp.com/service/cki/docDisplay.do?admit=109447627+1274095375111+28353475&docId=emr_na-c01037913-4&docLocale=en

see at page 44 "Increasing root lv`s size, unofficial procedure"


BTW Torsten idea sounds better.


Regards,
Asif Sharif
Regards,
Asif Sharif
AnthonySN
Respected Contributor

Re: root lvol extending

Torsten method is the best approach,
especially if its a production server
Vijaykumar_1
Valued Contributor

Re: root lvol extending

lvol3 is normally used for / FS. Its not a best practice to extend /,/stand and the swap volumes using the above method.

Pls back-up the entire system using ignite, then proceed with the FS extension.