- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- replacing swap volumes with new PVs.
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
09-06-2005 04:55 AM
09-06-2005 04:55 AM
I have some servers with swap on the Symm (marked below with "==>":
# swapinfo -atm
Mb Mb Mb PCT START
TYPE AVAIL USED FREE USED LIM RESRV PRI NAME
dev 4096 0 4096 0% 0 - 1 /dev/vg00/lvol2
==> dev 8608 0 8608 0% 0 - 0 /dev/vgswap/swap
==> dev 4288 0 4288 0% 0 - 0 /dev/vgswap/swap1
reserve - 10147 -10147
memory 18862 4984 13878 26%
total 35854 15131 20723 42% - 0 -
I have two quetions:
1. Can I "lvextend/lvreduce/vgreduce" the swap out like I would do with
a "normal" VG/LV?:
vgextend /dev/vg01 /dev/dsk/c2t0d2 # extend the VG
lvextend -m 1 /dev/vg01/lvol1 /dev/dsk/c2t0d2
#
lvreduce -m 0 /dev/vg01/lvol1 /dev/dsk/c1t0d0
vgreduce /dev/vg01 /dev/dsk/c1t0d0
2. Our new Symm doesn't have any 4 GB HyperVolumes, like the old Symm did,
as in LV "/dev/vgswap/swap1" above.
Can I use an 8 GB PV to replace a 4 GB PV in LV "/dev/vgswap/swap1" above?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2005 05:04 AM
09-06-2005 05:04 AM
Solution1. Yes, the mirroring operations(lvextend/lvreduce/vgreduce) can be done on swap lvols as we do in "normal" lvols.
2. Yes, 4GB PV can be replaced by 8GB PV - as long as you do one mirror at a time.
Hope this helps
-Jagadeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2005 05:04 AM
09-06-2005 05:04 AM
Re: replacing swap volumes with new PVs.
I believe it's going to be a little awkward. Since there is no "swapoff" command, you'll probably need to edit the additional swap devices out of /etc/fstab and reboot before you can remove them. Then you can add in your new PVs and assign swap to them.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2005 05:05 AM
09-06-2005 05:05 AM
Re: replacing swap volumes with new PVs.
Im afraid the only way I see here would be to remove these 2 swaps at next reboot, reboot then recreate them on your new Symm
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2005 05:06 AM
09-06-2005 05:06 AM
Re: replacing swap volumes with new PVs.
Just an fyi though, if you're not doing it now (it appears that you're not from the example script above) - you really should think about leaving swap mirrored. I've always operated on the idea that if a swap area(disk) goes down, the whole server goes down. Therefore, even though it seems like a terrible waste, go ahead an mirror swap.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2005 05:18 AM
09-06-2005 05:18 AM
Re: replacing swap volumes with new PVs.
I don't think you need reboot to do this(as suggested above) - IF you just need to move from old to new SYMM.
As per you plan, this can be done online.
1. Add a new 8GB PV into you VG
2. Mirror swap lvols.
3. lvreduce the old PVs from swap lvols
4. vgreduce to remove the old 4GB PVs.
-Regards
Jagadeesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2005 07:16 AM
09-06-2005 07:16 AM
Re: replacing swap volumes with new PVs.
As pointed out, if you can mirror/lvreduce/vgreduce on the fly, you don't need to reboot.
These are EMC disks and don't need to be LVM mirrored. But I do agree that your "root disk swap" should be mirrored just as much as /opt should be mirrored.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2005 08:10 AM
09-06-2005 08:10 AM
Re: replacing swap volumes with new PVs.
Please excuse the unnecessary comment then.
I also agree that you will be able to do this w/o coming down because the LV is never taken down in proposed process.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2005 01:09 AM
09-09-2005 01:09 AM