HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Reduction of LV without data loss
Operating System - HP-UX
1834045
Members
2359
Online
110063
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
Forums
Discussions
Discussions
Discussions
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
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
08-07-2002 11:41 PM
08-07-2002 11:41 PM
Hi,
from our DBA I got a false request for increase of a filesystem (i.e. she gave me the wrong mountpoint).
On the box we have installed OnlineJFS.
So I easily increased the filesystem to the requested new size.
Now she wants the space that was allocated to the wrong filesystem back for the filesystem she originally meant.
Easy stuff,
I reduced the filesystem, that undeservedly had been increased by me before, to the old size (I saved a dump of bdf, and lvdisplay before increasing, 13 GB was the old size).
I issued:
# fsadm -b $((13000*1024)) /oracle/Z01/sapdata1
fsadm: /etc/default/fs is used for determining the file system type
fsadm: /dev/vgz01/rlvol12 is currently 23552000 sectors - size will be reduced
When I now try to reduce the LV back to the 13 GB in order to get the PEs back for the other LV that really needed to be increased, I get this warning about possible data loss which really upsets me:
# lvreduce -L 13000 /dev/vgz01/lvol12
When a logical volume is reduced useful data might get lost;
do you really want the command to proceed (y/n) : n
Logical volume "/dev/vgz01/lvol12" is not reduced.
Volume Group configuration for /dev/vgz01 has been saved in /etc/lvmconf/vgz01.c
onf
As I already reduced the filesystem to those 13 GB is it save to continue and ignore the warning?
from our DBA I got a false request for increase of a filesystem (i.e. she gave me the wrong mountpoint).
On the box we have installed OnlineJFS.
So I easily increased the filesystem to the requested new size.
Now she wants the space that was allocated to the wrong filesystem back for the filesystem she originally meant.
Easy stuff,
I reduced the filesystem, that undeservedly had been increased by me before, to the old size (I saved a dump of bdf, and lvdisplay before increasing, 13 GB was the old size).
I issued:
# fsadm -b $((13000*1024)) /oracle/Z01/sapdata1
fsadm: /etc/default/fs is used for determining the file system type
fsadm: /dev/vgz01/rlvol12 is currently 23552000 sectors - size will be reduced
When I now try to reduce the LV back to the 13 GB in order to get the PEs back for the other LV that really needed to be increased, I get this warning about possible data loss which really upsets me:
# lvreduce -L 13000 /dev/vgz01/lvol12
When a logical volume is reduced useful data might get lost;
do you really want the command to proceed (y/n) : n
Logical volume "/dev/vgz01/lvol12" is not reduced.
Volume Group configuration for /dev/vgz01 has been saved in /etc/lvmconf/vgz01.c
onf
As I already reduced the filesystem to those 13 GB is it save to continue and ignore the warning?
Madness, thy name is system administration
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2002 11:55 PM
08-07-2002 11:55 PM
Solution
Hi,
Yes, this should be OK. If there were any blocks present in the area above 13Gb, the fsadm-command would have complained. The warning from lvreduce is "default".
Regards,
Tom
Yes, this should be OK. If there were any blocks present in the area above 13Gb, the fsadm-command would have complained. The warning from lvreduce is "default".
Regards,
Tom
A life ? Cool ! Where can I download one of those from ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2002 12:06 AM
08-08-2002 12:06 AM
Re: Reduction of LV without data loss
Hello,
Since you've just increased the file system, you won't get any data loss. But, if you have been using this size for a long time, you MIGHT have data loss.
It is recommended when reducing online that you defragment your filesystem first. Since you've just increased it, data is not present in the upper part where you want reduced so you can safely reduce it without data loss.
HTH,
Vince
Since you've just increased the file system, you won't get any data loss. But, if you have been using this size for a long time, you MIGHT have data loss.
It is recommended when reducing online that you defragment your filesystem first. Since you've just increased it, data is not present in the upper part where you want reduced so you can safely reduce it without data loss.
HTH,
Vince
Tape Drives RULE!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2002 01:56 AM
08-08-2002 01:56 AM
Re: Reduction of LV without data loss
Tom is dead right - fsadm would fail first if there was data on the area being reduced.
If you have JFS version 3.3 (on 11.0 or its the default on 11i) it automaticall moves data on the area being reduced (if any in use) out of the way when you do the fasdm command so its safe as, but you still get the warning message from lvreduce afterwards! (nothing to worry about)
Im from Palmerston North, New Zealand, but somehow ended up in London...
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP