- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Frecover a 2 harddisk backup into 1 harddisk
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
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
тАО05-01-2007 09:26 PM
тАО05-01-2007 09:26 PM
Frecover a 2 harddisk backup into 1 harddisk
I have done fbackup up of two harddisk system (two vg groups) and did a frecover into 1 harddisk. When I try to do a vgdisplay, there is an error "Possible error in the volume group minor number; Please check and make sure the group minor number is unique"
I read up in the forum and tried to remove /etc/lvmtab and do a vgscan but got a error of a similar type.
I can see all the files in the two vg group.
Do we need to create a second vg group after make recovery?
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2007 09:41 PM
тАО05-01-2007 09:41 PM
Re: Frecover a 2 harddisk backup into 1 harddisk
Can you give the output of
strings /etc/lvmtab
ll /dev/*/group
vgdisplay -v|grep "VG N"
vgdisplay -v|grep "PV N"
The minor number of group file must be unique (0x000000)
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2007 09:46 PM
тАО05-01-2007 09:46 PM
Re: Frecover a 2 harddisk backup into 1 harddisk
ls -la /dev/vg*/group
Check the 0x number. The first two digits after the 0x are the minor numbers. They should be unique.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2007 02:15 PM
тАО05-06-2007 02:15 PM
Re: Frecover a 2 harddisk backup into 1 harddisk
Thanks for your replies, but currently after i logged out, all I got was a white and black criss cross screen instead of the normal cde login screen. Once I managed to resolve that I will reply. Thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2007 06:36 PM
тАО05-06-2007 06:36 PM
Re: Frecover a 2 harddisk backup into 1 harddisk
To branch off a bit, right now, it seems my hard disk have some corrupted files. In single user mode, I am unable to mount /usr and I got the error 'vxfs mount: /dev/vg00/lvol7 is corrupted. Needs checking.' As such, I am thinking of redoing the frecover on the disk. Can I just go ahead or do I need to reformat the harddisk?
Thanks in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2007 06:46 PM
тАО05-06-2007 06:46 PM
Re: Frecover a 2 harddisk backup into 1 harddisk
fsck -F vxfs /dev/vg04/rlvol7
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-10-2007 07:35 PM
тАО05-10-2007 07:35 PM
Re: Frecover a 2 harddisk backup into 1 harddisk
these are the outputs
# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c3t6d0
/dev/vg01
/dev/dsk/c3t5d0
# ll /dev/*/group
crw-r----- 1 root sys 64 0x000000 May 7 2002 /dev/vg00/group
crw-rw-rw- 1 root sys 64 0x010000 Jun 20 2002 /dev/vg01/group
# vgscan -v
vgscan: The physical volume "/dev/dsk/c3t5d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c3t6d0" is already recorded in the "/etc/lvmtab" file.
Couldn't stat physical volume "/dev/dsk/c0t0d0":
Invalid argument
/dev/vg01
/dev/dsk/c3t5d0
/dev/vg00
/dev/dsk/c3t6d0
Scan of Physical Volumes Complete.
# # vgdisplay
vgdisplay: Couldn't query volume group "/dev/vg00".
Possible error in the Volume Group minor number; Please check and make sure the group minor number is unique.
vgdisplay: Cannot display volume group "/dev/vg00".
vgdisplay: Couldn't query volume group "/dev/vg01".
Possible error in the Volume Group minor number; Please check and make sure the group minor number is unique.
vgdisplay: Cannot display volume group "/dev/vg01".
I have added a second harddisk and redid make_tape_recovery, i did a pvcreate on the second harddisk, and create a vg01 then did the frecover, but in the end I can see all the filesyst) do not exist. I can also see the vg01 filesystem but when I do a bdf, just the vg00 filesystems appear.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2007 06:44 PM
тАО05-12-2007 06:44 PM
Re: Frecover a 2 harddisk backup into 1 harddisk
Can you do as below:
cp /etc/lvmtab /etc/lvmtab.bak
rm /etc/lvmtab
vgscan -v
ioscan -fnCdisk
pvdisplay -v /dev/dsk/c?t?d? (all of your disks from the ioscan output)
Was your old system mirrored or not. May be you will have to vgreduce it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2007 12:26 PM
тАО05-13-2007 12:26 PM
Re: Frecover a 2 harddisk backup into 1 harddisk
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2007 02:48 PM
тАО05-21-2007 02:48 PM
Re: Frecover a 2 harddisk backup into 1 harddisk
The system I am doing backup on has two harddisk, two vg
groups, vg00 resides on one harddisk and vg01 on the
other.
Using make_tape_recovery, I used the command
'make_tape_recovery -A -v -d /dev/rmt/0m'
and also did fbackup with the command 'fbackup -vf
/dev/rmt/0m -i /'
The idea was to clone the system on two new harddisk to
act as spares for hotswapping in case there is any
failure.
I used the make_rec tape to boot and restore the
os(letting it run without interrupting the boot
sequence).
I am able to login after that and with vgdisplay, I see
two vg groups. Below are the system info,
# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c3t6d0
# ll /dev/*/group
crw-r----- 1 root sys 64 0x000000 May 21
15:48 /dev/vg00/group
crw-rw-rw- 1 root sys 64 0x010000 Jun 20
2002 /dev/vg01/group
# vgdisplay -v
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 10
Open LV 10
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4350
VGDA 2
PE Size (Mbytes) 4
Total PE 4340
Alloc PE 1733
Free PE 2607
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 84
Current LE 21
Allocated PE 21
Used PV 1
LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 1024
Current LE 256
Allocated PE 256
Used PV 1
LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 140
Current LE 35
Allocated PE 35
Used PV 1
LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 64
Current LE 16
Allocated PE 16
Used PV 1
LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 20
Current LE 5
Allocated PE 5
Used PV 1
LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 1000
Current LE 250
Allocated PE 250
Used PV 1
LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 800
Current LE 200
Allocated PE 200
Used PV 1
LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 800
Current LE 200
Allocated PE 200
Used PV 1
LV Name /dev/vg00/lvol9
LV Status available/syncd
LV Size (Mbytes) 2000
Current LE 500
Allocated PE 500
Used PV 1
LV Name /dev/vg00/lvol10
LV Status available/syncd
LV Size (Mbytes) 1000
Current LE 250
Allocated PE 250
Used PV 1
--- Physical volumes ---
PV Name /dev/dsk/c3t6d0
PV Status available
Total PE 4340
Free PE 2607
Autoswitch On
# ioscan -funC disk
Class I H/W Path Driver S/W State H/W Type
Description
========================================================
===============
disk 0 10/0/14/0.0.0 sdisk CLAIMED DEVICE
TEAC CD-224E
/dev/dsk/c0t0d0
/dev/rdsk/c0t0d0
disk 1 10/0/15/1.5.0 sdisk CLAIMED DEVICE
QUANTUM ATLAS10KII-18LVD
/dev/dsk/c3t5d0
/dev/rdsk/c3t5d0
disk 2 10/0/15/1.6.0 sdisk CLAIMED DEVICE
QUANTUM ATLAS10KII-18LVD
/dev/dsk/c3t6d0
/dev/rdsk/c3t6d0
So my question here is what is the procedure in this
case to clone the system?
Is there straight forward way to clone to new hard
disks?
i.e. Just do a make_recovery and all the vg groups can
be created and cloned?
After I did the make_recovery, the vg01 was visible but
the physical volume have to be created as well as the
logical volume before I can frecover the vg01. I
actually remove the vg01(recovered by make_rec) first
and recreate them after I created the physical volume on
the second harddisk.
Thanks Bill for your reminder! Yes I did backup vg00 in
the fbackup. Does this mean I only need to frecover just
the vg01 files? I do notice that my /etc/hosts files is
different between the one recovered by make_rec and
frecover. Is it sufficient to recover vg00 just with
make_recovery?
Thanks to Rasheed and Alan as well!