Managing Systems and Workgroups: A Guide for HP-UX System Administrators
Contents
21
Managing Logical Volumes Using HP-UX Commands . . . . . . . . . . . . . . . . . . . . . . 571
Example: Creating a Logical Volume Using HP-UX Commands . . . . . . . . . . . . . 575
Tasks That You Can Perform Only with HP-UX Commands. . . . . . . . . . . . . . . . . . 576
Extending a Logical Volume to a Specific Disk . . . . . . . . . . . . . . . . . . . . . . . . . . . 577
Creating Root Volume Group and Root and Boot Logical Volumes . . . . . . . . . . . 578
Backing Up and Restoring Volume Group Configuration . . . . . . . . . . . . . . . . . . 581
Moving and Reconfiguring Your Disks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 582
Moving Disks Within the System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 583
Moving Disks Across Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 584
Moving Data to a Different Physical Volume . . . . . . . . . . . . . . . . . . . . . . . . . . . . 585
Reducing the Size of a Logical Volume. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 586
Setting Up Alternate Links to a Physical Volume . . . . . . . . . . . . . . . . . . . . . . . . 587
Temporarily Detaching a Link to a Physical Volume . . . . . . . . . . . . . . . . . . . . . . 588
Restoring a Detached Link to a Physical Volume . . . . . . . . . . . . . . . . . . . . . . . . 589
Setting Up Disk Striping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 589
Determining Optimum Stripe Size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 592
LVM Procedures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 593
LVM Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 594
If You Can’t Boot From a Logical Volume . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 594
Booting When LVM Data Structures Are Lost . . . . . . . . . . . . . . . . . . . . . . . . . 594
When a Volume Group Will Not Activate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 595
Problems After Reducing the Size of a Logical Volume . . . . . . . . . . . . . . . . . . . . 597
Handling I/O Errors within LVM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 599
No Response or Program Output from a Disk. . . . . . . . . . . . . . . . . . . . . . . . . . . . 601
Managing File Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 602
Creating a File System. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 603
Mounting File Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 605
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 606
Mounting File Systems Using HP-UX Commands . . . . . . . . . . . . . . . . . . . . . . . . 607
Mounting Local File Systems. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 607
Mounting File Systems Automatically at Bootup . . . . . . . . . . . . . . . . . . . . . . . . 608
Solving Mounting Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 608
Unmounting File Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 609
Unmounting NFS File Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 610
Unmounting File Systems Automatically at Shutdown . . . . . . . . . . . . . . . . . . . 610
Solving Unmounting Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 610
Extending the Size of a File System Within a Logical Volume . . . . . . . . . . . . . . . . 611
Sample Procedure to Increase the Size of a Logical Volume . . . . . . . . . . . . . . . . 612