- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Device swap
Operating System - HP-UX
1756310
Members
3258
Online
108844
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
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
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
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
тАО06-15-2006 01:10 AM
тАО06-15-2006 01:10 AM
Device swap
I want to add one hard disk to my servr. and want to use it as swap device. I need to procedure to do that could anyone help me on this.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2006 01:17 AM
тАО06-15-2006 01:17 AM
Re: Device swap
The whole disc? Seems a bit extravagant.
The easiest way is via SAM. Set up a new logical volume and set the use to swap rather than filesystem. But given that the smallest discs currently available are 36 Gb I would rethink - that is an awful lot of swap and potentially wasted disc space.
Mark Syder (like the drink but spelt different)
The easiest way is via SAM. Set up a new logical volume and set the use to swap rather than filesystem. But given that the smallest discs currently available are 36 Gb I would rethink - that is an awful lot of swap and potentially wasted disc space.
Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2006 01:25 AM
тАО06-15-2006 01:25 AM
Re: Device swap
You really should add 2 disks and mirror them. You REALLY need to have your swap space mirrored. If the disk you add goes bad, there is a chance that your system could have severe problems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2006 01:36 AM
тАО06-15-2006 01:36 AM
Re: Device swap
Shruti,
As already advised by Patrick, you should look at adding 2 disks as swap should be mirrored so as to cater against failure of disk used by swap in which case there is high probability that the system will crash.
The steps would be
Add the disks to the VG (Need not be vg00 can be any existing vg or a new VG. Assuming adding to new VG)
1. Create a VG
mkdir /dev/vgnew
mknod /dev/vgnew/group c 64 0xnn0000
(nn should be unique no. - check using ll /dev/*/group)
pvcreate /dev/rdsk/c?t?d? (pvcreate both disks)
vgcreate /dev/vgnew /dev/dsk/c?t?d? /dev/dsk/c?t?d?
2. create volume for swap
lvcreate -L 1024 -n swapvol2 -C y -r n /dev/vgnew -s y -m 1
3. add following line to /etc/fstab
/dev/vgnew/swapvol2 swap swap defaults 0 0
4. swapon -a
Please let us know more details if your requirement is anything else.
Regards,
Ninad
As already advised by Patrick, you should look at adding 2 disks as swap should be mirrored so as to cater against failure of disk used by swap in which case there is high probability that the system will crash.
The steps would be
Add the disks to the VG (Need not be vg00 can be any existing vg or a new VG. Assuming adding to new VG)
1. Create a VG
mkdir /dev/vgnew
mknod /dev/vgnew/group c 64 0xnn0000
(nn should be unique no. - check using ll /dev/*/group)
pvcreate /dev/rdsk/c?t?d? (pvcreate both disks)
vgcreate /dev/vgnew /dev/dsk/c?t?d? /dev/dsk/c?t?d?
2. create volume for swap
lvcreate -L 1024 -n swapvol2 -C y -r n /dev/vgnew -s y -m 1
3. add following line to /etc/fstab
/dev/vgnew/swapvol2 swap swap defaults 0 0
4. swapon -a
Please let us know more details if your requirement is anything else.
Regards,
Ninad
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