- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: swap space
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
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
11-08-2001 10:38 AM
11-08-2001 10:38 AM
swap space
I have 2 pieces of swap space, 1 in vg00 and an extra piece in vg01/ lvol2. what I would like to do is remove /dev/vg01 and put the swap space on another lvol. In my original request I was told to comment out the entry in the fstab and reboot, and the system would not recognize the lvol, But what I am really looking to do is bring the system to single user mode remove vg01 and recreate logical volumes over again. If anyone has a step by step help doc on this I would appreciate a cop
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2001 10:45 AM
11-08-2001 10:45 AM
Re: swap space
The assumption here is , you want to blow
away your vg01. In that case, take backup of
all the filesystems which are in vg01.
(grep vg01 /etc/fstab to get the list).
Next, comment out vg01 entries in /etc/fstab.
Boot in single user mode . IN fact, you
can boot even in multi user mode. Makes
no difference.
ll /dev/vg01/group -> make a note of this.
vgexport -m /tmp/vg01_old.map /dev/vg01
Now your VG01 is effectively gone.
Recreate Vg01,
mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x??0000
pvcreate /dev/dsk/cxtydz (you may need to
use -f option, but be sure!)
vgcreate
(make sure what disks you want.)
Next create LV's as per the needs.
****
IS there any specific reason to blow
away the VG and recreate it?? If you just
want to remove swap on vg01, you can
do a lvremove on the swap volume after the
reboot.
-raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2001 10:50 AM
11-08-2001 10:50 AM
Re: swap space
device swap is the best if you have unused devices
go into sam -> disks and file systems -> swap -> add device swap using LVM (after having created a new volume)
you can then highlight the swap area you want to remove and remove it
exit SAM
then reboot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2001 10:55 AM
11-08-2001 10:55 AM
Re: swap space
Here's your original post:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xf96d0b0717d1d5118ff40090279cd0f9,00.html
You cannot get around the reboot to rid yourself of the active device swap and therefore 'lvremove' the logical volume first.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2001 12:38 PM
11-08-2001 12:38 PM
Re: swap space
My guess is, if you want to remove the swap, you have to reboot the system all the way down and then bring it back up. When you boot the system, the kernel recognises and activates the swap. It won't deactivate them, if the system is brought into single user mode. So you need to reboot the system after removing the swap.
Here are two threads which might help you,
http://us-support.external.hp.com/cki/bin/doc.pl/sid=c27550590abacaa2e9/screen=ckiDisplayDocument?docId=200000053039597
http://us-support.external.hp.com/cki/bin/doc.pl/sid=c27550590abacaa2e9/screen=ckiDisplayDocument?docId=200000056198282
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2001 07:41 PM
11-08-2001 07:41 PM
Re: swap space
the only is comment it out from /etc/fstab and reboot.