Operating System - HP-UX
1831651 Members
2022 Online
110029 Solutions
New Discussion

Coverting root disk from LVM to VxVM

 
SOLVED
Go to solution
santosh jha
Frequent Advisor

Coverting root disk from LVM to VxVM

I am trying to convert my root disk from LVM to VxVM but the process is failing withe following error
"vxcp_lvmroot 14:42: Copying /dev/vg00/lvol5 (vxfs) to /dev/vx/dsk/rootdg/tmpvol
vxfs fsck: fsck read failure bno = 104, off = 0, len = 32768
vxcp_lvmroot: ERROR: Attempting fsck on /dev/vx/rdsk/rootdg/tmpvol"

I tried running fsck by going to single user mode .Please guide
11 REPLIES 11
Arunvijai_4
Honored Contributor

Re: Coverting root disk from LVM to VxVM

santosh jha
Frequent Advisor

Re: Coverting root disk from LVM to VxVM

Anyone please help me.

Re: Coverting root disk from LVM to VxVM

Do you really need a /tmp while doing the conversion? If there's a bit of free space in / then why not just umount and lvremove the /tmp volume, then re-create once you have converted to VxVM?

HTH

Duncan

I am an HPE Employee
Accept or Kudo

Re: Coverting root disk from LVM to VxVM

Think about this a bit more, if you have run fsck OK in single user mode, this suggests the problem is probably related to something that is writing to the /tmp file system during the conversion.

If thats the case, removing the /tmp filesystem might just move the problem to /.

Another couple of ways you might be able to sort this out:

1) Use 'fuser -c /tmp' to figure out whats writing to the filesystem, and stop as much as you can.

2) temporarily remount the /tmp filesystem with full intent logging enabled ('man mount_vxfs' for details). This might give the fsck the extra metadata it needs to work.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
santosh jha
Frequent Advisor

Re: Coverting root disk from LVM to VxVM

Thx for the reply DUNCAN.

I tried vxcp while /tmp was unmounted.But the problem is still the same.

Regards
Santosh
Ralph Grothe
Honored Contributor

Re: Coverting root disk from LVM to VxVM

Just googled this doc that describes rootability issues with VxVM on HPUX.

http://docs.hp.com/en/5187-2239/ch04s05.html

So far I didn't even know whether HPUX has embedded VxVM as much yet to provide for rootibility.

My only experience with VxVM rootability are with the Solaris OS.
From this I can say that rootability isn't that trivial and might cause some trouble (at least considerable more thoughts) in disaster recovery scenarios.
Madness, thy name is system administration
Solution

Re: Coverting root disk from LVM to VxVM

Ralph,

don't let your experience with Slowaris effect your thinking on this! VxVM root/boot isn't that different from LVM root/boot on HP-UX and is integrated much better than it ever was on Sun - which is funny when you consider how popular VxVM is on their OS.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
santosh jha
Frequent Advisor

Re: Coverting root disk from LVM to VxVM

It is still failing .Now i doubt that there is a bad sector on the disk.

How can i quickly check this ?

Santosh Jha
Bharat Katkar
Honored Contributor

Re: Coverting root disk from LVM to VxVM

# dd if= of=/dev/null bs=1024

This will return an error if bad block is found.

Regards,
You need to know a lot to actually know how little you know
santosh jha
Frequent Advisor

Re: Coverting root disk from LVM to VxVM

Hey Bharat , R u from veritas.
Bharat Katkar
Honored Contributor

Re: Coverting root disk from LVM to VxVM

No....
Regards,
Bharat
You need to know a lot to actually know how little you know