Operating System - HP-UX
1833800 Members
2506 Online
110063 Solutions
New Discussion

converting root vg to VxFS

 
Vishu
Trusted Contributor

converting root vg to VxFS

Hi,
Few queries, plz respond.

1. Can we convert our rootvg to VxFS which is currently HFS?
2. can we convert our rootvg through vxvmconvert to get it under VXVM control.

Rgds
Vishu

9 REPLIES 9
Vihang.
Trusted Contributor

Re: converting root vg to VxFS

Hi Vishu,

Root VG does not come HFS, only the /stand filesystem used to be HFS in HP-UX 11.11. But it is also vxfs from HP-UX 11.23 onwards.
Please check all the filesystems using fsadm. AFAIK, you cannot convert it to VXVM. Maybe, someone else can correct me if I'm wrong.


Regards,
Vihang.
Deepak Kr
Respected Contributor

Re: converting root vg to VxFS

1. only /stand is in hfs

fstyp /dev/vg00/lvol1

2.

Yes, you can convert rootvg from lvm to vxvm

refer to following guide:

http://docs.hp.com/en/5991-1841/5991-1841.pdf


"There is always some scope for improvement"
SKR_1
Trusted Contributor

Re: converting root vg to VxFS

Hi Vishu

1.In rootvg only /stand is HFS filesystem others are vxfs only.

2.If you want to convert your LVM rootvg under VXVM control you can use vxdiskadm command and use uncapsulate the disk option.
This command doesnot remove your data from the disk and it makes the disk under VXVM control.

Thanks

SKR

TTr
Honored Contributor

Re: converting root vg to VxFS

You have to reload your server using igniteUX to convert from LVM to VxVM and/or to convert from hfs to vxfs.
You can NOT use vxvmconvert on the root VG. The vxvmconvert requires the volumes to be quiescent and therefore can only operate on VGs other than the root VG.
From the man page: "No applications can access data in the volume groups undergoing conversion. You must unmount file systems using those volumes and shut down any
applications, such as databases, that might use the volumes directly..."
@Kumar and SKR: 1) /stand is hfs by default only. During the OS installation, you can select hfs for any/all of the volumes. 2) You can NOT convert the root VG using any vx commands.
Deepak Kr
Respected Contributor

Re: converting root vg to VxFS

TTr,

/stand is meant to be in hfs as it is hp-ux kernel requirement. :-)


Can you please share the procedure to convery rootvg from lvm to vxvm.
"There is always some scope for improvement"
TTr
Honored Contributor

Re: converting root vg to VxFS

The traditional method, high level steps are:
1. Run make_tape_recovery in preview mode (-p option) with all the remaining options normal. This does not create a tape, it runs all preliminary tape recovery tasks.
2. Edit the file /var/opt/ignite/recovery/latest/system_cfg and modify all the LVM/hfs characteristics to VxVM/VxFS. You 'll have to compare two syste_cfg files, one from an LVM server and one from an VxVM server to see what you need to change.
3 Run "make_tape_recovery -r". This completes the recovery tape session from step 1 with the edited system_cfg file.

I don't know if the newer versions of ignite will allow to do the LVM to VxVM conversion using the interactive mode of ignite, the recent ones I have used did not allow this because the boot tape did not have the VxVM structure in it to do the conversion during the INSTALLFS session.

There is also the command vxcp_lvmroot that does something similar but I have not used it. It does not convert the vg00 disk(s), rather it creates a VxVM boot disk on a spare disk out of the current LVM boot disk. "man vxcp_lvmroot".
Deepak Kr
Respected Contributor

Re: converting root vg to VxFS

Thanks a lot TTr,

This piece of info is really good. I have got one new server so I will test all again.

"There is always some scope for improvement"
Dennis Handly
Acclaimed Contributor

Re: converting root vg to VxFS

>KumarD: /stand is meant to be in HFS as it is HP-UX kernel requirement.

This isn't true for Integrity or maybe 11.23.
Deepak Kr
Respected Contributor

Re: converting root vg to VxFS

Thanks dennis!

so can we make /stand vxfs in 11.23...

noted
"There is always some scope for improvement"