Hp education services education.hp.com 50 LVM Problems Version C.00 H4264S Module 6 Slides.

Slides:



Advertisements
Similar presentations
Va-scanCopyright 2002, Marchany Unit 8 – Solaris File Systems Randy Marchany VA Tech Computing Center.
Advertisements

Hp education services education.hp.com 85 System Crash Dump Version C.00 H4264S Module 9 Slides.
BSD Partitions COEN 152/252 Computer Forensics. BSD Partitions Some BSD systems use IA32 hardware  Designed to co-exists with MS partitions.  Use DOS.
Genesis: from raw hardware to processes System booting sequence: how does a machine come into life.
Linux can be generally divided into four major components: 1. KERNEL – OS, ultimate boss The kernel is the core program that runs programs and manages.
Linux Installation LINUX INSTALLATION. Download LINUX Linux Installation To install Red Hat, you will need to download the ISO images (CD Images) of the.
Chapter 3 Understanding the Boot Process and Command Line.
Introduction to Unix (CA263) File System
Chapter 7: Configuring Server Storage, Backup, and Performance Options
Lecture 10: The FAT, VFAT, and NTFS Filesystems 6/17/2003 CSCE 590 Summer 2003.
1 Web Server Administration Chapter 3 Installing the Server.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Guide To UNIX Using Linux Third Edition
System Startup and Shutdown
Backup and Recovery (2) Oracle 10g CAP364 1 Hebah ElGibreen.
FDISK Partitioning Hard Disks. History We bought our new hard disk drive –Right size for BIOS and OS –Right connections (PATA/SATA) We installed our new.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 14: Problem Recovery.
Guide To UNIX Using Linux Fourth Edition
Using Large Hard Drives in Linux Presented by Kevin McGregor Manitoba UNIX User Group March 12, 2013.
Administering Windows 7 Lesson 11. Objectives Troubleshoot Windows 7 Use remote access technologies Troubleshoot installation and startup issues Understand.
Lesson 7-Creating and Changing Directories. Overview Using directories to create order. Managing files in directories. Using pathnames to manage files.
Fall 2011 Nassau Community College ITE153 – Operating Systems Session 14 Windows XP Professional 1.
Chapter 2 Installation Overview. Planning the Installation Questions: –Size of partitions –Where to put partitions –Which software packages to install.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Disk Structure Disk drives are addressed as large one- dimensional arrays of logical blocks, where the logical block is the smallest unit of transfer.
Module 12: Managing Disaster Recovery. Overview Preparing for Disaster Recovery Backing Up Data Scheduling Backup Jobs Restoring Data Configuring Shadow.
Hp education services education.hp.com hp education services education.hp.com 1 HP World/Interex 2002 Linux Partitions and Boot Loaders Chris Cooper (734)
MCTS Guide to Microsoft Windows Vista Chapter 4 Managing Disks.
Windows NTFS Introduction to Operating Systems: Module 15.
Managing Disks and Drives Chapter 13 powered by dj.
MCTS Guide to Microsoft Windows 7
14 Step-by-Step Instructions for an Upgrade Installation n Prepare for the installation Verify that all devices and applications are Windows 2000 compatible.
Getting Started Additional information. Important DOS Commands Getting Started dirlists disk directories verdisplays OS version clsclear command prompt.
Veritas Volume Manager Conversion Tim Clemens Training and Consulting Louisville, KY
Configuring Disk Devices. Module 4 – Configuring Disk Devices ♦ Overview This module deals with making partitions using fdisk, implementing RAID and Logical.
Stratus Continuous Process System COSC513 Presentation By Ying Li & Kunyu Zheng.
Tips & Tricks for Using LVM Effectively / Intro to VxVM Renay Gaye Hewlett-Packard
UNIX (Linux) Introduction Module-1. OS Kernel In computing, the kernel is the central component of OS. It is a bridge between applications and the actual.
LVM & Mirror 中国惠普有限公司支持服务事业部 QIAN Yun Elements of LVM (逻辑卷管理器) physical Volumes 物理卷 volume Group 卷组 logical Volumes 逻辑卷 VG01 lvol1 /dev/rdsk/c0t0d0.
Manage Directories and Files in Linux. 2 Objectives Understand the Filesystem Hierarchy Standard (FHS) Identify File Types in the Linux System Change.
Creating and Managing File Systems. Module 5 – Creating and Managing File Systems ♦ Overview This module deals with the structure of the file system,
System Administration – Part 2. Devices in UNIX are files: A device can be accessed with different file names All device files are stored in /dev or its.
99 System Backup Version A.01 H3064S Module 13 Slides.
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop V Files and the File System Part B – File System.
Slide: 1 UNIX FILE SYSTEM By:Qing Yang ID: Operating System Research Topic December, 2000.
Storage Management: MirrorDisk/UX, Online JFS Introduction LVM Striping Mirror Disk / UX – Basics Online Backups (lvsplit) Mirror Disk / UX – Advanced.
THE FILE SYSTEM Files long-term storage RAM short-term storage Programs, data, and text are all stored in files, which is stored on.

Genesis: From Raw Hardware to Processes Andy Wang Operating Systems COP 4610 / CGS 5765.
12 Copyright © Oracle Corporation, All rights reserved. User-Managed Complete Recovery.

Copyright © Genetic Computer School 2008 Computer Systems Architecture SA 8- 0 Lesson 8 Secondary Management.
135 Shutdown and Reboot Version A.01 H3064S Module 17 Slides.
MCTS GUIDE TO MICROSOFT WINDOWS 7 Chapter 4 Managing Disks.
Hands-On Microsoft Windows Server 2008 Chapter 7 Configuring and Managing Data Storage.
Disk Utility fails to resize Mac partition? Try Stellar Partition Manager.
Day 28 File System.
Chapter 8 Unix & Linux.
L V M A Logical Volume Manager for Linux by Heinz Mauelshagen
Chapter 8 Adding a Disk.
Chapter 12: File System Implementation
Chapter 6 File Systems CSNB113 SYSTEM ADMINISTRATION
Mass-Storage Structure
Exploring the UNIX File System and File Security
Operating System Module 1: Linux Installation
OPS235: Week 5 Lab4: Investigations 1 – 3
Overview Continuation from Monday (File system implementation)
COMP1321 Digital Infrastructures
Modern PC operating systems
Presentation transcript:

hp education services education.hp.com 50 LVM Problems Version C.00 H4264S Module 6 Slides

© 2001 Hewlett-Packard Company H4264S C LVM — Logical Volume Manager LVM provides: Disk grouping Logical partitioning Ability to span disk drives Bad block replacement Disk mirroring (optional product) Logical Volumes Physical Volume B B S Physical Extent S S SR U R V VV O O O T T T H H H Volume Group B = boot V = var S = swap O = opt R = root T = tmp U = usr H = home

© 2001 Hewlett-Packard Company H4264S C LVM Disk Layout User Data Area Bad Block Relocation Pool Volume Group Reserved Area LIF Volume Boot Data Reserved Area Physical Volume Reserved Area LIF Header (8 blocks) Physical Volume Reserved Area Volume Group Reserved User Data Area Bad Block Relocation Pool Bootable Disk Non-bootable Disk Area

© 2001 Hewlett-Packard Company H4264S C Physical Volume Reserved Area (PVRA) The PVRA stores information about the LVM disk configuration (starting addresses and sizes): LVM identification field, signifying the LVM record is present and valid Unique physical volume ID, checked by LVM when it generates new physical volumes Physical volume number Last physical sector number Size of each physical extent on the LVM disk The locations of the other LVM data structures on the disk The start of the user data Physical Volume Reserved Area VGRA User Data Area Bad Block Relocation Pool

© 2001 Hewlett-Packard Company H4264S C Volume Group Reserved Area (VGRA) The volume group reserved area (VGRA) holds data describing the volume group that contains the disk: Volume Group Descriptor Area (VGDA) –How many LVs are in the VG? –How many PVs are in the VG? –PE to LE mapping Volume Group Status Area (VGSA) –Tracks validity and availability of PVs –Tracks current state of each PE PVRA Volume Group Reserved Area User Data Area Bad Block Relocation Pool

© 2001 Hewlett-Packard Company H4264S C LVM Repair Tools — Overview Primary Commands: vgcfgrestore vgscan vgexport vgimport Other Commands: lvlnboot ISL> hpux -lm ISL> hpux -lq

© 2001 Hewlett-Packard Company H4264S C Backing Up and Restoring LVM Configuration Information /sbin/vgcfgbackup /sbin/vgcfgrestore /usr/bin/fbackup /usr/bin/frecover Physical Volume Reserved Area Volume Group Reserved Area User Data Area Bad Block Relocation Pool

© 2001 Hewlett-Packard Company H4264S C LVM Recovery after Disk Replacement lvol1 lvol2 lvol3 lvol4 lvol5 c2t5d0c2t3d0c2t4d0 lvol1 lvol2 New Disk lvol4 lvol5 c2t5d0c2t3d0c2t4d0 # vgchange -a n /dev/vg02 # vgcfgrestore -n /dev/vg02 /dev/rdsk/c2t4d0 # vgchange -a y /dev/vg02

© 2001 Hewlett-Packard Company H4264S C Corrupted PVRA/VGRA Structures on the Boot Disk LVM maintenance mode puts the system into single-user mode. LVM maintenance mode is used to repair damaged LVM data structures. ISL> hpux -lm ISL> hpux -lm (56/52.6.0;0)/vmunix If the PVRA or VGRA structures are corrupted, the volume group cannot be activated. A special way to boot the system (LVM maintenance mode) can be used to bypass the normal LVM structures.

© 2001 Hewlett-Packard Company H4264S C LVM Maintenance Mode The /dev/vg00 volume group is not activated. The root and boot logical volumes are mounted, even though the vg00 volume group is not active. This mode allows the LVM header information to be restored to the boot disk: # vgcfgrestore -n /dev/vg00 /dev/rdsk/c0t6d0 # reboot -n CAUTION: While in LVM maintenance mode, do not bring the system into multiuser mode.

© 2001 Hewlett-Packard Company H4264S C The LABEL File LABEL File Contains pointers to the starting points and sizes of boot relevant logical volumes. Resides in the LIF volume. Information stored within LABEL is used by the secondary loader to load the operating system. # lifls -l /dev/rdsk/c0t6d0 User Data Area Bad Block Relocation Pool VGRA LIF Volume BDRA PVRA LIF Header (8 blocks) Bootable Disk

© 2001 Hewlett-Packard Company H4264S C Boot Data Reserved Area (BDRA) The BDRA contains the following records about the system's root logical volumes: Root volume group ID Number of disks in root volume group A list of hardware addresses of the LVM disks in the root volume group Information needed to select the correct logical volumes for boot, primary swap, and dump The operating system uses the information in the BDRA to activate the root volume group and mount the root file system. User Data Area Bad Block Relocation Pool VGRA LIF Volume BDRA PVRA LIF Header (8 blocks)

© 2001 Hewlett-Packard Company H4264S C Corrupt or Missing LABEL File or BDRA The system will not boot. To recover, the system must be booted into LVM Maintenance mode or to the recovery shell. A command called lvlnboot is needed to fix the problem. If the LABEL file or BDRA is corrupt or missing: User Data Area Bad Block Relocation Pool VGRA LIF Volume BDRA PVRA LIF Header (8 blocks)

© 2001 Hewlett-Packard Company H4264S C The lvlnboot Command lvlnboot: Used to update a corrupted LABEL file or BDRA with valid data. The syntax of the command is: Examples of the command: # lvlnboot -b /dev/vg00/lvol1 # lvlnboot -r /dev/vg00/lvol3 # lvlnboot -s /dev/vg00/lvol2 # lvlnboot -d /dev/vg00/lvol2 lvlnboot [-b|-r|-s|-d] lvol_name

© 2001 Hewlett-Packard Company H4264S C Using the Recovery Shell to Repair Damage The recovery shell can also be used to repair a corrupted LABEL file or BDRA. The procedure is: 1.Boot from the support media. 2. From the Recovery menu, select Exit to shell (recovery shell). 3.From the Recovery shell, execute the following commands: “Recovery shell to the rescue” # chroot_lvmdisk # cd /ROOT # chroot /ROOT /sbin/sh # vgchange -a y /dev/vg00 # lvlnboot -b /dev/vg00/lvol1... # reboot

© 2001 Hewlett-Packard Company H4264S C Booting without Quorum Booting without quorum allows your system to come up when: The root volume group does not meet quorum requirement. The disk containing the root file system is functional. ISL> hpux -is -lq Boot Area lvol1 mirror copies lvol2 lvol3 lvol4 /dev/vg00 Crash! Boot Area

© 2001 Hewlett-Packard Company H4264S C Recovering an lvmtab File The /etc/lvmtab file: Lists all volume groups and the physical volumes that are associated with each volume group Can be viewed using the strings command Contents used by LVM commands Can be recreated using the vgscan command For example: # mv /etc/lvmtab /etc/lvmtab.back # vgscan -pv # vgscan -v # strings /etc/lvmtab

© 2001 Hewlett-Packard Company H4264S C Last Resort # vgchange -a n /dev/vg02 # vgexport -m /tmp/mapfile /dev/vg02 # mkdir /dev/vg02 # mknod /dev/vg02/group c 64 0x # vgimport -v -m /tmp/mapfile /dev/vg02 \ /dev/dsk/c3t4d0 /dev/dsk/c4t5d0 # vgchange -a y /dev/vg02 # strings /etc/lvmtab # vgcfgbackup vg02 If the volume group still cannot be repaired, as a last resort, try exporting and importing the volume group: