- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Possible bad mirrored 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
09-01-2003 09:08 AM
09-01-2003 09:08 AM
I'm a newbie to HP-UX so bear with me.
I've just inherited a system and I'm trying to trace disks. When I looked at /etc/lvmtab I found this entry
/dev/vg04
8@&U
/dev/dsk/c2t14d0
This VG isn't activated and the disk that is named is listed in SAM as unused. I think this VG is used by an Informix DB (the DBA who used to look after it mentioned it before he left the company) I'm worried that there may be a bad mirror. How can I trace what this disk is?
Cheers
Kev
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2003 10:39 AM
09-01-2003 10:39 AM
Re: Possible bad mirrored disk
never mess with the lvmtab.
you cannot edit it with vi. but you can recreate it with vgscan -av.
to get the disk info for all the disks in vg00.
vgdisplay -v vg00
copy this info and attach the output to this post. I will assist you futher
live free or die
Donny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2003 10:45 AM
09-01-2003 10:45 AM
Re: Possible bad mirrored disk
ioscan -funC disk
it will display all the disks on your system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2003 11:41 AM
09-01-2003 11:41 AM
Re: Possible bad mirrored disk
Run vgdisplay -v vg04
and see what you get because refer the
/etc/lvmtab you should have this VG.
Also try to run vgscan -a
Caesar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2003 12:01 PM
09-01-2003 12:01 PM
Re: Possible bad mirrored disk
or
vgdisplay -v /dev/vg00 | more
or
pvdisplay -v /dev/vg00 | more
will all show essentially the same thing. If a mirror disk is bad, you will see the word stale describing the mirror is not being kept up to date.
If a disk is totally gone, you should see an lbolt on a dmesg output unless the disk is so gone the system has stopped trying.
My last post in this thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xf0fc5dc05a7ad711abdc0090277a778c,00.html
Has a script called disk.status.
It compares /etc/lvmtab to live disks and emails whomoever you choose if a disk appears to be off line. quite useful. We run it once a night.
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
09-01-2003 12:04 PM
09-01-2003 12:04 PM
Re: Possible bad mirrored disk
Here's the output of vgdisplay. As you can see nothing shows up as the VG is inactive. A I said it may be raw devices for Informix and apparently it's not good to make this active.
clhp68# vgdisplay -v vg04
vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "vg04".
Cheers
Kev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2003 03:29 PM
09-01-2003 03:29 PM
SolutionBased on your post of '/etc/lvmtab' for 'vg04' there is only one physical disk associated with the volume group. HP-UX mirroring is implemented at the logical volume level and as such confines mirrors to logical volumes within a volume group. Therefore, your disk cannot be a bad mirror, since there is only one physical disk in the volume group. Yes, it is possible to mirror on the same physical device, but this is not a default selection during 'lvcreate' and no one in their right mind whould do it, so we will ignore that possibility!
In order to use 'vgdisplay' or 'lvdisplay' the volume group must be active. It presently isn't. Do:
# vgchange -a y /dev/vg04
...to activate the volume group. If the appropriate device files are still present on you system, and the disk is still physically attached to your system and accessable, you should be able to ascertain more information having done so. Once activated, do:
# vgdisplay /dev/vg04
BTW, the snippet of 'etc/lvmtab' that you posted shows that volume group 'vg04' consists of one disk -- /dev/dsk/c2t14d0. The line with "8@&U" represents the best set of printing characters that 'strings' can provide for the binary encoded the LVM VGID (Volume Group IDentifier) for the physical disk in question. This kind of display is perfectly normal.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2003 04:05 PM
09-01-2003 04:05 PM
Re: Possible bad mirrored disk
The vg needs to be active to use it. Raw database lvols are just lvols without a filesystem on them.
The only reason for a vg not being activated that I'm aware of is because somebody manually turned it off or by booting into a recovery mode. Maybe there was only one disk in vg04 and it went bad or was physically removed and that made it inactive.
Can you see the disk? Try "ioscan -fnC disk". If not the disk or disk subsystem has been removed or can't be communicated to by the scsi controller.
If it is there, try "diskinfo -v /dev/rdsk/c2t14d0". If you can't query the disk, it is probably bad.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2003 04:11 PM
09-01-2003 04:11 PM
Re: Possible bad mirrored disk
# vgchange -a y /dev/vg04
As there is only one disk in the lvmtab output (ignore the garage output) the disk is not mirrored.
Check how many logical volumes are in the volume group.
# vgdisplay /dev/vg04 | grep LV
Determine what filesystem type the lvol is (if any):
# fstyp /dev/vg04/lvol?
It will give vxfs or hfs if there are filesystems on there. It will return nothing if it was a raw logical volume
If there are entries in the fstab, you may find where it was meant to be mounted. You could also check /etc/mnttab too.
If the filesystem type was hfs, check where it was last mounted:
# tunefs -v /dev/vg04/lvol?
Really, you could mount the vxfs or hfs filesystems anywhere and check what is on there.
# mkdir /kev
# mount /dev/vg04/lvol? /kev
Hope this helps.
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2003 11:48 PM
09-01-2003 11:48 PM
Re: Possible bad mirrored disk
Points have been awarded for your help. :o)
Cheers
Kev