HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- replace new disk with swap
Operating System - HP-UX
1833437
Members
3376
Online
110052
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
04-15-2002 09:36 PM
04-15-2002 09:36 PM
replace new disk with swap
Hi All,
I am going to replace a disk on a test system and I was after some advice. The disk is not mirrored. The old physical volume had the following structure:
/dev/vg02/lvol1 - 75 (Data)
/dev/vg02/lvol2 - 100 (Secondary swap)
/dev/vg02/lvol3 - 125 (Data)
/dev/vg02/lvol4 - 208 (Data)
I know that when I replace the disk I have to restore the LVM header (vgcfgrestore) to get the same structure on the new disk. I will then have to newfs the data file systems to restore the data from my backups. My question is how do I handle swap? Executing a vgcfgrestore will show me that /dev/vg02/lvol2 appears on the disk, however is it a case of simply running swapon, or is there another step involved.
Thanks
AC
I am going to replace a disk on a test system and I was after some advice. The disk is not mirrored. The old physical volume had the following structure:
/dev/vg02/lvol1 - 75 (Data)
/dev/vg02/lvol2 - 100 (Secondary swap)
/dev/vg02/lvol3 - 125 (Data)
/dev/vg02/lvol4 - 208 (Data)
I know that when I replace the disk I have to restore the LVM header (vgcfgrestore) to get the same structure on the new disk. I will then have to newfs the data file systems to restore the data from my backups. My question is how do I handle swap? Executing a vgcfgrestore will show me that /dev/vg02/lvol2 appears on the disk, however is it a case of simply running swapon, or is there another step involved.
Thanks
AC
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2002 09:45 PM
04-15-2002 09:45 PM
Re: replace new disk with swap
Yes running swapon will do .. for example ..
# swapon -p 1 /dev/vg02/lvol2
==> assuming priority 1
# swapon -p 1 /dev/vg02/lvol2
==> assuming priority 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2002 10:04 PM
04-15-2002 10:04 PM
Re: replace new disk with swap
Hi,
Running swapon will be sufficient.
No further steps required.
C.
Running swapon will be sufficient.
No further steps required.
C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP