- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Re: swapon -s do not show results
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
тАО05-23-2007 04:08 AM
тАО05-23-2007 04:08 AM
I have a problem with swapon -s command, when i execute swapon -s show following:
root@xxxxxxxxxx:/# swapon -s
Total swap allocation:
Allocated space: 0 pages (0.00KB)
In-use space: 0 pages ( 0%)
Available space: 0 pages ( 0%)
root@xxxxxxxxxx:/#
In sysconfigtab file i haven't any line with vm swapdevice configuration. In other systems i have the following line (swapdevice = /dev/disk/dsk0b) but i haven't in this.
How can i modify this configuration???
Thank's in advance
Jes├║s.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2007 04:31 AM
тАО05-23-2007 04:31 AM
Solutiondisklabel -r dskX
You should see a swap partition, for example, dsk0b, check for a line like this:
b: 59597664 1048576 swap # 371*- 21505*
Then to add that partition as swap follow this procedure:
swapon /dev/disk/dsk0b
Create a file called vm.stanza, with this contents:
vm:
swapdevice=/dev/disk/dsk0b
And then run:
sysconfigdb -m -f vm.stanza
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2007 04:33 AM
тАО05-23-2007 04:33 AM
Re: swapon -s do not show results
http://forums1.itrc.hp.com/service/forums/publicProfile.do?userId=BR877275&forumId=1
It shows:
I have assigned points to 0 of 17 responses to my questions.
It's nice to thank by giving points to the answers you get.
Please see:
http://forums1.itrc.hp.com/service/forums/helptips.do?#28
Have a nice day.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2007 10:25 AM
тАО05-23-2007 10:25 AM
Re: swapon -s do not show results
Ann
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2007 07:31 PM
тАО05-23-2007 07:31 PM
Re: swapon -s do not show results
Thank you very much for your response, i try to make it.
Only one thing, when i make the procedure, i think to need reboot the system, is correct this?
Thank's in advance.
Jes├Г┬║s.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2007 07:42 PM
тАО05-23-2007 07:42 PM
Re: swapon -s do not show results
Please post output of:
# disklabel -r dsk0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2007 07:55 PM
тАО05-23-2007 07:55 PM
Re: swapon -s do not show results
8 partitions:
# size offset fstype fsize bsize cpg # ~Cyl values
a: 4000000 0 AdvFS # 0 - 787*
b: 13000000 4000001 swap # 787*- 3346*
c: 35565080 0 unused 0 0 # 0 - 7000
d: 0 0 unused 0 0 # 0 - 0
e: 0 0 unused 0 0 # 0 - 0
f: 0 0 unused 0 0 # 0 - 0
g: 10000000 17000001 AdvFS # 3346*- 5314*
h: 8000000 27000001 AdvFS # 5314*- 6889*
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2007 08:16 PM
тАО05-23-2007 08:16 PM
Re: swapon -s do not show results
What you have to do is (this is for version 5.X)
- edit sysconfigtab and add line:
"swapdevice = /dev/disk/dsk0b" under vm section
- do:
# swapon -a (this should mount swap)
- do:
# swapon -s
to check everything is OK
No need to reboot. In case anything goes wrong, post error message.
And please post your OS version.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2007 08:24 PM
тАО05-23-2007 08:24 PM
Re: swapon -s do not show results
My OS version is 5.1A, i have executed the swapon [swap device] command and it has finished correctly.
I have added the swap device in sysconfigtab and only need reboot de system for check that the sysconfigtab is correct.
Thank you for all.
Jes├Г┬║s.