- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- moving swap file to new disks
Operating System - HP-UX
1748267
Members
3549
Online
108760
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
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
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
01-13-2011 11:51 AM
01-13-2011 11:51 AM
Hi,
we're in the process replacing old xp1024 to new SAN env.
this is an VM machine with OS 11iv3.
the current swap has two disks 36G each and is mirrored.
i would like to know how to proceed with this step by step.
below is the output of my swap lvol2:
thank you in advance.
root@server18:/home/root$ strings /etc/lvmtab
/dev/vg00
/dev/disk/disk103_p2
/dev/disk/disk104_p2
LV Name VG Type Use Size Mirrors Mount Dir
------------------------------------------------------------------------------------------------------------------
/dev/vg00/lvol1 /dev/vg00 LVM vxfs 1024 1 /stand
/dev/vg00/lvol2 /dev/vg00 LVM swap/dump 4096 1 -
/dev/vg00/lvol3 /dev/vg00 LVM vxfs 1024 1 /
/dev/vg00/lvol4 /dev/vg00 LVM vxfs 656 1 /home
/dev/vg00/lvol5 /dev/vg00 LVM vxfs 9000 1 /opt
/dev/vg00/lvol6 /dev/vg00 LVM vxfs 656 1 /tmp
/dev/vg00/lvol7 /dev/vg00 LVM vxfs 6600 1 /usr
/dev/vg00/lvol8 /dev/vg00 LVM vxfs 9000 1 /var
Logical Volume /dev/vg00/lvol2
------------------------------------------------------------------------------------------------------------------
VG Name /dev/vg00
Type LVM
Cur LV 8
Open LV 8
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4238
VGDA 4
PE Size (Mbytes) 8
Total PE 8456
Alloc PE 8014
Free PE 442
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 542464m
VG Max Extents 67808
Logical Volume /dev/vg00/lvol2
------------------------------------------------------------------------------------------------------------------
LV Name /dev/vg00/lvol2
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 4096
Current LE 512
Allocated PE 1024
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default
Type LVM
Use swap/dump
Mount Directory -
Logical Volume /dev/vg00/lvol2
------------------------------------------------------------------------------------------------------------------
PV Name /dev/disk/disk103_p2
PV Status available
PV Size 33.03 GB
Free 1.73 GB
Allocated 94.77 %
LE on PV 512
PE on PV 512
PV Name /dev/disk/disk104_p2
PV Status available
PV Size 33.03 GB
Free 1.73 GB
Allocated 94.77 %
LE on PV 512
PE on PV 512
we're in the process replacing old xp1024 to new SAN env.
this is an VM machine with OS 11iv3.
the current swap has two disks 36G each and is mirrored.
i would like to know how to proceed with this step by step.
below is the output of my swap lvol2:
thank you in advance.
root@server18:/home/root$ strings /etc/lvmtab
/dev/vg00
/dev/disk/disk103_p2
/dev/disk/disk104_p2
LV Name VG Type Use Size Mirrors Mount Dir
------------------------------------------------------------------------------------------------------------------
/dev/vg00/lvol1 /dev/vg00 LVM vxfs 1024 1 /stand
/dev/vg00/lvol2 /dev/vg00 LVM swap/dump 4096 1 -
/dev/vg00/lvol3 /dev/vg00 LVM vxfs 1024 1 /
/dev/vg00/lvol4 /dev/vg00 LVM vxfs 656 1 /home
/dev/vg00/lvol5 /dev/vg00 LVM vxfs 9000 1 /opt
/dev/vg00/lvol6 /dev/vg00 LVM vxfs 656 1 /tmp
/dev/vg00/lvol7 /dev/vg00 LVM vxfs 6600 1 /usr
/dev/vg00/lvol8 /dev/vg00 LVM vxfs 9000 1 /var
Logical Volume /dev/vg00/lvol2
------------------------------------------------------------------------------------------------------------------
VG Name /dev/vg00
Type LVM
Cur LV 8
Open LV 8
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4238
VGDA 4
PE Size (Mbytes) 8
Total PE 8456
Alloc PE 8014
Free PE 442
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 542464m
VG Max Extents 67808
Logical Volume /dev/vg00/lvol2
------------------------------------------------------------------------------------------------------------------
LV Name /dev/vg00/lvol2
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 4096
Current LE 512
Allocated PE 1024
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default
Type LVM
Use swap/dump
Mount Directory -
Logical Volume /dev/vg00/lvol2
------------------------------------------------------------------------------------------------------------------
PV Name /dev/disk/disk103_p2
PV Status available
PV Size 33.03 GB
Free 1.73 GB
Allocated 94.77 %
LE on PV 512
PE on PV 512
PV Name /dev/disk/disk104_p2
PV Status available
PV Size 33.03 GB
Free 1.73 GB
Allocated 94.77 %
LE on PV 512
PE on PV 512
Solved! Go to Solution.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2011 03:17 PM
01-13-2011 03:17 PM
Solution
first create your new lvol to be used as swap
set it contiguous with "-C contiguous" option
then
remove your old swap/dump with
lvrmboot -s /dev/vg00
lvrmboot -d /dev/vg00/lvol2
then set you new lvol as swap and dump
lvlnboot -s /dev/vgxx/lvolyy
lvlnboot -d /dev/vgxx/lvolyx
boot and swap volumes can be same or different
see if settings are OK?
lvlnboot -v /dev/vgxx
reboot
swapinfo should show you the new swap volume
set it contiguous with "-C contiguous" option
then
remove your old swap/dump with
lvrmboot -s /dev/vg00
lvrmboot -d /dev/vg00/lvol2
then set you new lvol as swap and dump
lvlnboot -s /dev/vgxx/lvolyy
lvlnboot -d /dev/vgxx/lvolyx
boot and swap volumes can be same or different
see if settings are OK?
lvlnboot -v /dev/vgxx
reboot
swapinfo should show you the new swap volume
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP