Operating System - HP-UX
1753969 Members
7259 Online
108811 Solutions
New Discussion юеВ

Re: Need to extend /dev/vg00/lvol3 "/" mount point

 
Geoff Wild
Honored Contributor

Re: Need to extend /dev/vg00/lvol3 "/" mount point

As others have said - ignite is the preferred/best way to resize your vg00.

I have exteneded root when the next lvol was home - by creating a new /home, lvremoving the old home lvol, then extending /

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Joe Profaizer
Super Advisor

Re: Need to extend /dev/vg00/lvol3 "/" mount point

Thanks.
My next lvol is mount point /tmp. I could dismount it and move it, however I have the following processes active. Can I shut these down and restart them after I move /tmp?

# fuser -uc /tmp
/tmp: 1112o(root) 1121o(root) 1129o(root) 1145o(root) 1765o(root)

(stlpora4:/)
# ps -ef|grep 1112
root 1112 1 0 Jan 21 ? 0:00 /usr/sbin/hp_unixagt
root 10526 8494 0 11:43:05 pts/0 0:00 grep 1112
(stlpora4:/)
# ps -ef |grep 1121
root 1121 1 0 Jan 21 ? 0:03 /usr/sbin/ipv6agt
root 13395 8494 0 11:43:19 pts/0 0:00 grep 1121
(stlpora4:/)
# ps -ef|grep 1129
root 1129 1 0 Jan 21 ? 0:04 /usr/sbin/mib2agt
root 13406 8494 0 11:43:28 pts/0 0:00 grep 1129
(stlpora4:/)
# ps -ef|grep 1145
root 1145 1 0 Jan 21 ? 0:00 /usr/sbin/trapdestagt
root 13410 8494 0 11:43:37 pts/0 0:00 grep 1145
(stlpora4:/)
# ps -ef|grep 1765
root 1765 1 0 Jan 21 ? 0:12 /opt/VRTSob/bin/vxsvc -r /opt/VRTSob/config/Registry
root 13412 8494 0 11:43:43 pts/0 0:00 grep 1765


Thanks!
James R. Ferguson
Acclaimed Contributor

Re: Need to extend /dev/vg00/lvol3 "/" mount point

Hi Joe:

If the log '/etc/Navisphere/log/navimon.log' is large and giving you space constraints, consider making it a symbolic link to a file that resides (for instance) in '/var'.

Regards!

...JRF...
Lolupee
Regular Advisor

Re: Need to extend /dev/vg00/lvol3 "/" mount point

Joe,

follow this step. create another lvm for the lvol4 and lvol5. Then tar the data unto the newlvols after mounting. If those file systems lvol4 and lvol5 are not being used, then juggle the names around and i.e filesystems names, umount lvol3 and lvol4. then delete to free space and extend your lvol3.

This will only work if you are sure the next space to lvol3 is actually being used by lvol4 and lvol5.

You cannot move files since you have only 2 drives that are mirrored. This lvol4 and lvol5 are presently on those drives.
The other way which is not advisable is to remove the mirrors on lvol3 and lvol4.

Then the trickish part and this must be carefully done.
remove lvol4 and lvol4 mirror. lvol3 reside in drive A and lvol4 reside in drive B
Since you have removed lvol4 from drive A, the nest sectors would be free for lvol3 up to the space for lvol4 size. this is very clumsey because you would not be able to mirror the lvol3 which is important to file system again.

So the best advise is to use the former.

create new FS for lvol4 and lvol5.
tar content of lvol4 and lvol5 to the new FS
umount lvol4 and lvol5 and confirm newlvols are working well.

remove lvol4 and lvol5
extend lvol3 upto the size of lvol4 and lvol5.

You must not delete lvol4 before creating newlvol5, else the newlvol5 would occupy the space you just created.

However, you may extend lvol3 after deleting lvol4.

hope you are not confused.
Nguyen Anh Tien
Honored Contributor

Re: Need to extend /dev/vg00/lvol3 "/" mount point

There is no way to extend / in HP-UX 11.11 and below verion because / file system is HFS type.
If you use HP-UX 11.23 you can extend it online
The best way to extend it is ignite:
1, Ignite all lvm in vg00
2, restore it. At beginning step you can extend / file system
HTH
tienna
HP is simple
Shameer.V.A
Respected Contributor

Re: Need to extend /dev/vg00/lvol3 "/" mount point

Hi Joe,

It is possible. You can use the un-official procedure for extending root/swap in your case .. I'm attaching a document for the same. It's having official (through Ignite-Ux) & Un-Official ( Through Manual Copy of vg00).

Hope this will help you..

Shameer
.... See invisible, feel intangible and achieve impossible as everything is possible ....
Mohd Rasidi Che Mat
Frequent Advisor

Re: Need to extend /dev/vg00/lvol3 "/" mount point

this is what i did.
assumption:
primary disk - /dev/dsk/c2t1d0
secondary disk - /dev/dsk/c2t0d0
lvol1 - lvol6

unmirror lvol4-lvol6 from primary disk (to provide contiguous free space for lvol3)
#lvreduce -m 0 /dev/vg00/lvol4 /dev/dsk/c2t1d0
#lvreduce -m 0 /dev/vg00/lvol5 /dev/dsk/c2t1d0
#lvreduce -m 0 /dev/vg00/lvol6 /dev/dsk/c2t1d0

unmirror lvol3 from secondary disk (if not done lvol3 extension will fail because contiguous space is not freed yet on secondary disk)
#lvreduce -m 0 /dev/vg00/lvol3 /dev/dsk/c2t0d0

verify lvol4-lvol5 in /dev/dsk/c2t0d0
#lvdisplay -v /dev/vg00/lvol4
#lvdisplay -v /dev/vg00/lvol5
#lvdisplay -v /dev/vg00/lvol6

verify lvol3 in /dev/dsk/c2t1d0
#lvdisplay -v /dev/vg00/lvol3

increase lvol3
#lvextend -L 1024 /dev/vg00/lvol3
#fsadm -F vxfs -b 1024m /

mirror back the lvol4-lvol6 on primary disk
#lvextend тАУm 1 /dev/vg00/lvol4 /dev/dsk/c2t1d0
#lvextend тАУm 1 /dev/vg00/lvol5 /dev/dsk/c2t1d0
#lvextend тАУm 1 /dev/vg00/lvol6 /dev/dsk/c2t1d0

 

unmirror lvol4-lvol6 from secondary disk (to provide contiguous free space for lvol3)
#lvreduce -m 0 /dev/vg00/lvol4 /dev/dsk/c2t0d0
#lvreduce -m 0 /dev/vg00/lvol5 /dev/dsk/c2t0d0
#lvreduce -m 0 /dev/vg00/lvol6 /dev/dsk/c2t0d0

FIRST, mirror vol3 to secondary disk then followed by others
#lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c2t0d0
#lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c2t0d0
#lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c2t0d0
#lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c2t0d0