- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to add the secondary swap to /etc/fstab
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
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
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
тАО05-06-2009 03:53 AM
тАО05-06-2009 03:53 AM
How to add the secondary swap to /etc/fstab
Hi..I have setup a secondary swap, I just need to know whats the correct syntax to add it to /etc/fstab, so it gets picked up on reboot.
From what Ive seen and read, I have put
/dev/vgsw/myswap swap pri=X 0 0
It doesnt like correct to me, am I missing some syntax ??
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2009 04:01 AM
тАО05-06-2009 04:01 AM
Re: How to add the secondary swap to /etc/fstab
this is an example from fstab(1m) manpage:
/dev/vg01/lv10 / swap defaults 0 0
the directory field can be whatever you like, since it is ignored. Sometimes, three periods are entered in this field:
/dev/vg01/lv10 ... swap defaults 0 0
HTH,
J.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2009 04:01 AM
тАО05-06-2009 04:01 AM
Re: How to add the secondary swap to /etc/fstab
Check against this document:
http://docs.hp.com/en/B2355-90950/ch06s03.html
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2009 04:14 AM
тАО05-06-2009 04:14 AM
Re: How to add the secondary swap to /etc/fstab
It should be like this..
/dev/vg01/swaplv . swap defaults 0 0
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2009 05:15 AM
тАО05-06-2009 05:15 AM
Re: How to add the secondary swap to /etc/fstab
kmsrprdb:/#strings /etc/fstab |grep swap
/dev/vg00/lvolswap2 ... swap pri=1 0 0
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2009 01:11 AM
тАО05-07-2009 01:11 AM
Re: How to add the secondary swap to /etc/fstab
# echo "/dev/vg11/lvol1 ... swap pri=0 0 0" >> /etc/fstab
is the procedure to add the swap logical volume created on the /etc/fstab.
prior to this, after swap logical volume is created do # swapon -p 0 /dev/vg11/lvol1
where /dev/vg11/lvol1 is the logical volume created for the server.
Mohammad Sanaullah
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2009 01:37 AM
тАО05-07-2009 01:37 AM
Re: How to add the secondary swap to /etc/fstab
To creating device swap 1st we have to check the value of maxswapchunks
current value will allow for more swap or not then
Create a swap volume
#lvcreate -l (size) -n swap123 -C y -r n /dev/vgxx
Then enable swap:
#swapon -p 1 /dev/vgxx/swap123
Then add the entry in the fstab file
/dev/vgxx/swap123 /default swap pri=1
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2009 07:05 AM
тАО05-07-2009 07:05 AM