- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How was my disk pvcreated?
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
09-24-2002 06:49 AM
09-24-2002 06:49 AM
I am wondering if anyone knows a way to determine if a disk was pvcreated with the -B option.
Ian
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2002 06:52 AM
09-24-2002 06:52 AM
SolutionODE MAPFILE SYSLIB CONFIGDATA SLMOD2
SLDEV2 SLDRV2 SLSCSI2 MAPPER2 IOTEST2
PERFVER2 PVCU SSINFO ISL AUTO
HPUX LABEL
# lifls -C /dev/rdsk/c2t6d0
lifls: Can't list /dev/rdsk/c2t6d0; not a LIF volume
#
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2002 06:55 AM
09-24-2002 06:55 AM
Re: How was my disk pvcreated?
IF lifls is successful then you know it was created with a -B option , other wise no .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2002 06:58 AM
09-24-2002 06:58 AM
Re: How was my disk pvcreated?
# lifls -C /dev/rdsk/c0t9d0
ISL AUTO HPUX PAD LABEL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2002 12:24 PM
09-24-2002 12:24 PM
Re: How was my disk pvcreated?
Interrogating a disk for the presence of LIF header is NOT an indication that the disk was 'pvcreate'd with the '-B' option. The LIF is deposited by 'mkboot'. It can be placed on a disk regardless of the 'pvcreate' used to initialize it.
You can verify this by first overwriting the beginning of the disk with zeros so as not to pick up stale information from a previous use of the disk:
# dd if=/dev/zero of=/dev/rdsk/c0t6d3 count=10 bs=1024
10+0 records in
10+0 records out
# lifls /dev/rdsk/c0t6d3
lifls: Can't list /dev/rdsk/c0t6d3; not a LIF volume
# pvcreate -B /dev/rdsk/c0t6d3
Physical volume "/dev/rdsk/c0t6d3" has been successfully created.
# lifls /dev/rdsk/c0t6d3
lifls: Can't list /dev/rdsk/c0t6d3; not a LIF volume
For a disk to be bootable it must have been created with the '-B' option of 'pvcreate' to establish an area of boot-relevant information known as the BDRA (Boot Data Reserved Area).
A disk with a valid BDRA will show as a "boot disk" when a 'lvlnboot ???v' is issued. A disk initialized with a simple 'pvcreate' will not.
For example:
# pvcreate /dev/rdsk/c0t6d3
Physical volume "/dev/rdsk/c0t6d3" has been successfully created.
# vgextend -A n /dev/vg00 /dev/dsk/c0t6d3
Volume group "/dev/vg00" has been successfully extended.
# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c1t6d0 (52.6.0) -- Boot Disk
/dev/dsk/c0t6d0 (8.6.0) -- Boot Disk
/dev/dsk/c0t6d3 (8.6.3)
Note that disk c0t6d3 is NOT a boot disk. It was NOT created with ???pvcreate ???B???.
On the other hand, when initialized correctly:
# pvcreate -B /dev/rdsk/c0t6d3
Physical volume "/dev/rdsk/c0t6d3" has been successfully created.
# vgextend -A n /dev/vg00 /dev/dsk/c0t6d3
Volume group "/dev/vg00" has been successfully extended.
# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c1t6d0 (52.6.0) -- Boot Disk
/dev/dsk/c0t6d0 (8.6.0) -- Boot Disk
/dev/dsk/c0t6d3 (8.6.3) -- Boot Disk
Now note that c0t6d3 shows as a boot disk.
If you prefer to test to see whether or not a disk was created with a BBRA, you can create a dummy volume group consisting of the single physical disk and use 'lvlnboot ???v /dev/vgXX' to interrogate it:
# pvcreate -B /dev/rdsk/c0t6d3
Physical volume "/dev/rdsk/c0t6d3" has been successfully created.
# vgcreate /dev/vg01 /dev/dsk/c0t6d3
Volume group "/dev/vg01" has been successfully created.
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf
# lvlnboot -v /dev/vg01
lvlnboot: The Boot Data Area is empty.
Boot Definitions for Volume Group /dev/vg01:
The Boot Data Area is empty.
The same 'lvlnboot ???v' run against a disk 'pvcreate'd without the '-B' option will return a null response.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2002 12:31 PM
09-24-2002 12:31 PM
Re: How was my disk pvcreated?
As per the scope of your question "lifls" does not give you if the disk was pvcreated with -B option.
#pvcreate -B /dev/rdsk/c1t0d0
#lifls /dev/dsk/c1t0d0
lifls: Can't list /dev/dsk/c1t0d0: not a LIF volume
mkboot actually writes the lifarea.
#mkboot /dev/dsk/c1t0d0
#lifls /dev/dsk/c1t0d0
ISL AUTO HPUX PAD LABEL
However, we need too go beyond scope of the question. So, Harry and others are correct as well :-).
-Sri