- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: 2 quick questions for lvm
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
Discussions
Discussions
Forums
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
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
тАО07-22-2003 11:48 AM
тАО07-22-2003 11:48 AM
2 quick questions for lvm
2. calculating extents into gigs, ie, if I have 400 8mg extents in my vg, what does that come out to?
thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2003 11:53 AM
тАО07-22-2003 11:53 AM
Re: 2 quick questions for lvm
1. The lvreduce only reduces the logical volume. The physical volume will still belong to the volume group. To remove a physical volume from a volume group you would use the vgreduce command.
2. To calculate the gigs via extents:
400 * 8 = 3200 megs
3200/1024 = 3.125 gigs
Hope this helps!
-Bryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2003 11:54 AM
тАО07-22-2003 11:54 AM
Re: 2 quick questions for lvm
1) lvreduce is used to reduce the size of a logical volume. You need to take backup of that FS before you do this and do an fsck after. Also, if you need to partition disk with LVM, use pvcreate, vgcreate and lvcreate commands or SAM
2) On the vgdisplay -v vg_name command, if it shows total PE = 400 and PE size = 8MG, the total capacity of the Volume group is 400*8MG which is 3.2 GB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2003 11:54 AM
тАО07-22-2003 11:54 AM
Re: 2 quick questions for lvm
2- 400x8=3200 (ie about 3.2GB)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2003 11:55 AM
тАО07-22-2003 11:55 AM
Re: 2 quick questions for lvm
-Bryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2003 11:55 AM
тАО07-22-2003 11:55 AM
Re: 2 quick questions for lvm
fsadm -F vxfs -b yourmbsizeM /mountpoint
where yourmbsize is the new size in MB, and the letter M is required.
2. (400 * 8) / 1024 = 3.125 GB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2003 11:55 AM
тАО07-22-2003 11:55 AM
Re: 2 quick questions for lvm
1. Yes, you only reduce the voliume.
2. It's should be 3.125 GB
Caesar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2003 12:01 PM
тАО07-22-2003 12:01 PM
Re: 2 quick questions for lvm
1. If you have a filesystem within the logical volume, you will first want do a backup of it. If you have OnlineJFS you can use 'fsadm' to attempt to shrink it. If you do not, then you must 'lvreduce' the logical volume container; 'newfs' the filesystem; and reload the (data) backup.
2. If you have 400 8-megabyte extents then you have 400*8*1024*1024/512 blocks where a block=512 bytes. If you have a filesystem equal to the size of the logical volume you can see this in a 'df -t mountpoint'.
Note that 1-megabyte is (1024*1024).
Regards!
...JRF...