- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to detect swap space under ignite-ux shell
Operating System - HP-UX
1748272
Members
4068
Online
108760
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
Discussions
Discussions
Forums
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
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
тАО06-15-2006 01:04 PM
тАО06-15-2006 01:04 PM
How to detect swap space under ignite-ux shell
This question is out of curiosity. I booted my server into ignite-ux shell. I guess it is similar to single user mode except the system utilities availabilities. Then I did vgscan, vgimport to recreate my root volume group. After that, I ran lvlnboot -v, and got the following output:
# lvlnboot -v
Boot Definitions for Volume Group /dev/vgboot:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c1t15d0 (0/0/1/1.15.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c1t15d0
Root: ??? on: /dev/dsk/c1t15d0
Swap: ??? on: /dev/dsk/c1t15d0
Dump: ??? on: /dev/dsk/c1t15d0, 0
it looks like it don't how which volume is used as swap. I thought the primary swap area is stored in the boot data reserved area (BDRA) in the LVM structures on disk. How can lvlnboot can not figure it out? I guess I can check the minor number of the each volume device file under vgboot. The second one (minor==2) should be the swap space (primary one). Am I correct?
Here comes more tricky question. How about secondary swap space? I did more experimental. I mounted my /dev/vgboot/lvol3 (root volume) to /ROOT, and there are two files under /etc/lvmconf:
1) vgboot.conf
2) vgdata.conf
I performed strinsg on both conf files, and the output is the following:
1) strings vgboot.conf:
CONFIG01
/dev/vg00
/dev/rdsk/c1t15d0
LVMREC01n
HPLVMBDRDZ
VGDA0001
VGSA0001DZ
Question: is "HPLVMBDRD" indicate this vg is root vg? what "VGSA0001DZ" means here?
2) strings vgdata.conf
CONFIG01
/dev/vgdata
/dev/rdsk/c0t0d0
LVMREC01n
YE0VGDA0001
VGSA0001D[
Question: what "VGSA0001DZ" means here? swap? since it is not root vg, it should be secondary swap, am I right? also what "YE0VGDA0001" means?
Here is another tricky question. If it is not LVM device swap like I mentioned above, it is whole disk swap, how can I figure out at this stage? I used swapinfo, but it tells nothing about swap device name. I guess it only works after using swapon to enable the swap space. Then is there any way I can detect such swap space under ignite-ux shell?
Anyway, on Solaris, we can do prtvtoc to find the swap space, but there is no such command under HP-UX. Can someone throw some lights on this? Thanks!
# lvlnboot -v
Boot Definitions for Volume Group /dev/vgboot:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c1t15d0 (0/0/1/1.15.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c1t15d0
Root: ??? on: /dev/dsk/c1t15d0
Swap: ??? on: /dev/dsk/c1t15d0
Dump: ??? on: /dev/dsk/c1t15d0, 0
it looks like it don't how which volume is used as swap. I thought the primary swap area is stored in the boot data reserved area (BDRA) in the LVM structures on disk. How can lvlnboot can not figure it out? I guess I can check the minor number of the each volume device file under vgboot. The second one (minor==2) should be the swap space (primary one). Am I correct?
Here comes more tricky question. How about secondary swap space? I did more experimental. I mounted my /dev/vgboot/lvol3 (root volume) to /ROOT, and there are two files under /etc/lvmconf:
1) vgboot.conf
2) vgdata.conf
I performed strinsg on both conf files, and the output is the following:
1) strings vgboot.conf:
CONFIG01
/dev/vg00
/dev/rdsk/c1t15d0
LVMREC01n
HPLVMBDRDZ
VGDA0001
VGSA0001DZ
Question: is "HPLVMBDRD" indicate this vg is root vg? what "VGSA0001DZ" means here?
2) strings vgdata.conf
CONFIG01
/dev/vgdata
/dev/rdsk/c0t0d0
LVMREC01n
YE0VGDA0001
VGSA0001D[
Question: what "VGSA0001DZ" means here? swap? since it is not root vg, it should be secondary swap, am I right? also what "YE0VGDA0001" means?
Here is another tricky question. If it is not LVM device swap like I mentioned above, it is whole disk swap, how can I figure out at this stage? I used swapinfo, but it tells nothing about swap device name. I guess it only works after using swapon to enable the swap space. Then is there any way I can detect such swap space under ignite-ux shell?
Anyway, on Solaris, we can do prtvtoc to find the swap space, but there is no such command under HP-UX. Can someone throw some lights on this? Thanks!
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2006 07:00 AM
тАО07-06-2006 07:00 AM
Re: How to detect swap space under ignite-ux shell
Could someone help me on this? Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2006 07:16 AM
тАО07-06-2006 07:16 AM
Re: How to detect swap space under ignite-ux shell
Shalom,
I think VGSA0001DZ is a temporary file created during the Ignite process.
This seems to be an interupted ignite installation.
SEP
I think VGSA0001DZ is a temporary file created during the Ignite process.
This seems to be an interupted ignite installation.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
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
тАО07-07-2006 12:39 AM
тАО07-07-2006 12:39 AM
Re: How to detect swap space under ignite-ux shell
Not sure about your "ignite shell".
If you are talking about booting from a CD and run a recovery shell, the system is using a ramdisk, like other systems (linux) do while booting from a read-only media. Now there are filesystems on the ramdisk and on the real disk.
If you want to fix LVM settings, you should boot from the boot disk in LVM maintenance mode (ISL> hpux -lm).
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
If you are talking about booting from a CD and run a recovery shell, the system is using a ramdisk, like other systems (linux) do while booting from a read-only media. Now there are filesystems on the ramdisk and on the real disk.
If you want to fix LVM settings, you should boot from the boot disk in LVM maintenance mode (ISL> hpux -lm).
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP