- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: LVreduce error HELP!!!!
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
03-04-2003 05:11 AM
03-04-2003 05:11 AM
I thought I was reducing the 13gb drive by 2 gb to 11gb. I have actually reduced it by 11gb to 2gb ARRGGHHH!!!! It was full of Oracle dbases I have not done anything else i.e. fsadm or give any other lvol the space..please tell me there is away to save me.....all the data is still there....help!!!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 05:15 AM
03-04-2003 05:15 AM
Re: LVreduce error HELP!!!!
I am afraid you lost your data. I hope you made a back up before reducing the lvol.
Fr??d??ric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 05:25 AM
03-04-2003 05:25 AM
Re: LVreduce error HELP!!!!
Surely there is some file that can be edited somewhere that can save me???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 05:29 AM
03-04-2003 05:29 AM
Re: LVreduce error HELP!!!!
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 05:29 AM
03-04-2003 05:29 AM
SolutionIf the filesystem is still mounted then you may have problems unmounting it.
I'd suggest...
Unmount the filesystem, you'll probably have to force kill any processes using it.
Extend it back exactly as it was before you reduced it. If it wasn't in a contiguous area and you don't have an extent map then you're stuffed.
Do a full fsck of the filesystem, if that's OK, mount the filesystem. Oracle have a utility to check that datafiles are not corrupt (can't remember what it's called though), identify that and try running it against each datafile.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 05:40 AM
03-04-2003 05:40 AM
Re: LVreduce error HELP!!!!
Thanks for giving me the glimmer of hope (even if it fails) I was able to unmount the lvol no problem. It was not in a contiguous area as I think it spanned two disks. However there was very little space om the system which is why I was doing this in the first place. So in theory if I give it back the space it should go back to where it was? Or am I just wishful thinking?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 05:51 AM
03-04-2003 05:51 AM
Re: LVreduce error HELP!!!!
One possibility is to run vgcfgrestore to restore the VG configuration BEFORE you did the lvreduce. That'll mean using /etc/lvmconf/vg??.old because /etc/lvmconf/vg?? will have your lvreduce changes applied. It's got to be worth a try...
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 06:01 AM
03-04-2003 06:01 AM
Re: LVreduce error HELP!!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 06:18 AM
03-04-2003 06:18 AM
Re: LVreduce error HELP!!!!
# vgcfgrestore -f /etc/lvmconf/vgNN.conf.old /dev/rdsk/cXtYdZ
As John suggested, use the ".old" configuration file since this would/should be the configuration *before* your 'lvreduce' occured. Have a look at the man pages for 'vgcfgrestore' for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 06:20 AM
03-04-2003 06:20 AM
Re: LVreduce error HELP!!!!
In your case you need to restore the information to ALL the disks in your volume group. You should check the files in /etc/lvmconf to ensure that the vg??.old file is the correct one. They are created by vgcfgbackup and all LVM commands that change the configuration call vgcfgbackup automatically. If you've run lvreduce more than once for instance then you'd have to restore the correct vg??.conf from a backup.
If there are other lvols in your VG then it would be worth backing them up before trying the following...
1. Determine which disks are in ypur VG..
vgdisplay -v vg??|grep "PV Name"
2. Unmount all filesystems and deactivate your vg...
vgchange -n vg??
3. vgcfgrestore each and every disk in your VG with the .old config file...
vgcfgrestore -n vg?? -f /etc/lvmconf/vg??.old /dev/dsk/c?t?d?
Your VG should now be restored to the configuration before you did lvreduce so you can reactivate your VG with vgchange -a y vg?? then run fsck and remount the filesystems.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 06:48 AM
03-04-2003 06:48 AM
Re: LVreduce error HELP!!!!
I have been looking at the man pages for vgcfgrestore and your responses and it sounds like it should work and undo my mistake......but if it doesnt....my whole system could be messed up...what a lovely choice to have to make :(
1. Determine which disks are in ypur VG..
vgdisplay -v vg??|grep "PV Name"
I have two disks in one volume group vg00 when i enter the commands vgdisplay..for the first one I get this
PV Name /dev/dsk/c1t2d0
PV Name /dev/dsk/c1t2d0
and for the second one I get this
PV Name /dev/dsk/c2t2d0
Next
2. Unmount all filesystems and deactivate your vg...
vgchange -n vg??
Ok I have never done this before but I will now,
Next
3. vgcfgrestore each and every disk in your VG with the .old config file...
vgcfgrestore -n vg?? -f /etc/lvmconf/vg??.old /dev/dsk/c?t?d?
So I identify my two disks, unmount and deactivate all of my vg and then run vgcfgrestore....
Arrgghhh I am scared!!!
Then reactivate my VG with vgchange -a y vg?? then run fsck and remount the filesystems.
Have I got it?
I really appreciate this and I apologise if I am making you hold my hand doing this but as you can imagine the last thing I want to do is make a bad situation worse!!
Thanks so much for all the help :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 06:52 AM
03-04-2003 06:52 AM
Re: LVreduce error HELP!!!!
"I have two disks in one volume group vg00 when i enter the commands vgdisplay..for the first one I get this
PV Name /dev/dsk/c1t2d0
PV Name /dev/dsk/c1t2d0 "
Whatever you do, don't mess with vg00. That's your root VG where the OS resides. You should be trying to recover the other VG.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 07:03 AM
03-04-2003 07:03 AM
Re: LVreduce error HELP!!!!
I dont understand you? I have only one volume group vg00? I have two disks/physical volumes in this one volume group I know thats probably not good planning etc. but thats the way it is? And I am stuck with it for now.
So what do you mean that I should try to recover the other volume group?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 07:06 AM
03-04-2003 07:06 AM
Re: LVreduce error HELP!!!!
Provided you are sure that the one lvreduce command is all that you've done then you should still be OK but you should be consifering doing this in LVM maintenance mode...
reboot
interrupt the boot processs
bo PRI
reply y to interact with ISL?
hpux -lm
When you get the shell prompt, only / will be mounted and vg00 will not be activated. You'll be able to do your two vgcfgrestore commands then reboot...
vgcfgrestore -n vg00 -f /etc/lvmconf/vg00.conf.old /dev/dsk/c1t2d0
vgcfgrestore -n vg00 -f /etc/lvmconf/vg00.conf.old /dev/dsk/c2t2d0
reboot
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 07:09 AM
03-04-2003 07:09 AM
Re: LVreduce error HELP!!!!
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 07:12 AM
03-04-2003 07:12 AM
Re: LVreduce error HELP!!!!
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 07:13 AM
03-04-2003 07:13 AM
Re: LVreduce error HELP!!!!
I can only acess this machine through telnet etc. I dont have a unix monitor...oh this is getting messy...
I do have the SWC can I interupt the boot process from there? If I reboot, while logged into the SWC in theroy I should be able to see it coming back up, where do I interupt and how? Is it cntrl C??
Thanks you so much for bearing with me :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 07:20 AM
03-04-2003 07:20 AM
Re: LVreduce error HELP!!!!
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 07:20 AM
03-04-2003 07:20 AM
Re: LVreduce error HELP!!!!
bo pri
and enter Y to the question "Do you want to interact with IPL". You'll then get the ISL prompt. At ISL prompt enter ..
ISL> hpux -is
to boot as single user mode or if you like ..
ISL> hpux -lm
to boot in LVM maintenance mode. The latter is what you need if you're dealing with vg00.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 07:26 AM
03-04-2003 07:26 AM
Re: LVreduce error HELP!!!!
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 07:29 AM
03-04-2003 07:29 AM
Re: LVreduce error HELP!!!!
I think I will try running it while the vg is still active..worst case scenario is it doesnt work right? (see my obituary now....sys admin beaten to death by Oracle dba)
So have I got these commands right :
vgcfgrestore -R -n /dev/vg00 /etc/lvmconf/vg00.conf.old /dev/dsk/c1t2d0
for the first disk and
vgcfgrestore -R -n /dev/vg00 /etc/lvmconf/vg00.conf.old /dev/dsk/c2t2d0 for the second disk
Have I got these commands right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 07:31 AM
03-04-2003 07:31 AM
Re: LVreduce error HELP!!!!
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 07:33 AM
03-04-2003 07:33 AM
Re: LVreduce error HELP!!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 07:34 AM
03-04-2003 07:34 AM
Re: LVreduce error HELP!!!!
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 07:36 AM
03-04-2003 07:36 AM