
# fuser –ku /dev/vgname/lvname
4. Then try to unmount the file system again as follows:
# umount /dev/vgname/lvname
o If the logical volume is being accessed as a raw device, you can use fuser to find out which
applications are using it. Then you can halt those applications.
If for some reason you cannot disable access to the logical volume—for example, you cannot
halt an application or you cannot unmount the file system—you must shut down the system.
If you have LVM online replacement (OLR) functionality available, detach the device using the –a
option of the pvchange command:
# pvchange -a N pvname
If pvchange fails with a message that the –a option is not recognized, the LVM OLR feature is not
installed.
Note: Starting with HP-UX 11i v3, the LVM OLR feature is available as part of the base operating
system. Because of the mass storage stack native multipath functionality on the HP-UX 11i v3
release, disabling specific paths to a device using the pvchange -a n command may not stop
I/Os to that path as they did in earlier releases. Detaching an entire physical volume using
pvchange –a N is still available in order to perform an Online Disk Replacement. Use the
scsimgr command to disable physical volume paths using the disable option.
If you do not have LVM OLR functionality, LVM continues to try to access the disk as long as it is in
the volume group and has always been available. You can make LVM stop accessing the disk in
the following ways:
– – Remove the disk from the volume group. This means reducing any logical volumes that have
mirror copies on the faulty disk so that they no longer mirror onto that disk, and reducing the disk
from the disk group, as described in Removing the Disk. This maximizes access to the rest of the
volume group, but requires more LVM commands to modify the configuration and then recreate it
on a replacement disk.
– Deactivate the volume group. You do not have to remove and recreate any mirrors, but all data
in the volume group is inaccessible during the replacement procedure.
– Shut down the system. This halts LVM access to the disk, but makes the entire system
inaccessible. Use this option only if you do not want to remove the disk from the volume group,
and you cannot deactivate it.
The following recommendations are intended to maximize system uptime and access to the volume
group, but you can use a stronger approach if your data and system availability requirements allow.
If pvdisplay shows PV status as available, halt LVM access to the disk by removing it from the
volume group.
If pvdisplay shows PV status as unavailable, or if pvdisplay fails to print the status, use
ioscan to determine if the disk can be accessed at all. If ioscan reports the disk status as NO_HW
on all its hardware paths, you can remove the disk. If ioscan shows any other status, halt LVM
access to the disk by deactivating the volume group.
Note: Starting with the HP-UX 11i v3 release, if the affected volume group is configured with
persistent device special files, use the ioscan –N command, which displays output using the agile
view instead of the legacy view.
Step 2: Replacing the Faulty Disk
Comentários a estes Manuais