1833325 Members
2866 Online
110051 Solutions
New Discussion

VxVM vxdisk ERROR

 
SOLVED
Go to solution
KapilRaj
Honored Contributor

VxVM vxdisk ERROR

Hi guys,

# /etc/vx/bin/vxdisksetup -i c1t0d0
VxVM vxdisk ERROR V-5-1-3421 Device c1t0d0 is already in use by LVM.

# /etc/vx/bin/vxdisksetup -if c1t0d0
VxVM vxdisk ERROR V-5-1-3421 Device c1t0d0 is already in use by LVM.


# ls -ld /etc/lvmtab
/etc/lvmtab not found

# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t0d0 auto:LVM - - LVM
c1t1d0s2 auto:hpdisk rootdisk01 rootdg online

How do I initialise this disk ? I am not using this disk for LVM.

Regards,

Kaps
Nothing is impossible
8 REPLIES 8
Court Campbell
Honored Contributor
Solution

Re: VxVM vxdisk ERROR

was the disk once used by LVM?

might try

# pvremove /dev/rdsk/c1t0d0
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
KapilRaj
Honored Contributor

Re: VxVM vxdisk ERROR

# pvremove /dev/rdsk/c1t0d0
pvremove: /etc/lvmtab: No such file or directory
"/etc/lvmtab" could not be read into memory.
Nothing is impossible
Sameer_Nirmal
Honored Contributor

Re: VxVM vxdisk ERROR

Run

# pvcreate -f /dev/rdsk/c1t0d0

This will remove LVM header. Then use vxdisksetup to use the disk with VxVM.
KapilRaj
Honored Contributor

Re: VxVM vxdisk ERROR

I thought pvcreate will create the LVM structure on an unused disk. Are you sure ?

Regards, Kaps
Nothing is impossible
James R. Ferguson
Acclaimed Contributor

Re: VxVM vxdisk ERROR

Hi Kaps:

If you are sure that you want to erase any information on the physical disk, do:

# dd if=/dev/zero of=/dev/rdsk/c1t0d0 bs=1024k count=10

Regards!

...JRF...
Sameer_Nirmal
Honored Contributor

Re: VxVM vxdisk ERROR

Yes you are right.

The command "pvcreate" does make the disk device as "physical volume" to make it usable for LVM.

I should have given more clarification before. By running "pvcreate -f" you are removing the filesystem and LVM info like VGID etc. forcibly. Unless you get rid of this information which VxVM does check before using the disk, you can't initialise the disk under VxVM.
KapilRaj
Honored Contributor

Re: VxVM vxdisk ERROR

# pvcreate -f /dev/rdsk/c1t0d0
Creating "/etc/lvmtab".
Physical volume "/dev/rdsk/c1t0d0" has been successfully created.

# /etc/vx/bin/vxdisksetup -i c1t0d0
VxVM vxdisk ERROR V-5-1-3421 Device c1t0d0 is already in use by LVM.

# /etc/vx/bin/vxdisksetup -if c1t0d0
VxVM vxdisk ERROR V-5-1-3421 Device c1t0d0 is already in use by LVM.

I have not tried the dd option, will do if nothing works.

Regards,

Kaps
Nothing is impossible
KapilRaj
Honored Contributor

Re: VxVM vxdisk ERROR

It works ...

I did a pvcreate followed by pvremove and then vxdisksetup worked.

Thanks for the help ..

Regards,

Kaps
Nothing is impossible