- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- pvcreate error
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
12-14-2006 01:18 AM
12-14-2006 01:18 AM
pvcreate error
on an old hp/ux 10.20 machine hp 9000/847
When I do pvcreate -B /dev/rdsk/c1t1d0 I get the followin error:
pvcreate: writing LVM record: Invalid Argument
I have previously installed same model of drive on system and it worked fine. By looking at ioscan the disk is claimed and seems to be fine. But when I look at diskinfo
It says bytes per sector are 520 while on the working disk they are 512 which seems to be correct.
Does anyone know how I can correct this on the disk that is not working correctly, I am hoping that there is a way to reformat the disk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2006 01:30 AM
12-14-2006 01:30 AM
Re: pvcreate error
you can always mkfs the disk. See man mkfs for the disk setup you want (hfs/vxfs).
Once you happy with the block size etc. read:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=128411
and
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1031364
Test with the dd command.
Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions. Your profile shows less than 20% of answers were found wotrth of points ?!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2006 01:32 AM
12-14-2006 01:32 AM
Re: pvcreate error
try:
# dd if=/stand/vmunix of=/dev/rdsk/c1t1d0 bs=1024k
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2006 01:37 AM
12-14-2006 01:37 AM
Re: pvcreate error
If you have command view installed, use the JBODfmt command to format the disk to 512 bytes, then you can pvcreate it.
search for JBODfmt on the forums, here's one thread...
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=805469
Hope this helps,
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2006 01:37 AM
12-14-2006 01:37 AM
Re: pvcreate error
Use JBODfmt from Command View :
JBODfmt /dev/dsk/cXtXdX
pvcreate -f /dev/rdsk/cXtXdX
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2006 02:12 AM
12-14-2006 02:12 AM
Re: pvcreate error
Check your lun has configured properly, and you can read and write to the disk (you can check with dd)
# dd if=/dev/c1t1d0 of=/dev/null bs=1024k
(To read)
and
# dd if=/stand/vmunix of=/dev/c1t1d0 bs=1024k
(To write)
And try with # pvcreate -f /dev/rdsk/c1t1d0
In case of problem check the lun and disk.
hth,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2006 02:12 AM
12-14-2006 02:12 AM
Re: pvcreate error
Check your lun has configured properly, and you can read and write to the disk (you can check with dd)
# dd if=/dev/c1t1d0 of=/dev/null bs=1024k
(To read)
and
# dd if=/stand/vmunix of=/dev/c1t1d0 bs=1024k
(To write)
And try with # pvcreate -f /dev/rdsk/c1t1d0
In case of problem check the lun and disk.
hth,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2006 02:50 AM
12-14-2006 02:50 AM
Re: pvcreate error
1) I am not sure what command view is, but I did a search for JBODfmt and did not find it, so I presume this system does not have it. I did not originally setup this system.
2) I have tried using mkfs
# mkfs -F hfs /dev/dsk/c1t1d0
mkfs (hfs): read of lvm record failed
mkfs (hfs): I/O error
# mkfs -F hfs /dev/dsk/c1t1d0 512
mkfs (hfs): read of lvm record failed
mkfs (hfs): I/O error
I did not understand how to specify block information into command. but I don't think it would work since getting lvm record failed
3)I have looked into using mediainit to initialize disk but I got following results:
# mediainit -v /dev/rdsk/v1t1d0
mediainit: can't access file /dev/rdsk/v1t1d0 - No such file or directory
# mediainit -v /dev/rdsk/c1t1d0
mediainit: initialization process starting
mediainit: locking SCSI device
mediainit: scsi_mi: Target lock failed
mediainit: scsi_mi: LUN lock failed
scsi_mi: Unable to set EXCLUSIVE mode: Device busy
4) I had earlier tried using DD command where it fails, I assume it is failing in part because sector size is 520 and not 512
below is result from different tries. I don't really understand if this is proof that disk is bad or just that becuause bytes per sector on disk are screwed up.
# dd if=/dev/rdsk/c1t1d0 of=/dev/null bs=1024
dd read error: I/O error
0+0 records in
0+0 records out
# dd if=/stand/vmunix of=/dev/rdsk/c1t1d0 bs=1024
I/O error
1+0 records in
0+1 records out
# dd if=/stand/vmunix of=/dev/rdsk/c1t1d0
dd: /dev/rdsk/c1t1d0 Use a blocksize >= the logical block size 520
# dd if=/stand/vmunix of=/dev/rdsk/c1t1d0 bs=520
I/O error
1+0 records in
0+1 records out
5) this is the diskinfo for the disk
# diskinfo -v /dev/rdsk/c1t1d0
SCSI describe of /dev/rdsk/c1t1d0:
vendor: SEAGATE
product id: ST15150N
type: direct access
size: 4121329 Kbytes
bytes per sector: 520
rev level: HP03
blocks per disk: 8242659
ISO version: 0
ECMA version: 0
ANSI version: 2
removable media: no
response format: 2
(Additional inquiry bytes: (32)32 (33)35 (34)37 (35)34 (36)30 (37)38 (38)34 (
39)0 (40)0 (41)0 (42)0 (43)0 (44)0 (45)0 (46)0 (47)0 (48)0 (49)0 (50)0 (51)0 (52
)0 (53)0 (54)0 (55)0 (56)0 (57)0 (58)0 (59)0 (60)0 (61)0 (62)0 (63)0 (64)0 (65)0
(66)0 (67)0 (68)0 (69)0 (70)0 (71)0 (72)0 (73)0 (74)0 (75)0 (76)0 (77)0 (78)0 (
79)0 (80)0 (81)0 (82)0 (83)0 (84)0 (85)0 (86)0 (87)0 (88)0 (89)0 (90)0 (91)0 (92
)43 (93)6f (94)70 (95)79 (96)72 (97)69 (98)67 (99)68 (100)74 (101)20 (102)28 (10
3)63 (104)29 (105)20 (106)31 (107)39 (108)39 (109)35 (110)20 (111)53 (112)65 (11
3)61 (114)67 (115)61 (116)74 (117)65 (118)20 (119)41 (120)6c (121)6c (122)20 (12
3)0 (124)7d (125)c5 (126)e3 (127)0 (128)0 (129)2 (130)8 (131)0 (132)0 (133)0 (13
4)0 (135)0 (136)0 (137)0 (138)0 (139)0 (140)0 (141)0 (142)0 )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2006 03:16 AM
12-14-2006 03:16 AM
Re: pvcreate error
If you have any 11.X boxes attached to VA arrays, look for JBODfmt there. If you find it installed on 11.X, attach your disk there and use JBODfmt so that it formats the drive to 512 bytes per sector.
You can also download command view if you have access to an 11.x box, look at this thread.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=763857
-denver