- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Deactivating volume group before importing?
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
тАО07-01-2002 06:37 AM
тАО07-01-2002 06:37 AM
a little bit complicated, I have a second disk in a box which I'm trying to recover a couple of logical volumes from. No backups, bad me!!
I've created the /dev/vg01/group file using mknod, but when I run 'vgimport -v /dev/vg01 /dev/dsk/c0t5d0' I get the message "Volume group /dev/vg01 is still active".
If I do a vgchange -a n /dev/vg01 it tells me that vg01 isn't in the lvmtab file. It never was, this disk is from another system. Running vgscan doesn't solve that one, anyone any ideas?
thanks in advance,
Kevin.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2002 06:45 AM
тАО07-01-2002 06:45 AM
SolutionCheck by doing;
cd /dev
ll */group
and ensure theyre all unique, eg;
0x000000
0x010000
0x020000
etc.
If so remake your group file and you should be able to vimport fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2002 06:45 AM
тАО07-01-2002 06:45 AM
Re: Deactivating volume group before importing?
e.g. 64 0x010000 may already be defined on your system.
I would also do a 'strings /etc/lvmtab' and look for any vg01 entries.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2002 06:48 AM
тАО07-01-2002 06:48 AM
Re: Deactivating volume group before importing?
I am going to assume that the minor number you used is unique, since you didn't mention any error from 'mknod'. Are you sure that your choice of physical disk is correct?
Do 'strings /etc/lvmtab' to make sure that the number you choose isn't already in use.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2002 06:48 AM
тАО07-01-2002 06:48 AM
Re: Deactivating volume group before importing?
Check by
# ll /dev/vg*/group
and see whether group files are present.
Remember that you should be in the / directory while giving the commands.
You can create another volume group vg02 and then check out. ( Please check out whether no files are there for vg02 earlier )
#mkdir /dev/vg02
# mknod /dev/vg02/group c 64 0x02000
Then do a vgimport and try.
I think vgscan -a should work for you.
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2002 06:55 AM
тАО07-01-2002 06:55 AM
Re: Deactivating volume group before importing?
all pretty close to the answer, typo when creating the group, I had 01000 instead of 010000 (i.e. one zero too few) so I've recreated the group file and its behaving a bit better now.
thanks!!
Kevin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2002 07:01 AM
тАО07-01-2002 07:01 AM
Re: Deactivating volume group before importing?
there are 2 things to check .
1. ls -lR /dev/vg* | grep group shouldnt show two entries.
2. strings /etc/lvmtab | grep c0t5d0 shoudnt show any entry for this disk .
You can try this too :
cd /dev/vg01
mkdir lvol
vgexport /dev/vg01
and then retry to do the vgimport.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2002 11:23 AM
тАО07-02-2002 11:23 AM
Re: Deactivating volume group before importing?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2005 01:27 AM
тАО05-20-2005 01:27 AM
Re: Deactivating volume group before importing?
with 'strings /etc/lvmtab'
I have as a result the volume group associated to the this snap so when I try lvremove , the system tells me that a volume group is still exixting.
How shall i do ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2005 06:27 PM
тАО05-21-2005 06:27 PM
Re: Deactivating volume group before importing?
Hope it is has got emported using vgimport command and file systems got mounted after running fsck on them. Important here would be that if the disk was part of a VG which invloved multiple disks then only those LV's can be recovered which has LV's fully distributed on this disk itself. The LV's which were distributed across other disks alongwith this one will not get recovered.
In this cae also use vgchage -a y -n q /dev/vg01 ( As you need to bye pass quorum check.)
Fahmi,
Your problem is not clear. See response in your own thread.
Terry,
Doing a pvcreate will remove old data from disk which should not be a case I think when you are recovering data.
HTH,
Devender