- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: swap creation
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
тАО02-04-2010 05:05 PM
тАО02-04-2010 05:05 PM
I had 2 swap areas in vg00 which i removed and trying to create new swape but ended up with below error
lvcreate -L 8192 -C y -r n /dev/vg00
Logical volume "/dev/vg00/lvol10" has been successfully created with
character device "/dev/vg00/rlvol10".
lvcreate: Not enough free physical extents available.
Logical volume "/dev/vg00/lvol10" could not be extended.
Failure possibly caused by contiguous allocation policy.
Run the "lvextend" command to create space on the Logical Volume.
Regards
himacs
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2010 05:35 PM
тАО02-04-2010 05:35 PM
Re: swap creation
# vgdisplay vg00
Look for "free space" = "free PE" * "PE size"
That is check if enough space is available.
How many disks involved in vg00? (mirroring?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2010 05:37 PM
тАО02-04-2010 05:37 PM
Re: swap creation
I would think not all 8 gb are in a sequential, contiguous order. You can test this by not using the -C option. If it succeeds then you can lvremove.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2010 11:42 PM
тАО02-04-2010 11:42 PM
Re: swap creation
Please verify how many unalloacted PE's are available in vg00. Or please share the o/p of vgdisplay v00.
Regards,
Prasanth Thomas.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2010 11:46 PM
тАО02-04-2010 11:46 PM
Re: swap creation
# vgdisplay /dev/vg00
Regards,
Prasanth Thomas.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2010 05:44 AM
тАО02-07-2010 05:44 AM
Solutionthis means that 8 GB is available in the VG but that nmay nit be available as Contiguous space, which is the requirement of swap LVOL if that LVOL is to be used as swap.
you can do as:
lvcreate -Cy -rn -sy -n swaplvol /dev/vg00
then
use the lvextend command in small steps
lvextend -L 1024 /dev/vg00/swapvol
of succeeds
then
lvextend -L 1500 /dev/vg00/swapvol
like that.
but also easily you can allocate the Secondary Device swap from the non-root VG. you can try that also and once the swap LVOL is created in non-root VG say vg01 then add the entry to /etc/fstab as
/dev/vg01/swapvol ... swap defaults 0 0
regards
sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2010 07:35 AM
тАО02-07-2010 07:35 AM
Re: swap creation
Thanks for your responses.It was contigous till 6 GB so have created 6GB swap.
can we do fragmentation in hpux so that we can reorder the PEs to get contigous space
Regards
himacs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2010 08:07 AM
тАО02-07-2010 08:07 AM
Re: swap creation
did you create "6GB" did you lvextend or lvcreate 6GB -> Secondary swap ??
please post below command outputs ??
swapinfo -mat
>>can we do fragmentation in hpux so that we can reorder the PEs to get contigous space<<
defragmentation -> we usually do before you "lvreduce" logical volume size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2010 08:24 AM
тАО02-07-2010 08:24 AM
Re: swap creation
> can we do fragmentation in hpux so that we can reorder the PEs to get contigous space
Defragmentation usually refers to a filesystem, not the extents of a logical volume of a volume group. You do VxFS *filesystem* defragmention with the 'fsadm' command.
You question has relevance if you are talking about moving physical extents, though. Then, the 'pvmove' command exists to allow moving extents and the data they contain from a source physical volume, to one or more other physical volumes in the same volume group. However, the source and destination physical volumes *cannot* be the same.
As always, see the manpages for more insight!
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2010 03:48 AM
тАО02-08-2010 03:48 AM