- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ignite and lvm
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
05-03-2002 05:31 AM
05-03-2002 05:31 AM
The problem I am having is that the lvols for the volume group for the data vg all mount unmirrored and at zero bytes. I assume after the vgimport -m [mapfile] [devicelist] I have to lvextend all the lvols for the data vg?
My question is given that the lvols mounted at 0 bytes, will doing the lvextend -m 1 .... to setup the mirrors work, or should I lvreduce and then lvcreate them all first, and then do the lvextend? I am hoping to get all this put into the ignite script as well.
TIA,
mark
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2002 05:44 AM
05-03-2002 05:44 AM
Re: ignite and lvm
You should be able to lvextend -m 1
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2002 05:53 AM
05-03-2002 05:53 AM
Re: ignite and lvm
Gideon,
I realize that, but they all should be 1.5 or 2 gig each. I don't know why they mounted as 0 bytes, and am not sure what steps and in what order to fix that.
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2002 06:23 AM
05-03-2002 06:23 AM
Re: ignite and lvm
For the first question - NO. If you 've properly vgexported the lvols with map files, then after vgimport, it should be exactly the same. You don't need to do lvextend to remirror it.
Did you check the VG's before exporting it ? Did you find any errors/warnings while vgimport/vgexport ? If you wish to start from fresh, then the better way will be to recreate new LVs, and lvextend it.
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2002 06:34 AM
05-03-2002 06:34 AM
Re: ignite and lvm
Before creating the ignite tape, I ran /usr/sbin/vgexport -pvm /tmp/tmpmapfile datavg and compared the results via diff to the mapfile in /etc/lvmconf and they were exactly the same. There were no errors from the vgimport when booting from the ignite tape on the second system.
I had assumed that because I did the make_recovery with the -A to grab all of the root vg that the entries in the /etc/lvmconf would be sufficient to define the lvol sizes and locations for when I booted on the second system. I don't know why the lvols mounted with 0 bytes (and 0 PE and only 1 PV each).
My goal is not only to correct this on the second system, but in doing so have something I can add to the ignite process so that if we ever have to reboot from that tape, the system will come up correctly configured for use.
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2002 06:46 AM
05-03-2002 06:46 AM
Re: ignite and lvm
What is the output of pvdisplay -v of second hard disks ? Is it showing in /etc/lvmtab ? If yes, then whether it shows up with vgdisplay -v ?
Is the second system's paths and SCSI id's are same ? Did you try a vgcfgrestore using the files under /etc/lvmconf ?
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2002 08:46 AM
05-03-2002 08:46 AM
Re: ignite and lvm
Is the second system's paths and SCSI id's are same ? Did you try a vgcfgrestore using the files under /etc/lvmconf ? <<
pvdisplay, "strings /etc/lvmtab", and vgdisplay are the same on both systems.
I've not done the vgcfgrestore.
I did find that if I try and do anthing with lvchange or lvremove on the lvols in question, that I get an error stating the the lvol could not changed/removed because the lvol number references a non-existant lvol.
So, how can lvdisplay show me the info, but lvchange/remove not see them?
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2002 09:03 AM
05-03-2002 09:03 AM
Re: ignite and lvm
The error "lvol could not changed/removed because the lvol number references a non-existant lvol" you are seeing has happened to me before .. eg: I got /dev/vg01/lvol1 which has 0 size (allocated PE=0) which shows up in "vgdisplay vg01" and "lvdisplay /dev/vg01/lvol1" but when I try to lvremove it I get the error. What I did was remove the device files ..
# cd /dev/vg01
# rmsf lvol1
# rmsf rlvol1
and then go back to the lvremove and it works fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2002 09:09 AM
05-03-2002 09:09 AM
Re: ignite and lvm
# cd /dev/vg01
# rmsf lvol1
# rmsf rlvol1
and then go back to the lvremove and it works fine. <<
S.K.,
Cool! While this doesn't yet tell me how to fix the ignite process, it gets me around my immediate issue so I can procede with the testing on the second system I was doing this for.
Thanx!
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2002 09:14 AM
05-03-2002 09:14 AM
Re: ignite and lvm
Does the pvdisplay and vgdisplay shows all PE's as free ? Does it show that it's allocated to the LV's ?
Also use make_tape_recovery to make the ignite tapes. It's more convenient and with better tools.
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2002 09:25 AM
05-03-2002 09:25 AM
Re: ignite and lvm
Shiju,
Both pvdisplay and vgdisplay show all PE's as free and zero allocated. This is, at least, consistent with the lvol's being 0 bytes.
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2002 09:38 AM
05-03-2002 09:38 AM
Re: ignite and lvm
Another thing: In this case, you are not doing a disaster recovery checking rt ? Instead, you care just creating another system with new disks using the ignite tape.
The difference is that if only root disk failed and if the data VG's are the same, then just recovering from the ignite will be fine. Because the VGDA of the data VG's (disks on SC10) remains the same. But in your case, you 've recovered the ignite tapes and the vg00. But the VGDA of SC10 disks (data VGs) doesn't have any information on that. So I think just doing 'vgcfgrestore' from the /etc/lvmconf files will resolve the issue.
I think, I am not confused now =))
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2002 09:38 AM
05-03-2002 09:38 AM
Re: ignite and lvm
Another thing: In this case, you are not doing a disaster recovery checking rt ? Instead, you are just creating another system with new disks using the ignite tape.
The difference is that if only root disk failed and if the data VG's are the same, then just recovering from the ignite will be fine. Because the VGDA of the data VG's (disks on SC10) remains the same. But in your case, you 've recovered the ignite tapes and the vg00. But the VGDA of SC10 disks (data VGs) doesn't have any information on that. So I think just doing 'vgcfgrestore' from the /etc/lvmconf files will resolve the issue.
I think, I am not confused now =))
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2002 09:43 AM
05-03-2002 09:43 AM
Re: ignite and lvm
Correct. Actually, I am doing a "proof-of-concept" for swapping 2 of the 18 gig drives for 36 gig drives. We are close on space on our live system, and before doing the disk swap, I wanted to setup this other system to look the same as the live one. That way I can do the swap and verify the order of events without worrying about blowing-away any live data. The first step, of course, is to setup the vg's and lvols, then do the data restore, then swap the drives. Being stuck at step one isn't that encouraging. :-(
I have a call into HP via our software vendor (from whom we bought the system and have this convoluted service contract with), so I am hoping to hear back from them today. If not, I may try the recover solution you posed.
thanks!
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2002 09:44 AM
05-03-2002 09:44 AM
Solution1) Lvreducing mirror copy to 0 on all your LVs.
Ex: lvreduce -m 0 /dev/vg02/lvol1 /dev/dsk/
2) Do your vgexport
3) Do your vgimport. If everything looks well then ..
4) lvextend -m 1 /dev/vg02/lvol1 /dev/dsk/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2002 09:53 AM
05-03-2002 09:53 AM
Re: ignite and lvm
Working with HP will be a good solution. Good luck with that !
The reason why I suggested the last post is: 'vgimport/vgexport' works only if the disks will have the VGDA data available on that. If the disks doesn't have any VG information on that, then vgimport will not do the taks for you. In your case, you are going to set up new disks. And these disk doesn't have any VG information on that. So, if you just do a vgimport, it will not create anything. Instead of doing that, you can do either:
# vgcfgrestore OR create new VG information with vgcreate, lvcreate etc.
HTH,
Shiju