Appendix G: Recreating Volume Group Information
There might be situations when the volume group directory, for example vgtest under /dev, is
accidentally removed. In such a situation, use the following steps to re-create the vgtest volume
group:
1. To manually create the directory, enter:
# mkdir /dev/vgtest
2. To create the character special file group under /dev/vgtest directory, enter:
# mknod /dev/vgtest/group c 64 0xXX0000
(XX = the minor number for the group file. This should be unique among
all the volume groups on the system. XX ranges from 00 to ff.)
3. To move the /etc/lvmtab file, enter:
# mv /etc/lvmtab /etc/lvmtab.old
4. To create the new /etc/lvmtab file, enter:
# vgscan –v
5. To import the information from the disk that was removed by accident, enter:
Note: If the system has not been rebooted since the accident, you must do it now.
# vgimport -v /dev/vgtest /dev/dsk/c1t1d1 <and any other disks>
6. To activate the imported volume group, enter:
# vgchange -a y /dev/vgXX
7. Mount the file systems or just reboot the system.
If you have naming conflicts, remember that you can rename logical volumes, but you must export
and import volume groups for renaming.
Komentarze do niniejszej Instrukcji