Operating System - HP-UX
1827286 Members
3760 Online
109717 Solutions
New Discussion

Re: HP-UX 11 v3 root parttion extend

 
SOLVED
Go to solution
Shehan
Super Advisor

HP-UX 11 v3 root parttion extend

Hi Team

Please advice how to extend the "/" partition in the hp-ux 11 v3 ?


Regards
Nirukshitha
25 REPLIES 25
Bijeesh
Respected Contributor

Re: HP-UX 11 v3 root parttion extend

Hi,
Normal lvextend command is not recomended,because the /stand, swap and / partitions must be contiguous.
So use advanced optiones in ignite restore.
Refer the below thread.

http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1288400765299+28353475&threadId=1450047
vishnu.khandare
Respected Contributor

Re: HP-UX 11 v3 root parttion extend

Hi Nirukshitha,

Only option to root partition extend is to take ignite install with Advance option.

Please refer below thread.
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1293807

Hope this solves ur query.
Don't forget to assign points.

Regards
Vishnu Khandare
You should deserve before U desire!!!!
SoorajCleris
Honored Contributor

Re: HP-UX 11 v3 root parttion extend

Hi Vishnu,

==> Only option to root partition extend is to take ignite install with Advance option.

This is nonsense. I would give you more than 3 methods to do it without Ignite.


Shehan =

Ignite is one of the method which is easy, but downtime required.

There are some other methods, but all other will require an extra disk and need proper planning.

Please let me us know if you dont have Ignite configured and if you are not willing to opt Ignite.

1.using DRD, white paper is available.
2. you can use pvmove.
3. using mirroring.
4. using lvm maintenance mode = required down time

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
vishnu.khandare
Respected Contributor

Re: HP-UX 11 v3 root parttion extend

Hi Sooraj,

===>This is nonsense. I would give you more than 3 methods to do it without Ignite.

The above words are not allowed as per this forum, I request moderator to take necessary action on this.

Sooraj
can u please explain how root can be extend using mirroring, using pv move?????

Regards
Vishnu Khandare
You should deserve before U desire!!!!
Shehan
Super Advisor

Re: HP-UX 11 v3 root parttion extend

Hi All

I already seen some argument about this in few forums regarding. But I could not figure out extract way to do this without hassle.

I have already done this for hp-ux v1 using ignite, but It is required downtime and also tape drive for backup.

Currently, I don't have tape drive as well as getting the downtime is also bit difficult.

Hence, I would like to know whether we can proceed this in the new hp-ux version using another good method as mentioned.

Regards
Nirukshitha
Kanagaraj
Regular Advisor

Re: HP-UX 11 v3 root parttion extend

Hi Shehan,

Extending root fs in hpux can be done without restoring ignite backup.but you required folloing things,

1. root disk must be mirrored.(lvm mirroring)
2.online JFS should be installed.

(swap, root(/) fs are contiguous)
how to perform.

1.do lvreduce to reduce mirror volume in mirrored disk until root volume.
lvreduce -m 0 /dev/vg00/lvol8 /dev/dsk/cxtxtx (this should mirrored disk)

do this until root disk.(don't reduce for root fs in mirrored disk)

2.reduce root fs in root disk(make sure root fs mirrored and syncd)

3. extend root fs in mirrored disk.

4.Remirror all fs as usual.

5.now all fs mirrored and syncd(wait for syncing)

6.now reduce mirror for all other volume after root fs from root disk.(after sync only you should do)

7.once reduced. remirror again. hopefully this method wll help you.we don't need downtime for this method..only steps need to followed properly.
Kanagaraj
Regular Advisor

Re: HP-UX 11 v3 root parttion extend

Small correction on above post.
do this until root volume(lvol3).(don't reduce for root fs in mirrored disk)
Kanagaraj
Regular Advisor

Re: HP-UX 11 v3 root parttion extend

step 2:2.reduce root fs in root disk(make sure root fs mirrored and syncd)

this may confuse you,,,

reduce mirror of root volume(/) from root disk
HP-UX_Ali
Regular Advisor

Re: HP-UX 11 v3 root parttion extend



Hello Kanagaraj,

Can you explain point no: 6 & 7 in detail and again why we are reducing...


Regards,
Ali
SoorajCleris
Honored Contributor

Re: HP-UX 11 v3 root parttion extend

Hi Shehan,

From the doc, Dynamic Root Disk Administrator's Guide
HP-UX 11i v2, HP-UX 11i v3
HP Part Number: 5992-6590
Published: September 2009
Edition: 1.0


7.7.1.4 Q: Can I change file system sizes when I create a clone?
A: This release of DRD does not provide a mechanism for resizing file systems during
a drd clone operation. However, after the clone is created, you can manually change
file system sizes on the inactive system without needing an immediate reboot. The
Using the Dynamic Root Disk Toolset white paper describes resizing file systems other
than /stand. The Using the DRD toolset to extend the /stand file system in an LVM
environment white paper describes resizing the boot (/stand) file system on an inactive
system image. You can access these white papers at:

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
Aneesh Mohan
Honored Contributor

Re: HP-UX 11 v3 root parttion extend

Hi,

How much you want to extend ? The new addition is more than the space of /tmp ?

If not then you can think of extending root partition (in single user mode) after removing /tmp (make sure you have proper backups) and then create /tmp logical volume.

But the better ways are suggested above use DRD / Ignite .


Aneesh
Aneesh Mohan
Honored Contributor

Re: HP-UX 11 v3 root parttion extend

I above method , I presume /tmp is lvol4 in your system.

Aneesh

SoorajCleris
Honored Contributor

Re: HP-UX 11 v3 root parttion extend

Hi Nirukshitha,

Please find the attached procedure using mirroring , please avoid the above one.

The command and outputs will give your more clarification.

Please note that, it is recommended that you have an Ignite back up when ever you do any modification.

If your system goes down/crash with any reason while doing this activity , you will not have a valid boot disk to boot.

If you dont have a tape drive, you can create a DRD clone as a backup.


Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
SoorajCleris
Honored Contributor

Re: HP-UX 11 v3 root parttion extend

Hi,


pvmove method is something similar to mirror.

move the lvols to other disk
then extend lvol3
then mov back

using single usermod/lvm maintenance mode,

1. take backup of lvol4
2. remove lvol4
4. extend lvol3
5. extend the filesystem.
6. recreate lvol4
7. create the filesytem.
8. restore the backup
9. extend lvol 4 if you required.
10. update lvlnboot

I am really busy and I dont have time to prepare the procedure for this also. I hope this helps.

Regards,
Sooraj

"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
Shehan
Super Advisor

Re: HP-UX 11 v3 root parttion extend

Hi Kanagaraj

I am also unclear step 6 & 7 . Do you mean us to apply same procedures for other logical volume as well in the root disk?


Regards
Nirukshitha
Shehan
Super Advisor

Re: HP-UX 11 v3 root parttion extend

Hi Sooraj

As per your steps, I can not understand steps 7 and 8. In the step 5, It is required to build the mirror, but step 7 , it is required to brake the mirror. What is it ?

Regards
Nirukshitha
Shehan
Super Advisor

Re: HP-UX 11 v3 root parttion extend

Hi Sooraj

I want to extend the "/" root partition which is being already mirrored. Then, do I need to follow all the steps as mentioned?

Regards
Nirukshitha
SoorajCleris
Honored Contributor

Re: HP-UX 11 v3 root parttion extend

Hi Nirukshitha,

Please find the commands if you have already mirrord disk.

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
SoorajCleris
Honored Contributor

Re: HP-UX 11 v3 root parttion extend

I missed lvextend root to increase the size.
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
whiz_kid911
Frequent Advisor

Re: HP-UX 11 v3 root parttion extend

No outage required , if you have online jfs. If you do not have online jfs , do all the following in LVM maintenance mode.
Example, move lvol4 away from lvol3 , thus creating a contegeous space right after lvol3. If you need more space on "/" you will be able to move lvol5 ...6 to the next disk and do the stuff. Do remember to migrate them back to the original disk.

Now, if you have mirrored root vg, then break the mirror before you do this.

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

boot,swap and root are the only lvols that needs a contegeous policy. so , it does not matter where lvol4 is.
whiz_kid911
Frequent Advisor
Solution

Re: HP-UX 11 v3 root parttion extend

where c7t0d6 is a spare disk...
SoorajCleris
Honored Contributor

Re: HP-UX 11 v3 root parttion extend

Hi Nirukshitha

Would you mind if I request you to assign points to the answers if it fulfilled your requirement??

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
Shehan
Super Advisor

Re: HP-UX 11 v3 root parttion extend

Hi Sooraj

Thank you very much for the help. I will try on this and let you know.

Regards
Nirukshitha

SoorajCleris
Honored Contributor

Re: HP-UX 11 v3 root parttion extend

Thanks ,

by the way , go through the link below.

http://forums11.itrc.hp.com/service/forums/helptips.do?#28

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie