Operating System - HP-UX
1834936 Members
2266 Online
110071 Solutions
New Discussion

Re: Convert root disks from VxVM to LVM

 
SOLVED
Go to solution
Jaap Westerbeek_2
Occasional Advisor

Convert root disks from VxVM to LVM

I have a server with hp-ux 11.11
2 root disks installed striped
/dev/rdsk/c1t15d0
/dev/rdsk/c3t15d0

I want to extend the /usr filesystem, but appearantly I need a Veritas license to do this (is this correct ?)

I will not be able to acquire a licence on short notice, so I want to convert these disks to LVM.

I've tried vxvmconvert, but it can only rollback to LVM (these disks where never LVM)

I've also been reading about pvcreate,vxdiskunsetup etc. but these only work when you don't mind complete data loss and just want to re-create.

I want to maintain all data on these disks.

Please help me out guys
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: Convert root disks from VxVM to LVM

I'm not all that familiar with VxVM but I find it surprising that you would require a "Veritas license" to extend /usr. The only license I'm aware of is for OnlineJFS, which would make it easier to extend /usr but it should be possible anyway.

In LVM, we would need to boot in single user mode in order to get the file system unmounted so we could run lvextend/extendfs. I would hope you could do a similar process with VxVM commands in single user mode.


Pete

Pete
Pete Randall
Outstanding Contributor
Solution

Re: Convert root disks from VxVM to LVM

In fact, after a little research, here is how I would approach it.

First extend the volume with "vxassist grot vol_name xxxM". Then, boot in single user mode to get /usr unmounted and run "extendfs".

As I said, I'm not all that familiar with VxVM, so this may be all wrong, but it seems logical to me.


Pete

Pete
Devender Khatana
Honored Contributor

Re: Convert root disks from VxVM to LVM

Hi,

No license should be required to achive this. I suppose somebody has adviced you to purchase online JFS license as /usr is a file system is rootdg and can not be unmounted online.

Is it correct?

HTH,
Devender
Impossible itself mentions "I m possible"
Jaap Westerbeek_2
Occasional Advisor

Re: Convert root disks from VxVM to LVM

That is correct. It's no problem to take this server offline and boot into Single user mode however.

I'll try tinkering with Pete's suggestions
Points will be rewarded if I fix this
baiju_3
Esteemed Contributor

Re: Convert root disks from VxVM to LVM

Is your 11i OS is mission critical ? in that case OnlineJfs product might have already isntalled along with OS bundle .

But you need a license to use the online JFS features .

Your lincese infomation can be checked by

vxlicense -p .


Thanks
BL.
Good things Just Got better (Plz,not stolen from advertisement -:) )
Jaap Westerbeek_2
Occasional Advisor

Re: Convert root disks from VxVM to LVM

Allright ! Pete you're a lifesaver.. points for you

the final syntax was:
vxassist -g rootdg growto usrvol 5000M
-> reboot into Single user mode
extendfs -F vxfs /dev/vx/dsk/usrvol