- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- lvreduce - bdf
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
10-23-2002 05:42 AM
10-23-2002 05:42 AM
lvreduce - bdf
I was constrained to reduce a logical volume with the command lvreduce -L 1500 /dev/vg00/lvol12.
This wasn't a problem, it was possible to gave the new space to another lvol. By the command 'lvextend', you have to use also the command 'extendfs'. After this command the display from the command 'bdf' is for the lvextendet-lvol correct, but by the lvreduce-lvol is the display still the old size.
How I can change also this display?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2002 05:47 AM
10-23-2002 05:47 AM
Re: lvreduce - bdf
1) Backup file system
2) unmount file system
3) lvreduce -L new_size lvol_name
4) newfs -F FS_name rlvol_name
5) mount file system
6) Restore from backup
7) bdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2002 05:51 AM
10-23-2002 05:51 AM
Re: lvreduce - bdf
If there no other way without losing the datas.
(I know normaly you have to do a backup, delete the lvol, create it new and restore the datas. But I look for a faster and easier way for my labor-system!)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2002 05:54 AM
10-23-2002 05:54 AM
Re: lvreduce - bdf
if you want to decrease size of filesystem online, you must install and use onelinejfs
product (not free product). With this product
you can extend or reduce a filesystem online,
with fsadm command (with -b option).
If it was the cas you'll performed:
#fsadm -F vxfs -b
#lvreduce -L
Bye, Jerome Swiniarski.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2002 05:56 AM
10-23-2002 05:56 AM
Re: lvreduce - bdf
Even with Online (Advanced) JFS, reducing the size of a filesystem is problematic.
I'd say is time to get started restoring from a backup.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2002 05:56 AM
10-23-2002 05:56 AM
Re: lvreduce - bdf
Then
1. lvextend -L xxxM /dev/vgnn/XXXX
2. umount /
3. extendfs -F vxfs /dev/vgnn/rXXXX
4.mount /dev/vg01/lvhome /home
If you have OnlineJFS then
# lvextend -L xxxx /dev/vgnn/XXXX
# fsadm -F vxfs -b xxxxxx /
But both ways
###############
Backup is important
#################
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2002 05:57 AM
10-23-2002 05:57 AM
Re: lvreduce - bdf
I think that now you have a valid filesystem (the extended one) and a corrupted one (the lvreduced one).
I can see that you know that you have the lv level and the fs level. You should have reduced also the filesystem level BEFORE reducing the lv level. From the system view all structures of the reduced lvol are the ones of the old size, but if you try to access data, you will get an IO error. If you had OnlineJFS installed, perhaps it would have been possible to do it online (especially with JFS 3.3). Without it or with HFS you have to umount the filesystem and use fsam with a smaller size.
Try a fsck on the reduced lvol but I think that you now have to use newfs after unmounting to repair.
Regards,
Jean-Louis.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2002 05:58 AM
10-23-2002 05:58 AM
Re: lvreduce - bdf
fsadm, as part of onlineJFS, is the equivalent for the filesystem..
of course it's a terrible idea to do an lvreduce without doing a filesystem reduction beforehand..
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2002 05:58 AM
10-23-2002 05:58 AM
Re: lvreduce - bdf
An lvol is simply a container, and filesystems don't always stay at the bottom of the container. The HFS filesystem immediately places superblocks across the entire lvol when newfs (mkfs) is run, so reduction is always destructive. JFS is a bit better but without Online JFS ver 3.3, you may lose the entire directory once it is reduced.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2002 06:00 AM
10-23-2002 06:00 AM
Re: lvreduce - bdf
# fsadm -F vxfs -b [lv_size_MB]M /mount_point (reduce file system)
# lvreduce -L [lv_size_MB] lvol_name (reduce lvol)
# bdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2002 06:02 AM
10-23-2002 06:02 AM
Re: lvreduce - bdf
I agree with Shiju,you most've a full back-up of this FS,then follow the steps as they are mentioned by Shiju,then restore the data from prev. back-up.
Regards,
Hamdy