1822001 Members
4107 Online
109639 Solutions
New Discussion юеВ

pvcreate error

 
aruns_s
Frequent Advisor

pvcreate error

Hi all,

My storage team had created 3 luns for me. I hv done ioscan -fnC disk and run insf -C disk.
After that, while trying to create pv using pvcreate it is giving following error.
pvcreate: writing LVM record: Device busy

Although I believe it is realted to storage, ur inputs are invaluable.
5 REPLIES 5
Mridul Shrivastava
Honored Contributor

Re: pvcreate error

Hi Arun,

The error occured when writing the LVM resource areas on the physical volume.

This might be due to a hardware failure of the disk.

You can easily perform a read test with dd:

# dd if=/dev/rdsk/[suspicious disk] of=/dev/null bs=1024k count=10

This command reads the first 10 Mb from the disk. Usually, the LVM header does not exceed this value. Otherwise, increase the count value.

If no error occurs, there still might be a hardware failure of the disk which has to be verified by writing to the disk.

NOTE: All data will be lost.

# dd if=/dev/rdsk/[other disk] of=/dev/rdsk/[suspicious disk] bs=1024k count=10

If you get an I/O error the disk should be replaced. Please follow the common procedures for replacing defective hard disks
Time has a wonderful way of weeding out the trivial
John Waller
Esteemed Contributor

Re: pvcreate error

Hi

Might be an idea to try pvcreate -f /dev/rdsk/c?t?d?. May be the lun's have been used on another system in the past, but this does sound more hardware related as you normally get a different error.
spex
Honored Contributor

Re: pvcreate error

Hello,

If this is a SAN environment, check if other nodes have locks on these LUNs.

PCS
skt_skt
Honored Contributor

Re: pvcreate error

Cross check with your storgae team that LUN was not allocated any where else. Check with them if this was used earlier. This would be sufficient to decide if we can do a force operation.

I deally there should be a centralised information of the USED luns collected through any script by scanning/checking all servers in the network. We have the same established.
M.S. BALAJI
Occasional Advisor

Re: pvcreate error

Hi,

The LUN presented from storage will be visible to different hosts if the SAN zoning is not proper.

If some other OS has put its signature (like Open VMS, Tru64,AIX) then you will see such errors.

Ask your storage team to perform properly and present the LUN only to this host.

Regards,
BALAJI M.S