- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HP-UX 11.0 and LVM oddness
Operating System - HP-UX
1753879
Members
7400
Online
108809
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-05-2006 10:14 AM
тАО07-05-2006 10:14 AM
It's been about 5 years since I've done any "real" sysadmin work on HP-UX, so please bear with me. I'll try to keep a long story not so long.
I'm helping a company migrate data from one system to another and I'm poking around one of their VGs and I notice that there are 4 PVs - 1 100GB EMC LUN, 1 36GB external SCSI drive and 2 18GB internal SCSI drives. I was incredibly shocked at this VG to say the least.
My main goal at this point was to get rid of the SCSI drives and keep the EMC LUN in the VG. I backed up the data and vgreduced 2 of the PVs (they had no data allocated). The last SCSI drive had data from one of the LVs. I umounted the LV, lvreduced the LV, vgreduced the last SCSI drive and then lvextended again (presumably from the EMC LUN). I tried to mount the LV and had to run an fsck. Afterwards I was able to successfully remount and it appears that all of my data is there! I've done some spot checks and everything looks good.
Although the lvreduce doesn't necessarily remove the data, the fact that I removed a drive with data on it from the VG does bother me when I can't find any data loss. The other odd thing is no matter what size I create the LV (using the same name, so maybe that is the issue), when I do a bdf, it reports the original size (35G when I only allocated say 30G). I have yet to reboot, so maybe something hasn't been cleared out of memory/cache yet.
Anyway, hope this makes sense. I would love any insight someone could give. Thanks...
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-05-2006 12:13 PM
тАО07-05-2006 12:13 PM
Solution
You vgreduced the PV's which didn't have any PE allocated to an lvols.... this is ok to do. Then you unmounted the lv and lvreduced... ouch. :) That lvol had a filesystem on it.
How did you reduce the lvol? Which commands and was online jfs used by any chance?
Idealy you'd reduce the size of the filesystem (if online jfs) then reduce the size of the lvol. If no online jfs is availa, you'd lvreduce... then newfs and restore the data.
To play it safe at this point, I would remove the lvol and create it at the needed size. Then newfs and restore the data from backup.
If it's a learning experience and nothing too critical that you need to get stable asap, I'd mess around a bit more then reboot and then would play some more... then newfs and restore.
-denver
How did you reduce the lvol? Which commands and was online jfs used by any chance?
Idealy you'd reduce the size of the filesystem (if online jfs) then reduce the size of the lvol. If no online jfs is availa, you'd lvreduce... then newfs and restore the data.
To play it safe at this point, I would remove the lvol and create it at the needed size. Then newfs and restore the data from backup.
If it's a learning experience and nothing too critical that you need to get stable asap, I'd mess around a bit more then reboot and then would play some more... then newfs and restore.
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2006 12:33 AM
тАО07-06-2006 12:33 AM
Re: HP-UX 11.0 and LVM oddness
Thanks for the response, Denver.
I simply did an lvreduce -l 0 /dev/vg/lv.
It looks like my biggest problem was not doing a newfs. I swear I did, but apparently not since I just ran the newfs and everything was wiped and the lv is at the proper size now (which is what I wanted in the first place). I'm currently restoring the data now.
I used to be pretty good at this stuff years ago! ;-) Thanks again.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP