1829894 Members
2616 Online
109993 Solutions
New Discussion

Extend Root VG

 
SOLVED
Go to solution
Steven Chen_1
Super Advisor

Extend Root VG

I am planning to extend root vg by moving Oracle db around and wiping out one physical disk. In my situation, I need to go down to single user mode to do lvextend and extendfs later. My question is if whether I can do vgexport/pvcreate/vgextend on single user mode, or I have to do them normally when system is fully functional.

Any comment is appreciated.

Steven

Steve
5 REPLIES 5
Kent Ostby
Honored Contributor
Solution

Re: Extend Root VG

Yes .. you can do them in single user mode or even lvm maintanence mode ...

"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Mitra Rath
Occasional Advisor

Re: Extend Root VG

Hi Steven,
I am sorry to say that u canot extend ur root vg just by simply going to single user mode........U need to take a ignite backup and boot from the tape and do the changes to ur root vg....But remember ur mirroring part will not be done,u have to do it manually after u have changed ur root vg size and ur restoring ur system atleast to a bootable stage....And do remember to take ur entire system dat backup...If any other help needed please post....

Mitra
Steven Chen_1
Super Advisor

Re: Extend Root VG

in single user mode, only / and /stand are mounted. To do what I need, do I have to mount /usr first?

By the way, after wiping out the physical disk, do I have to manually rm fstab entry for that disk?

example, the disk to wiped out:
/dev/vg02/lvol1 /disk2 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2

After vgexport/pvcreate/vgextend, would this entry be gone by system itself? Aafter I do lvextend/extenfs, what be in the fstab for the extended vg (from this disk, not root disk)?

Steve
Hoang Chi Cong_1
Honored Contributor

Re: Extend Root VG

Hi
Yep!
Recommend from HP is: Backup the OS after extend root filesystem.
You can do with "make_tape_recovery -A" command.
Take a look with these threads, them may help you:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=505209
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=97821

Goodluck to you
Regard,
HoangChiCong
Looking for a special chance.......
Isralyn Manalac_1
Regular Advisor

Re: Extend Root VG

Hi Steven,

If I understood your question right, you need to extend your root VG but that the second disk still has data in it (as disk to be wiped out entry in your last post). If that's the case, then you need to lvremove the lvol first, then do a vgremove of the VG contained in that disk. Format the disk through pvcreate (use the -B option if you need to make the disk bootable). Then you do your vgextend.

As to the question on whether you can do this using single user mode, yes you can. You need to mount /usr first though. In lvm maintenance mode, you can do this as well.

Good luck!

Regards,

Isralyn