- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Reducing a l.v
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
12-30-2002 10:39 PM
12-30-2002 10:39 PM
I have mistakingly extended a l.v from 250M to 8G and I need to reduce it back to 400M and this l.v contains the Oracle software which I have a tape backup for.
The question,is there any danger of corrupting the software or the f.s and if there is,can I safely restore it from tape?
Note;I used tar command for backup.
Regards
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2002 10:53 PM
12-30-2002 10:53 PM
SolutionIf that is the case then you should go for a different strategy.
If you only Oracle software then the best way is to copy the entire files to another directory in another file system which has space.
Once the file system is reduced or newly created then just copy the files from the backedup dir back to this volume.
YOu are right sometimes when you reduce your LV your it might corrupt your data with using Online JFS.
check this document for reducing the file system.
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000063231654
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2002 10:54 PM
12-30-2002 10:54 PM
Re: Reducing a l.v
If you reduce the filesystem, you loose data in that lv. Since your application is Oracle it's better to backup using export or archive log bcakup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2002 11:03 PM
12-30-2002 11:03 PM
Re: Reducing a l.v
First check whether the data in that filesystem has exceeded 400MB. If yes , then just lvreduce to 400MB will cause data loss. So take a backup before lvreduce.
If the data is less than 400MB , then you can lvreduce without data loss.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2002 11:26 PM
12-30-2002 11:26 PM
Re: Reducing a l.v
Hi,
TGM and Siva, could u pls let me know about your's.
i am available at : rbenakan@in.ibm.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2002 11:32 PM
12-30-2002 11:32 PM
Re: Reducing a l.v
Good to see you at IBM,Bangalore.
I am located at Chennai.
you can reach me at
gbmanikandan@yahoo.com
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2002 11:38 PM
12-30-2002 11:38 PM
Re: Reducing a l.v
Iam in Coimbatore.
please mail me at sivakumr@rediffmail.com
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2002 02:18 AM
12-31-2002 02:18 AM
Re: Reducing a l.v
Nice To see u Guys in Parts of South India, well ravi, I was in IBm some time back , can u please touchbase with me at asifayaz007@yahoo.com
wish Your a Happy & a Prosperous New Year
Good Luck
Asif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2003 03:12 AM
01-02-2003 03:12 AM
Re: Reducing a l.v
Let me update the info. on the problem:
-The original f.s size was 251MB
-The space used by the oracle software is 151MB
-The f.s type is hfs
-Its current f.s size is 8GB(extended by mistake)
So I want to reduce the f.s to a new size of 400MB which is 150MB more than the original size.
i understood from your replies that I can reduce safely provided the above situation is true,but if something wrong hapens can oracle software be restored from tape backup without worrieing about files links to hp-ux files and file permissions and ownerships and what have you?THIS IS WHAT AM WORRIED ABOUT.
Mind you I have used tar for backup.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2003 04:00 AM
01-02-2003 04:00 AM
Re: Reducing a l.v
Given to understand that you have taken a proper tar backup of oracle software on magnetic tape. ya, you can always restore from backup (tape) to disk and this will not have any problem.
One thing you can do is
1. remove the lv which has the oracle software.
2. re-create the lv with how much ever size you want to.
3. mount the lv as any file system of oracle
4. restore from the tape the oracle software to the newly created lv.
Hey, if you have oracle database datafiles in that directory of software then you should have taken these files a backup when the database is down (not running). Please down the database and take the datafiles backup and then restore else your database/s will not be consistent and will not come up
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2003 06:29 AM
01-02-2003 06:29 AM
Re: Reducing a l.v
you have mentioned that
(The original f.s size was 251MB
The space used by the oracle software is 151MB) .
I have done many oracle installations, till now i haven't seen any oracle version using only just 151MB of space(even client version also uses more than this).
So the better is removing this lvol and recreate with required space and reinstall the oracle.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2003 06:59 AM
01-02-2003 06:59 AM
Re: Reducing a l.v
To Sekhar:
Only the oracle s/w is on the unlucky l.v,the dbs files are all on separate l.v.
Your last reply reminds me of another matter which i want to be clear about;
The customer makes daily backup of his dbs,he has the habit of doing so before going home regardless of files bieng accessed and updated while backup is runnig(he keeps oracle up ofcours).The question is ,does that mean that the backup when it completes will not contain all up to date files?
To ravi;
You'v sugested a reinstallation of oracle after new l.v creation,does that mean you do not agree with tape restore?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2003 07:37 AM
01-02-2003 07:37 AM
Re: Reducing a l.v
If you reduce the size of LV , you need to take a backup of that LV first.
Then reduce the LV and restore the backup.
If you have oracle filesystems in that LV, please make sure that you take COLD backup.
Hope this Helps.
thanks,
-pap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2003 07:41 AM
01-02-2003 07:41 AM
Re: Reducing a l.v
sorry, if you have the cold backup it serve the purpose
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2003 10:26 AM
01-02-2003 10:26 AM
Re: Reducing a l.v
Have you tested restoring from your backups, when you use tar, it doesn't backup hidden files at the root of the filesystem in question, but it does keep ownership & permissions. I didn't use lvreduce because of the data corruption potential. I took the following steps which was safer.
1)Shutdown Oracle Databases.
2)cd to the f.s. on the l.v.
3)Backup all the files in the f.s. using tar.
Ex: tar -cvf
4)Move tar file to another directory w/enough space.
5)Unmounted the f.s.
6)Removed the l.v
Ex: lvremove
7)Created the l.v.
Ex: lvcreate -L
8)Create the f.s.
Ex: newfs -F vxfs -o largefiles -b8192
9)Mount & check new f.s. created.
Ex: mount -a & bdf
10)Copy tar file from other dir. to new one.
11)Untar the file.
Ex: tar -xvf
Note: Hidden files won't be there from the root
of the f.s.
12)Check for space distributed back to disk.
Ex:Vgdisplay -v
13)Startup Oracle Databases.
14)Remove untared file in newly created f.s.
15)Gzip the saved tar file until sure everythings working correctly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2003 10:33 AM
01-02-2003 10:33 AM
Re: Reducing a l.v
Do you have onlineJFS?. If so, then you can give a try with fsadm followed by lvreduce. Otherwise, there is no other way except to destroy and recreate it.
But if you have some space somewhere, you can create a new logical volume and copy the data.
1. Bring down oracle. Make sure this lvol is not accessed through fuser.
2. Create a new logical volume of 400MB. Mount it as some file system.
3. You can use simple 'cp' to copy the data and change the permissions on the new mount point.
cp -Rp /old_filesystem /new_filesystem
4. Unmount the old file system and new file system. Mount the new file system on the old mount point.
5. Bring up oracle database. Make sure everything is fine. Allow a couple of days.
6. Destroy the old logical volume and get the 8GB space back.
-Sri