- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Can not pvcreate disk
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
03-10-2003 04:35 AM
03-10-2003 04:35 AM
I have a test box which was 11i using VxVm and now has been configured to 11.The problem I am experiencing is that when I try and pvcreate the spare disk I get the following message :
# pvcreate -f /dev/rdsk/c0t6d0
pvcreate: Could not perform LVM operation on VxVM disk "/dev/rdsk/c0t6d0".
I have tried to a # /usr/bin/dd if=/dev/zero of=/dev/dsk/c0t6d0 bs=64kbut get the following message :
/dev/zero: No such file or directory
dd: cannot open /dev/zero
Can anyone please advise.
Regards
Simon
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2003 04:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2003 04:40 AM
03-10-2003 04:40 AM
Re: Can not pvcreate disk
If you are 100% sure that this disk is no longer active for VxVM you can use pvremove to get rid of the header. Pls note that pvremove is only available on >=11.11.
If /dev/zero is missing, you can create it using:
# mknod /dev/zero c 3 3
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2003 04:43 AM
03-10-2003 04:43 AM
Re: Can not pvcreate disk
BTW, to recreate '/dev/zero' (assuming someone removed it):
# mknod /dev/zero c 3 0x000004 #...on 11.x
# chown bin:bin /dev/zero
# chmod 666 /dev/zero
On 11.0 you can create '/dev/zero' too, but use:
# mknod /dev/zero c 3 0x000003 #...on 11.0
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2003 04:48 AM
03-10-2003 04:48 AM
Re: Can not pvcreate disk
dd if=/stand/vmunix of=/dev/rdsk/c0t6d0 bs=1024k
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2003 08:00 AM
03-10-2003 08:00 AM
Re: Can not pvcreate disk
thanks for pointing out the minor number 4 for /dev/zero.
Just had a closer look... /dev/zero was introduced with 11.00 with minor 4. Yes, it's 4 for 11.00 also!
The minor 3 is some legacy thing that also returns "something"... usually zeros, so it was often abused as /dev/zero e.g. with 10.20.
Beginning with 11.00 one should really use the 4. I just tested with a 11.00 box that returned non-zero contents on minor 3! So take care.
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2003 08:18 AM
03-10-2003 08:18 AM
Re: Can not pvcreate disk
Thank you, for the information. I can always count on you to really dig!
I meant to note that you can create a '/dev/zero' on *10.20* with a minor number of <3> but wrote "11.x" for some dumb reason.
I was vaguely aware that the 10.20 device was "usually zeros" and glad to know that it can't be relied upon for fidelity.
With warmest regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2003 09:05 AM
03-10-2003 09:05 AM
Re: Can not pvcreate disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2003 09:14 AM
03-10-2003 09:14 AM
Re: Can not pvcreate disk
Since you goal is to erase the VxVM information, 'pvremove' would be preferred since this is for what it is designed.
If you choose to use 'dd' with '/dev/zero', you would only need to do something like:
# dd if=/dev/zero of=/dev/rdsk/cXtYdZ bs=256k count=10
...should suffice nicely.
Regards!
...JRF...