Sponsored Content
Full Discussion: HP-UX LVM Maint. Mode
Operating Systems HP-UX HP-UX LVM Maint. Mode Post 15919 by Perderabo on Thursday 21st of February 2002 11:28:38 AM
Old 02-21-2002
Maintenance mode is intended only to enable you to rebuild the LVM data in the LIF area of boot disk after it has been damaged. It ignores the LVM data (which is in the LIF file "LABEL" ). There are two cases. Either the area after the boot area is the root filesystem or it is the /stand filesystem. In either case it must be contiguous and it must be an hfs filesystem so the boot program hpux can find the kernel. In maintenance mode, it is assumed to start after the boot area and consume the rest of the disk. But if it is /stand, a file called /stand/rootconf is read (by the kernel) and this is used to find the start of the root filesystem which is also assumed to extend to the end of the disk. This leaves them overlapping each other as well as any other logical volumes.

The result is that the kernel is running and root is mounted with nothing else. At this point you are supposed to rebuild the LVM info in the boot area. This typically involves using mkboot, vgcfgrestore, and lvlnboot. It is crucial that the disk not be synced at all. Either "reboot -n" or cycle power to exit maintenance mode.

Activating the root volume group is explicitly prohibited...doing so may corrupt it.

The kernel knew that oldroot on /dev/root was a mount point but it didn't know that oldroot on /dev/vg00/lvol3 was a mount point. That why you saw a difference.

Was /oldroot pre-existing? Even a "mkdir /oldroot" is very risky in maintenance mode. HP-UX syncs some metadata right away. That might be enough to garble the static data in your root filesystem's superblock, but I'm not sure.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Maint user cannot execute ping command

I want give rights for the maint user to execute the "ping" command. Currently root user can execute the "ping" command, but the maint user is not able to execute the command. (3 Replies)
Discussion started by: kabeer_n
3 Replies

2. SuSE

Convet Linux OS from text mode to graphic mode

Hi All, I used to have my suse linux(VM) server in graphic mode but not anymore since morning. I cant rolback since i loose somuch work. Any idea how to it back to normal. Thanks (6 Replies)
Discussion started by: s_linux
6 Replies

3. HP-UX

how to distinguish standard system mode or trust system mode

I think that if the directory /tcb exists, HP-UX is in trusted mode and the passwd data is somewhere in /tcb/files/auth. But that's all I remember. Also I think recent versions of HP-UX can have a /etc/shadow file. (0 Replies)
Discussion started by: Perderabo
0 Replies

4. HP-UX

How to reduce LVM to create another LVM

Hi, I'm new to HP-UX. I have LVM on /var with 92Gig. I would like to reduce it to create another LVM for Oracle client with 800 meg or so. How to do it. I'm running 11.iv3 Thanks (4 Replies)
Discussion started by: lamoul
4 Replies

5. UNIX for Advanced & Expert Users

What is the difference between single line mode and multiline mode in Regular expressions?

Hi All, Can please let me know what is the difference between the single line mode and multi line mode in regular expresions? Thanks, Chidhambaram B (3 Replies)
Discussion started by: chidhu.anu
3 Replies

6. UNIX for Dummies Questions & Answers

How to convert non LVM root partition to LVM?

Hi Guys, I m using redhat 6, I have installed root partition as non-LVM . Is there any way i can convert it to LVM? (1 Reply)
Discussion started by: pinga123
1 Replies

7. Solaris

DNS service is in maintenance mode. How to bring it back to online mode?

:confused: when i tried to look the status of DNS-client, it is in maintenance mode..... Please tell me how to bring it back to online mode...PLEASE TELL ME STEP BY STEP.... PLEASE... :wall: (2 Replies)
Discussion started by: vamshigvk475
2 Replies

8. HP-UX

From a C++ application how to find if a hpux host is in standard mode or trusted mode

is there a way for my C++ application to find out which mode the hpux OS is running in? standard mode or trusted mode. (3 Replies)
Discussion started by: einsteinBrain
3 Replies

9. Solaris

Maint, resyncing and last-erred notifications

Hi fellow members! I have a oracle solaris server with two internal disks, that acts as an authentication server only, and for now the server seems to be doing its job, but when typing metastat -c I get some notifications. I am not familiar with SVM, I wonder if someone can help me on this:... (3 Replies)
Discussion started by: fretagi
3 Replies
PVCK(8)                                                       System Manager's Manual                                                      PVCK(8)

NAME
pvck - check physical volume metadata SYNOPSIS
pvck [-d|--debug] [-h|--help] [-v|--verbose] [--labelsector] PhysicalVolume [PhysicalVolume...] DESCRIPTION
pvck checks physical volume LVM metadata for consistency. OPTIONS
See lvm for common options. --labelsector sector By default, 4 sectors of PhysicalVolume are scanned for an LVM label, starting at sector 0. This parameter allows you to specify a different starting sector for the scan and is useful for recovery situations. For example, suppose the partition table is corrupted or lost on /dev/sda, but you suspect there was an LVM partition at approximately 100 MB. This area of the disk may be scanned by using the --labelsector parameter with a value of 204800 (100 * 1024 * 1024 / 512 = 204800): pvck --labelsector 204800 /dev/sda Note that a script can be used with --labelsector to automate the process of finding LVM labels. SEE ALSO
lvm(8), pvcreate(8), pvscan(8) vgck(8) Sistina Software UK LVM TOOLS 2.02.95(2) (2012-03-06) PVCK(8)
All times are GMT -4. The time now is 10:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy