- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: pvcreate cannot determine block size
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2009 12:27 PM
07-08-2009 12:27 PM
=> #pvcreate /dev/rdsk/c23t10d0
Warning: Cannot determine block size of Physical Volume "/dev/rdsk/c23t10d0".
Assuming a default value of 1024 bytes. Continuing.
pvcreate: IO error on Physical Volume device /dev/rdsk/c23t10d0: root@diamond.iehp.org:/>
=> #pvremove /dev/rdsk/c23t10d0
Warning: Cannot determine block size of Physical Volume "/dev/rdsk/c23t10d0".
Assuming a default value of 1024 bytes. Continuing.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2009 12:38 PM
07-08-2009 12:38 PM
Re: pvcreate cannot determine block size
Your disk appears to be defunct or unreachable: IO error on Physical Volume device /dev/rdsk/c23t10d0
I'd bet that a 'diskinfo' returns a 0-size and that this fails with an error or hangs:
# dd if=/dev/dsk/c23t10d0 of=/dev/null bs=1024k count=10
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2009 12:43 PM
07-08-2009 12:43 PM
Re: pvcreate cannot determine block size
diskinfo /dev/rdsk/c23t10d0
say about this disk drive of yours ?
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2009 12:45 PM
07-08-2009 12:45 PM
Re: pvcreate cannot determine block size
Just do a diskinfo and dd on that disk.
# diskinfo /dev/rdsk/c23t10d0 (Must specify its model and size)
# dd if=/dev/rdsk/c23t10d0 of=/dev/null bs=1024 (Must special equal in and out records)
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2009 12:46 PM
07-08-2009 12:46 PM
Re: pvcreate cannot determine block size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2009 12:48 PM
07-08-2009 12:48 PM
Re: pvcreate cannot determine block size
=> #ps -ef | grep pvremove
root 29546 29468 0 13:48:30 pts/10 0:00 grep pvremove
root 19428 13818 0 13:16:07 pts/8 0:00 pvremove /dev/rdsk/c23t10d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2009 12:52 PM
07-08-2009 12:52 PM
Re: pvcreate cannot determine block size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2009 12:54 PM
07-08-2009 12:54 PM
Re: pvcreate cannot determine block size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2009 12:54 PM
07-08-2009 12:54 PM
Re: pvcreate cannot determine block size
> is it okay to kill PID 19428?
Yes, though you may not be able to kill it even with a 'kill -9'. If this is a device that can be physically disconnected that may help.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2009 12:57 PM
07-08-2009 12:57 PM
SolutionBy the way, a 'pvremove' does nothing more than erase the LVM metadata on a disk. This obliterates the PVID and VGID and allows a disk to appear as if it never belonged to LVM. If you are simply reusing a disk, a 'pvcreate' is a perfectly appropriate first step.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2009 12:58 PM
07-08-2009 12:58 PM
Re: pvcreate cannot determine block size
First, try
kill 19428
more than likely it will not die but do not go with -9 right off the bat
if it is still there, then try -9 option
kill -9 19428
I have a sneaking suspicion that, this will not work either. If this is a hot swappable drive, replace it while the server is alive. At this point, your pvremove command, could receive the signal it is waiting fro, from the new and functional disk drive and can complete its running. If not, it is too early to tell what the next steps might be, but most probably pvchange and vgcfgrestore will be your path.
Out of curiosity, iehp.org ?=? Inland Empire Health Plan ? If so, you must almost be my neighbor :)
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2009 01:12 PM
07-08-2009 01:12 PM
Re: pvcreate cannot determine block size
and, hanging of your DD clearly saying that disk is faulty. So, need a new disk/LUN. Get the new disk/LUN to the server and then again try pvcreate on its raw device file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2009 01:22 PM
07-08-2009 01:22 PM
Re: pvcreate cannot determine block size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2009 01:34 PM
07-08-2009 01:34 PM
Re: pvcreate cannot determine block size
disk 126 1/0/2/1/0.97.8.239.1.10.0 sdisk CLAIMED DEVICE DGC CX500WDR5
/dev/dsk/c23t10d0 /dev/rdsk/c23t10d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2009 02:33 PM
07-08-2009 02:33 PM
Re: pvcreate cannot determine block size
it is your 127 Gig LUN. so dd command may take a lot of time. use diskinfo first. if it prints good, then use dd as
# dd if=/dev/rdsk/c23t10d0 of=/dev/null bs=1024k count=1000
and wait for few mins to complete it. and paste the output.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2009 02:41 PM
07-08-2009 02:41 PM
Re: pvcreate cannot determine block size
rmsf -H
or use the alternate form:
rmsf -a /dev/rdsk/whatever
rmsf -a /dev/dsk/whatever
Removing /dev files for disks using rm will create problems. You need to inform the OS about hardware changes. Now you can unpresent the LUN.
Also check ioscan for NO_HW:
ioscan -f
Look for NO_HW. Then remove those paths with rmsf -H
My guess is that there are some unconnected device files in /dev/dsk and rdsk:
lssf /dev/*dsk/* | grep "???"
The ??? flags device files that have no hardware path. Use rmsf -a to remove those files too.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2009 03:10 PM
07-08-2009 03:10 PM
Re: pvcreate cannot determine block size
Yes before I got rid of the 127 gig LUN. I successfully removed the logical volume and volume group in SAM. I then successfully pvremoved c23t10d0 and rmsf -H all for paths.
I then ioscaned to make sure that the 4 paths were removed
I then created a new 200 gig LUN and introduced it as c23t10d0. I issued the insf command and the I/O scan showed up as "claimed". But when I did the PV create I got the error, but at least got the prompt back. But because I got the error I decided to go no further and pvremove it, and that is when it locked up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2009 03:31 PM
07-08-2009 03:31 PM
Re: pvcreate cannot determine block size
so, when you remove the device file with rmsf, have you run insf -e to get them back after presenting the LUN to server.
And, what about the current diskinfo and dd(with count) command output.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2009 03:49 PM
07-08-2009 03:49 PM
Re: pvcreate cannot determine block size
=> #insf
insf: Installing special files for sdisk instance 127 address 1/0/2/1/0.97.4.239.1.10.0
insf: Installing special files for sdisk instance 126 address 1/0/2/1/0.97.8.239.1.10.0
insf: Installing special files for sdisk instance 148 address 1/0/4/1/0.97.4.239.1.10.0
insf: Installing special files for sdisk instance 152 address 1/0/4/1/0.97.8.239.1.10.0
I then ioscaned it again and it showed claimed, but then when I pv created it here:
=> #pvcreate /dev/rdsk/c23t10d0
Warning: Cannot determine block size of Physical Volume "/dev/rdsk/c23t10d0".
Assuming a default value of 1024 bytes. Continuing.
pvcreate: IO error on Physical Volume device /dev/rdsk/c23t10d0: root@diamond.iehp.org:/>
Are you saying that a corrupted pvcreate never took place? and there was no need to pvremove?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2009 04:05 PM
07-08-2009 04:05 PM
Re: pvcreate cannot determine block size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2009 04:07 PM
07-08-2009 04:07 PM
Re: pvcreate cannot determine block size
> => #pvcreate /dev/rdsk/c23t10d0
Warning: Cannot determine block size of Physical Volume "/dev/rdsk/c23t10d0".
> Assuming a default value of 1024 bytes. Continuing.
> pvcreate: IO error on Physical Volume device /dev/rdsk/c23t10d0: root@diamond.iehp.org:/>
So this LUN is no good. diskinfo will either hang or return 0 bytes for size. No need to go any further. Talk with your storage admin about special requirements for HP-UX (or duplicate the settings for existing LUNs).
> Are you saying that a corrupted pvcreate never took place? and there was no need to pvremove?
With the I/O error, it is very likely nothing was written to the new LUN at all. pvremove only applies to successful pvcreate'd LUNs.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2009 04:32 PM
07-08-2009 04:32 PM
Re: pvcreate cannot determine block size
Thanks for that info. I am storage admin. If I present this LUN as a different Host ID then I am sure it will be okay and it will be okay. But my first concern are the pvremove and dd command that are hung and I unable to kill.
not sure what you meant by duplicate the settings for existing LUNs
After the command locked. I created a new LUN the same size and setting as the one I removed. but that did not work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2009 04:47 PM
07-08-2009 04:47 PM
Re: pvcreate cannot determine block size
Unfortunately, all the information you have is that I/O to the disk is not completing. You won't be able to kill the hung processes -- a feature of Unix systems when drivers do not timeout all handshake conditions.
When I mentioned duplicating an existing disk, I meant from the storage perspective. There are presentation characteristics assigned to each LUN that are different for Windows, mainframes, HP-UX, etc. When you present another LUN, validate the connection at the lowest level first, ie, ioscan, then diskinfo. If diskinfo reports 0 bytes or hangs, no need to go any further. The LUN isn't working from the HP-UX side.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2009 04:51 PM
07-08-2009 04:51 PM
Re: pvcreate cannot determine block size
and have you checked the hardware path of that LUN, is it represting to the same device file. or check with the lssf command.
you can try other way that remove the LUN from the server but dont do rmsf. and then represent the LUN to the server. So, you will get a new device file for LUN this time. and try 'insf -e' followed by pvcreate to that raw device file assinged to it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2009 05:03 PM
07-08-2009 05:03 PM
Re: pvcreate cannot determine block size
root@diamond.iehp.org:/>
=> #diskinfo /dev/rdsk/c23t10d0
diskinfo: can't SIOC_INQUIRY /dev/rdsk/c23t10d0: I/O error