- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Swap volume problem
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
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
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
01-09-2002 01:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2002 02:06 AM
01-09-2002 02:06 AM
Re: Swap volume problem
Firs of all increasing swap is hard to do because it have to be continious, so your firs swap is on 2nd lvol, so after lvol2 already exist lvol3. The best method is to add second swap.
To add second swap use SAM is the simplest method.
hope it help You
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2002 02:08 AM
01-09-2002 02:08 AM
Re: Swap volume problem
It's warning you that the diskspace that you intend to use contains a filesystem.
See man 1m swapon fro details.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2002 02:14 AM
01-09-2002 02:14 AM
Re: Swap volume problem
lvcreate does not!! format you logical volume.
now swapon seen that there is an existing file system on this lvol.
No problem to use this as a swap volume if you are sure you created your lvol fine
Regards
rainer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2002 05:48 AM
01-09-2002 05:48 AM
Re: Swap volume problem
swapon -e -f -p 1 -u /dev/vg00/swap2
should work.
After this make an entry in /etc/fstab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2002 06:05 AM
01-09-2002 06:05 AM
Re: Swap volume problem
From looking at you lvcreate command you did not specify a drive. It is possible that lvswap2 is on a different drive then c2t5d0.
What do you get when you do a
lvdisplay -v /dev/vg00/lvswap2?
In either case there once was a filesystem on the drive /dev/vg00/lvswap2 is on.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2002 10:07 AM
01-09-2002 10:07 AM
Re: Swap volume problem
Ron:
pvdisplay info. attached was reported before creating swap2 lvol.
For all:
If swap2 is a new lvol how could it any file system on it before???????
Do you think is safe to use -f option?
Thanks to all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2002 10:42 AM
01-09-2002 10:42 AM
Solutionjust by creating a new LV you do actually NOT write that much to the disk drive(s) - and NOTHING to the place allocated to the new LV!
Hence, if those sectors were used by the (beginning) of another LV (which did contain a file-system), those sectors STILL contain it! And when "swapon" read the first block from that LV, it gets the former "super-block" of the previous file-system - and complains!
Exactly for those cases you have the force option (-f).
The other problem is much more difficult - your kernel can only address as much space as given as the product of the kernel parameters "maxswapchunks" times "swchunksize" (usually 2MB each). You will have to generate a new kernel with those parameters increased - in m opinion it is always safer to have about 25% more swap space addressable as used. Only then you can add swap-space online without downtime (a new kernel needs a reboot to start working).
Just my ???0.02,
Wodisc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2002 10:46 AM
01-09-2002 10:46 AM
Re: Swap volume problem
Did you have another volume starting at the same point on the disk before?
swapon is just being extra careful before overwriting what it thinks could be a valid filesystem. It's perfectly acceptable to use the -f option and quite safe.
Regards,
John