- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: increase size of a logical volume that is alre...
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-05-2001 02:51 PM
10-05-2001 02:51 PM
(i want to do this online!)
lvreduce -m 0 /dev/vg00/lvolhome /dev/dsk/c1t0d0
lvextend -L 4000 dev/vg00/lvolhome /dev/dsk/c2t0d0
lvextend -m 1 /dev/vg00/lvolhome /dev/dsk/c1t0d0
fsadm -F vxfs -b 4000M /home
...or is there a more efficient way?
NOTE: not needing contiguous PEs ...thankfully
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2001 03:09 PM
10-05-2001 03:09 PM
Re: increase size of a logical volume that is already mirrored
If you are just increasing the LV on the same
disk as before and there is enough disk space
there is no need to actually reduce the mirror.
All you need to do is the
# lvextend -L 4096 /dev/vg00/lvolhome (4Gb)
and the fsadm to increase the filesystem size.
HTH
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2001 03:13 PM
10-05-2001 03:13 PM
Re: increase size of a logical volume that is already mirrored
Do you have 2 GB of free space on both the disks c2t0d0 and c1t0d0. If you have, then the command should are okay.
I'm not using online jfs myself, so i can't say anything about the last command "fsadm", but if you are not using online JFS, then you have to use extendfs in place of "fsadm".
hope this helps.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2001 03:17 PM
10-05-2001 03:17 PM
Re: increase size of a logical volume that is already mirrored
There is no need to reduce (eliminate) the mirror. You can extend the logical volume and mirrored extents will be created automatically.
Remember to make sure that you have (and you probably do have, because this is the default) a 'strict' allocation policy is in force. That is, mirrors of a logical extent cannot share the same physical volume. If necessary, this can be set or changed by 'lvchange'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2001 03:27 PM
10-05-2001 03:27 PM
SolutionIn my post, i omitted one thing. If you want that the mirror should be on c1t0d0 only, then you should do lvreduce -m 0, else you can simply do a lvextend and the mirror will also get extended in that VG. If you using a pvg strict mirroring, the mirror will be on a different disk/path.
remember you have to do a lvreduce only if you want that the mirror copy after extendng the volume the volume should be on a particular disk only.
If you don't do lvreduce and just do a lvextend and fsadm/extendfs, there is no gurantee that the mirror will be on the disk you want, even if you have a pvg strict mirroring in place (and if you have more that 1 pv in each set of disks).
Hope this helps.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2001 03:45 PM
10-05-2001 03:45 PM
Re: increase size of a logical volume that is already mirrored
There is no need whatsoever to do the lvreduce and in fact why make yourself vulnerable. That is what the mirror is for even for the brief time involved. The other way to do this is via SAM; it will extent the lvol for you and extend the filesystem. Before I ever let SAM do this for me, I looked through every piece of the code and it is solid. One tip: Make certain that there is a .fsadm under /home/lost+found or the filesystem extend will fail. Two tip: Why not move /home to another volume group - there is no need or requirement that it be in vg00.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2001 05:08 PM
10-05-2001 05:08 PM
Re: increase size of a logical volume that is already mirrored
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2001 10:01 AM
10-08-2001 10:01 AM
Re: increase size of a logical volume that is already mirrored
Michael: i think i need to reduce the mirror because of having 4 PVs in vg00 ...thx for reminding me that 4GB is better represented as 4096
Sanjay: thx for pointing out that i did not mention how many PVs i had and how much free PEs they had! and based on my situation i think i need to do what you said and "lvreduce -m 0 ..." my LV first!
James: thx for pointing out the need for "strict" allocation. also i want to control where the mirrored PEs go since there are 4 PVs. if i just do a lvextend then i am not guaranteed that the same 2 PVs will be used to extend the LV (sorry on my part for not stating better my environment)
Clay: SAM is solid but SAM uses the "Default Allocation Policy" which to me is not solid. also i do not have a file called /home/lost+found/.fsadm and have never even heard of that requirement before?? are you sure i need that file? also i agree about /home not needing to be in vg00, but on this small system all the PVs are owned by vg00!
Sridhar: thx for pointing out like some others that lvextend does take care of mirroring automatically. it is just that i want to control what PV gets the mirrored PEs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2001 09:00 AM
11-06-2001 09:00 AM
Re: increase size of a logical volume that is already mirrored
the man page fsadm_vxfs (paragraph 3 from the bottom of page 4) states that "... When fsadm is invoked, it opens the file lost+found/.fsadm in the root of the file system specified by mount_point. If the file does not exist, it is created..."
Regards,
Hai