- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: SWAP Extending in HP-UX
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
тАО10-13-2010 03:39 AM
тАО10-13-2010 03:39 AM
I wanted to increase the swap which is 8GB and want to increase to 12GB. Please suggest.
# swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 8192 112 8080 1% 0 - 1 /dev/vg00/lvol2
reserve - 4825 -4825
memory 8171 2391 5780 29%
total 16363 7328 9035 45% - 0 -
# lvdisplay -v /dev/vg00/lvol2 | more
--- Logical volumes ---
LV Name /dev/vg00/lvol2
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1 <=== It is mirrored.
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 8192
Current LE 512
Allocated PE 1024
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c1t0d0s2 512 512
/dev/dsk/c1t1d0s2 512 512
\\\\\\\\ As there is 28.93GB of free space available in the system and as it is mirrored can I use the steps mentioned below.
# vgdisplay -v vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4328
VGDA 4
PE Size (Mbytes) 16
Total PE 8636
Alloc PE 6784
Free PE 1852
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
--- Physical volumes ---
PV Name /dev/dsk/c1t0d0s2
PV Status available
Total PE 4318
Free PE 926
Autoswitch On
Proactive Polling On
PV Name /dev/dsk/c1t1d0s2
PV Status available
Total PE 4318
Free PE 926
Autoswitch On
Proactive Polling On
# lvcreate /dev/vg00
# lvcreate /dev/vg00
# lvextend -L 3500 /dev/vg00/lvolN /dev/dsk/c1t0d0s2
# lvextend -L 3500 /dev/vg00/lvolN /dev/dsk/c1t1d0s2
# swapon -p 1 /dev/vg00/lvolN
# swapon -p 1 /dev/vg00/lvolN
# vi /etc/fstab
Add the new swap information to fstab
# swapinfo -tam
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2010 03:42 AM
тАО10-13-2010 03:42 AM
Re: SWAP Extending in HP-UX
# lvextend -L 12300 /dev/vg00/lvolN /dev/dsk/c1t0d0s2
# lvextend -L 12300 /dev/vg00/lvol2 /dev/dsk/c1t1d0s2
Am I right.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2010 03:50 AM
тАО10-13-2010 03:50 AM
Re: SWAP Extending in HP-UX
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2010 03:53 AM
тАО10-13-2010 03:53 AM
Re: SWAP Extending in HP-UX
You cannot increase the primary swap space just like that. extents must be contiguous.
Why not just add another swap lvol ?
This can be done online.
Regards
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2010 03:58 AM
тАО10-13-2010 03:58 AM
Re: SWAP Extending in HP-UX
You are correct I cannot increase the Prim-swap as it is. But Can I use the below steps where I am creating the new lvol and will add it to swap with the swapon -p command.
# lvcreate /dev/vg00
# lvcreate /dev/vg00
# lvextend -L 4100 /dev/vg00/lvolN /dev/dsk/c1t0d0s2
# lvextend -L 4100 /dev/vg00/lvolN /dev/dsk/c1t1d0s2
# swapon -p /dev/vg00/lvolN
# swapon -p /dev/vg00/lvolN
# vi /etc/fstab
Add the new swap information to fstab
# swapinfo -tam
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2010 04:02 AM
тАО10-13-2010 04:02 AM
Re: SWAP Extending in HP-UX
lvcreate -L "xxM" -C y -r n /dev/vgxx
swapon /dev/vgxx/lvolx
Update /etc/fstab as follows.
/dev/vgxx/lvolx . swap pri=x 0 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2010 04:09 AM
тАО10-13-2010 04:09 AM
Re: SWAP Extending in HP-UX
But the issue here is I have 2 VG i.e. Vg01 with 2 internal disk
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c1t0d0s2 512 512
/dev/dsk/c1t1d0s2 512 512
and Vg01 with only 1 lun which cannot be used to add swap as it cannot be mirrored.
# vgdisplay -v vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4328
VGDA 4
PE Size (Mbytes) 16
Total PE 8636
Alloc PE 6784
Free PE 1852
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
--- Physical volumes ---
PV Name /dev/dsk/c1t0d0s2
PV Status available
Total PE 4318
Free PE 926
Autoswitch On
Proactive Polling On
PV Name /dev/dsk/c1t1d0s2
PV Status available
Total PE 4318
Free PE 926
Autoswitch On
Proactive Polling On
\\\\ So shall I get 10GB X2 lun from storage and create a vg02 and then create lv there and then mirror it with lvextend and then add to swap with spapon command as per above command that I had mentioned.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2010 04:19 AM
тАО10-13-2010 04:19 AM
Re: SWAP Extending in HP-UX
You can increase the primary swap space if you have an ignite bakcup(using advanced options).But it requires reboot the server .
To add another LV,refer the below thraed
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1447356
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2010 04:20 AM
тАО10-13-2010 04:20 AM
Re: SWAP Extending in HP-UX
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2010 04:46 AM