- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: SWAP on LVM disk.
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
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
тАО02-19-2004 02:22 AM
тАО02-19-2004 02:22 AM
On the system disk I created a partion with a swap file (2 x mem)
On the Raid 5 disk array I set up LVM and created a volume as a secondary swap, the same size as on the system disk. AS I recall from HP-UX one can create a file or a device swap as needed. Have I done something incorrect by creating a secondary swap on an LVM volume?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2004 02:29 AM
тАО02-19-2004 02:29 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2004 02:31 AM
тАО02-19-2004 02:31 AM
Re: SWAP on LVM disk.
You can do all of your disk management except mirroring with the Linux LVM port.
You can do mirroring on LVM logical volumes with the standard Linux mirror software.
I think you may have created too much swap.
Your original swap was twice memory which is as high as one should go. I accidently made a box with swap 4x memory and it runs like a dog. Now I have to buy it a RAM chip.
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
тАО02-19-2004 02:59 AM
тАО02-19-2004 02:59 AM
Re: SWAP on LVM disk.
Steven: Thanks for the tip. I think the person on-site wants to upgrade the memory, but maybe the additional swap should wait until that happens.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2004 03:11 AM
тАО02-19-2004 03:11 AM
Re: SWAP on LVM disk.
If your logical volume for swap is called /dev/vg01/lvol1 then "lvdisplay /dev/vg01/lvol1" should show something like "contiguous" against the "Allocation" field.
But, in answer to your question, yes ther eis a command called "lvcreate". You can try "man lvcreate" if you don't believe me :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2004 10:04 AM
тАО02-19-2004 10:04 AM
Re: SWAP on LVM disk.
Now, as for the adding more swap thing. Do you really need it? Look at the values in /proc/meminfo (in particular SwapFree). If that is low, then yes, you need both more memory, and more swap.
If that's still a reasonable value, then I'd assume you wouldn't need more.
If the value of 'Swap Used' is high, you probably need more memory.
That gets convoluted however due to the way buffers and IO caching is handled in Linux..
Example for ya, from my little Fedora box..
It started life with 128MB of ram, the Swap used was constantly 40-60MB. Ok, needs more memory.
Threw in a few 256M sticks, now has a total of 512MB. After a few weeks of running, it's back to using about 30-40MB of swap. However, the Cache and Buffers values are now around 140+MB a piece. The performance of the box is many times what it was.
Linux swaps out things which don't get used often. As the machine only gets 200-300 mail messages a day, it's pretty idle, so things like spamasssassin, sshd, squid, httpd etc. get swapped out as they aren't getting used..
The memory management isn't as cut/clear as it is in some of the modern Unixen (HPUX/SCO/etc.), but once you get comfortable with it, it's fun..
.. hrm, I've probably just gone and confused ya :P Anyway, Check how much swap is getting used before doing too much. It may be unnecessary to increase it if it's already double-physical-ram..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2004 07:40 PM
тАО02-19-2004 07:40 PM
Re: SWAP on LVM disk.
Stuart: No, you didn't confuse me at all. It's always good to receive additional useful information. I'll keep some of your hints in mind. The only reason I gave 4x mem was because mem will be upgraded shortly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2004 07:54 PM
тАО02-19-2004 07:54 PM