- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- lv group missing
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
Discussions
Discussions
Discussions
Forums
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
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
тАО04-30-2004 04:04 AM
тАО04-30-2004 04:04 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2004 04:14 AM
тАО04-30-2004 04:14 AM
Re: lv group missing
Next do a strings /etc/lvmtab to see if the disk is still in /etc/lvmtab.
If so then you should vgexport the VG.
Next,
cd to /dev
mkdir vg01
cd vg01
mknod group c 64 0x010000
But make certain that the minor device number 0x010000 is not is use by any other VG. If it is in use then choose another number.
vgimport -v /dev/vg01 /dev/dsk/c2t5d0
vgchange -y y /dev/vg01
Now you should be able to mount your filesystem on /dev/vg01/lvol1 although an fsck will probably be required first.
Man vgexport, vgimport, vgchange for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2004 04:52 AM
тАО04-30-2004 04:52 AM
Solution1) Check the disk for hardware errors (dd, stm)
2) If the disk is okay, check if the LVM headers exists on the disk (vgscan, pvdisplay, vgdisplay)and in system (/etc/lvmtab). If yes, then you can vgimport the disk and see if you got the data in it.
3) If not, do a 'vgcfgrestore' to this disk using vg01 lvmconf file from /etc (if that's the right copy). Then mount the file systems and restore the data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2004 04:57 AM
тАО04-30-2004 04:57 AM
Re: lv group missing
SAM says the disk is unused ?. Then probably your LVM headers are corrupted. How about a vgcfgrestore ?
# echo "0x2008?4D" | adb /dev/dsk/
Execute the above command post the output
The output is of format
2008:
hostID - uname -i
If the output doesnt make sense to you then you can try vgcfgrestore and hope the data is still intact
# vgcfgrestore -n vg01 /dev/rdsk/
Good luck :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2004 07:11 AM
тАО04-30-2004 07:11 AM
Re: lv group missing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2004 07:21 AM
тАО04-30-2004 07:21 AM
Re: lv group missing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2004 07:28 AM
тАО04-30-2004 07:28 AM
Re: lv group missing
To check what is there in /etc/lvmconf/vg01.conf
Then
vgcfgrestore -n /dev/vg01 /dev/rdsk/c0t5d0
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2004 07:57 AM
тАО04-30-2004 07:57 AM
Re: lv group missing
# vgcfgrestore -n /dev/vg01 /dev/rdsk/c0t5d0
vgcfgrestore: IO error on Physical Volume device /dev/rdsk/c0t5d0
Any suggestions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2004 08:04 AM
тАО04-30-2004 08:04 AM
Re: lv group missing
Restore LVM configuration information stored for /dev/rdsk/c0t7d0 in
default configuration file /etc/lvmconf/vg01.conf to physical volume
/dev/rdsk/c0t6d0:
vgcfgrestore -n /dev/vg01 -o /dev/rdsk/c0t7d0 /dev/rdsk/c0t6d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2004 08:05 AM
тАО04-30-2004 08:05 AM
Re: lv group missing
diskinfo -v /dev/rdsk/c0t5d0
dd if=/dev/rdsk/c0t5d0 of=/dev/null
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2004 08:08 AM
тАО04-30-2004 08:08 AM
Re: lv group missing
for a quick (maybe not so quick but quicker than waiting for the HP CE probably) and dirty check, you can run :
dd if=/dev/dsk/c0t5d0 of=/dev/null
and see if this bums out somewhere before completing. If it succesfully completes, you should see something like that :
4864+0 records in
4864+0 records out
4864 number is replaced with a much higher one depending on the sizo of your disk drive. Large drives are known to take hours to complete this operation. Be forewarned. Ctrl-c breaks you out of it without any harm, if you want to.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2004 08:08 AM
тАО04-30-2004 08:08 AM
Re: lv group missing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2004 08:11 AM
тАО04-30-2004 08:11 AM
Re: lv group missing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2004 08:16 AM
тАО04-30-2004 08:16 AM
Re: lv group missing
If disk is bad, you need to replace it with a new one and continue with 'vgcfgrestore' command. Once VG information is restored, you can mount the file systems (after formatting with newfs) and then restore data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2004 08:17 AM
тАО04-30-2004 08:17 AM
Re: lv group missing
# dd if=/dev/rdsk/c0t5d0 of=/dev/null
dd read error: Invalid argument
0+0 records in
0+0 records out
# diskinfo -v /dev/rdsk/c0t5d0
SCSI describe of /dev/rdsk/c0t5d0:
vendor: SEAGATE
product id: ST39173N
type: direct access
size: 0 Kbytes
bytes per sector: 0
rev level: HP05
blocks per disk: 0
ISO version: 0
ECMA version: 0
ANSI version: 2
removable media: no
response format: 2
(Additional inquiry bytes: (32)20 (33)20 ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2004 09:30 AM
тАО04-30-2004 09:30 AM
Re: lv group missing
I believe the drive has gone bad. What is the ioscan status for the drive ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2004 09:40 AM
тАО04-30-2004 09:40 AM
Re: lv group missing
# ioscan -C disk -fn
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
disk 3 8/16/5.1.0 sdisk CLAIMED DEVICE SEAGATE ST34573W
/dev/dsk/c0t1d0 /dev/rdsk/c0t1d0
disk 0 8/16/5.2.0 sdisk CLAIMED DEVICE TOSHIBA CD-ROM XM-5701TA
/dev/dsk/c0t2d0 /dev/rdsk/c0t2d0
disk 1 8/16/5.5.0 sdisk CLAIMED DEVICE SEAGATE ST39173N
/dev/dsk/c0t5d0 /dev/rdsk/c0t5d0
disk 2 8/16/5.6.0 sdisk CLAIMED DEVICE SEAGATE ST39173N
/dev/dsk/c0t6d0 /dev/rdsk/c0t6d0
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2004 09:46 AM
тАО04-30-2004 09:46 AM
Re: lv group missing
dd if=/dev/rdsk/c0t5d0 bs=64k of=/dev/null
If it fails again that is a very strong indication that the disk is bad.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2004 10:03 AM
тАО04-30-2004 10:03 AM
Re: lv group missing
dd takes the block device as if not the raw device. repeat your command with /dsk/ instead of /rdsk/.
if that one also returns 0+0 bytes, then you can be sure that there is something wrong with the drive.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2004 10:05 AM
тАО04-30-2004 10:05 AM
Re: lv group missing
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2004 10:05 AM
тАО04-30-2004 10:05 AM
Re: lv group missing
# dd if=/dev/rdsk/c0t5d0 bs=64k of=/dev/null
dd read error: Invalid argument
0+0 records in
0+0 records out
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2004 05:21 PM
тАО04-30-2004 05:21 PM
Re: lv group missing
It is definitely a Bad Drive. I don't see any option other than replacing the one with new HDD