- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- pvcreate problem on hpux 11i
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
01-21-2004 07:09 PM
01-21-2004 07:09 PM
i'm trying to pvcreate a disk but coul not ,it gives me the following error ( it is brand new san lun):-
#pvcreate /dev/rdsk/c9t0d3
pvcreate: Couldn't open physical volume "/dev/rdsk/c9t0d3":
Invalid argument.
any help is highly appreciated.
regards,
S.N.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2004 07:13 PM
01-21-2004 07:13 PM
Re: pvcreate problem on hpux 11i
This doesn't look like a good disk.
Do an 'ioscan -f' and then ioscan -fnC disk and see if this disk shows up there. Check with your Storage administrators if it is not listed or listed with NO_HW status.
YOu could do 'diskinfo /dev/rdsk/c9t0d3' but that doesn't always guarantee the result.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2004 07:17 PM
01-21-2004 07:17 PM
Re: pvcreate problem on hpux 11i
try doing
dd if=/stand/vmunix of=/dev/rdsk/c9t0d3 bs=1024k
If that works, then try reading from it doing:
dd if=/dev/rdsk/c9t0d3 of=/dev/null bs=1024k
If it does not work, you either have a bad/faulty LUN, or there is some configuration issue on your SAN environment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2004 07:21 PM
01-21-2004 07:21 PM
Re: pvcreate problem on hpux 11i
#ioscan -fnC disk
check whether the disk is claimed or not.
if claimed
#diskinfo /dev/rdsk/cxtxdx ( as you see in ioscan o/p)
if disk is ok
#pvcreate -f /dev/rdsk/cxtxdx
if fails
#dd if=/dev/rdsk/cxtxdx of=/dev/null bs=1024K
look for any I/O error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2004 07:30 PM
01-21-2004 07:30 PM
Re: pvcreate problem on hpux 11i
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2004 08:41 PM
01-21-2004 08:41 PM
Re: pvcreate problem on hpux 11i
check with:
ioscan -fnCdisk
you should see the dev file CLAIMED
maybe you have to install special file:
insf -e
then
pvcreate -f (force) /dev/rdsk/cxtxdx
Hope this helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2004 09:47 PM
01-21-2004 09:47 PM
Re: pvcreate problem on hpux 11i
I would NOT use -f option on pvcreate!
Without -f option you see if disk belongs to a volume group. If pvcreate has not problem then it works without -f option too.
The -f option has just to be used when deleting and formatting a LVM disk (and you know what you are doing...).
S.N.,
what about
# diskinfo /dev/rdsk/c9t0d3
Best regards,
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2004 09:56 PM
01-21-2004 09:56 PM
Re: pvcreate problem on hpux 11i
However: if you are running MC/SG and you share disk resources, this will be a VERY bad command to execute.....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2004 10:22 PM
01-21-2004 10:22 PM
Re: pvcreate problem on hpux 11i
you all overwhelmed me with kindness, it seems that i have bad lvmtab. how can i have neat & clean lvmtab. is it through vgscan or i have to do something more.
thanks alot guys
Regards,
Sharif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2004 10:24 PM
01-21-2004 10:24 PM
Re: pvcreate problem on hpux 11i
I don't understand if you refer about with or without -f option. Anyway -f option (it stands for force) on pvcreate forces command to overwrite disk without checks in /etc/lvmtab. Without -f option pvcreate involves as you said, that is checks in /etc/lvmtab.
This behaviour of pvcreate doesn't depend from HP-UX versions.
Best regards,
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2004 10:52 PM
01-21-2004 10:52 PM
Re: pvcreate problem on hpux 11i
Please look at the following (disk was originally part of a VG, but VG was dropped using VGEXPORT, as can be seen from first execution of pvcreate):
wblvh085:/) pvcreate /dev/rdsk/c11t4d2
pvcreate: The physical volume already belongs to a volume group
wblvh085:/) pvcreate -f /dev/rdsk/c11t4d2
Physical volume "/dev/rdsk/c11t4d2" has been successfully created.
wblvh085:/) vgcreate /dev/vg_crap /dev/dsk/c11t4d2
Increased the number of physical extents per physical volume to 2157. Volume group "/dev/vg_crap" has been successfully created. Volume Group configuration for /dev/vg_crap has been saved in /etc/lvmconf/vg_cr ap.conf
wblvh085:/) pvcreate -f /dev/rdsk/c11t4d2
pvcreate: The physical volume "/dev/dsk/c11t4d2" is already recorded in the "/et c/lvmtab" file.
So what say you now?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2004 11:53 PM
01-21-2004 11:53 PM
Re: pvcreate problem on hpux 11i
recreate the lvmtab 'vgscan -a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2004 01:22 AM
01-22-2004 01:22 AM
Re: pvcreate problem on hpux 11i
what do you want that I say?
I have thought that pvcreate -f always overwrites disk, every times. Instead if disk is into /etc/lvmtab then pvcreate -f doesn't work.
Anyway man page of pvcreate about -f option indicates that:
............
command does a minimal verification, so care should be taken to assure that the disk is not already in use prior to invoking the command.
.............
Instead of 'command does a minimal verification', it could be 'command checks /etc/lvmtab'.
Maybe I wouldn't have wronged thoughts about it.
I am in this world, I am not perfect!
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2004 01:36 AM
01-22-2004 01:36 AM
Re: pvcreate problem on hpux 11i
insf -e
pvcreate
fixes it.
It also lets you recognize new LUNS on non HP disk arrays without booting the box.
Lorenzo Facello deserves a rabbit, I'm just backing him up.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2004 05:05 PM
01-22-2004 05:05 PM
Re: pvcreate problem on hpux 11i
No problems, mate: nobody can know everything. Must be lots that you know that I don't......
But at least it's nice to know LVM is looking after us a little when we make mistakes....;->
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2004 09:07 PM
01-22-2004 09:07 PM
Re: pvcreate problem on hpux 11i
original lvmtab entries are :-
# strings /etc/lvmtab.orig
/dev/vg00
/dev/dsk/c1t2d0
/dev/dsk/c2t2d0
/dev/vg01
/dev/dsk/c4t0d1
/dev/vg02
/dev/dsk/c4t0d2
/dev/vg1
/dev/dsk/c9t0d0
/dev/vg2
/dev/dsk/c9t0d1
/dev/vg3
well, vg01,vg02 & vg3 need to be taken out,
vg01 & vg02 were accessible but vg3 was not.
i moved the lvmtab & did vgscan after i vgexport vg01,vg02 & vg3.
now the output of vgscan is
# vgscan
Creating "/etc/lvmtab".
vgscan: Couldn't access the list of physical volumes for volume group "/dev/vg00
".
vgscan: Couldn't access the list of physical volumes for volume group "/dev/vg1"
.
vgscan: Couldn't access the list of physical volumes for volume group "/dev/vg2"
.
Couldn't stat physical volume "/dev/dsk/c3t2d0":
Invalid argument
Physical Volume "/dev/dsk/c9t0d2" is not part of a Volume Group.
i want lvmtab file to have a neat data how could i do the houskeeping of lvmtab & get rid of this annoying output.
regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2004 09:16 PM
01-22-2004 09:16 PM
Re: pvcreate problem on hpux 11i
just for a summary of situation:
- why have you exported volume groups?
Output of vgscan is normal because vgexport takes out disks form /etc/lvmtab.
- vgimport again all volume groups and please answer the following questions by posting output:
# diskinfo /dev/rdsk/c9t0d3
# dd if=/dev/rdsk/c9t0d3 /dev/null bs=1024K
Best regards,
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2004 09:21 PM
01-22-2004 09:21 PM
Re: pvcreate problem on hpux 11i
You can create a script:
#!/usr/bin/ksh
SIZE=`ll
if [ $SIZE -gt
then
backup command
fi
and create a second script that checks that this script is running or start is with cron if it is not running.
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2004 09:35 PM
01-22-2004 09:35 PM
Re: pvcreate problem on hpux 11i
well, i have exported the volume groups becuase there not in use any more ,those group were on local disks & after that we upgraded to san so they are temporary used to shift the data to san disks.
- should i do vgimport or just copy the original lvmtab back again.
- diskinfo output :-
diskinfo -v /dev/rdsk/c9t0d3
diskinfo: can't open /dev/rdsk/c9t0d3: Invalid argument
dd output:
# dd if=/dev/rdsk/c9t0d3 /dev/null bs=1024K
dd: bad arg /dev/null
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2004 09:47 PM
01-22-2004 09:47 PM
Re: pvcreate problem on hpux 11i
dd if=/dev/rdsk/c9t0d3 of=/dev/null bs=1024k
About /etc/lvmtab: the last vgscan command recreated /etc/lvmtab according to disks that system finds with relative volume groups. Your vgexport took out disks. Then you do a vgimport now.
Anyway /dev/dsk/c9t0d3 seems to not be existent! Because all commands don't recognize it (I am enough sure to tell you that dd command fail too).
A silly question: are you sure that LUN is called /dev/dsk/c9t0d3?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2004 01:34 AM
01-23-2004 01:34 AM
Re: pvcreate problem on hpux 11i
and make sure the particular disk is not already part of any VG before using pvcreate.
If not use #pvcreate -f /dev/rdsk/cxdxtx
SRao
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2004 01:44 AM
01-23-2004 01:44 AM
SolutionIf you didn't need those volume groups, then what you did was correct - vgexporting the volume groups.
Is your lvmtab looking clean now?. For ex., are you getting any more errors when you do a 'vgdisplay -v' or 'lvlnboot -v' ?.
You can do an 'ioscan -fnC disk' and look at the output. Those are all the disks you have on the system. You would probably see NO_HW status for the path corresponding to the device file c9t0d3. c9- indicates that it was most probably a SAN disk. You might have lost it during your SAN maintenance.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2004 10:54 PM
01-24-2004 10:54 PM
Re: pvcreate problem on hpux 11i
The disk is not in any volume group, that why it is inaccessible, it is there under /dev/dsk.
how come it is there. it should not.
i think i will remove it.
anyway thanks alot Sridhar for help.
regards,