Thursday, January 1, 2009

HP-UX reviewer 2

....continued from my HP-UX kodigo....
  • Exporting and Importing disks across system.
1. make the volume group unavailable
vgchange -a n /dev/vgdata

2. Export the the disk while creating a logical volume map file.
vgexport -v -m data_map vgdata

3. Disconnect the drives and move to new system.
4. Move the data_map file to the new system.
5. On the new system recreate the volume group directory
mkdir /dev/vgdata
mknod /dev/vgdata/group c 64 0x02000

6. Import the disks to the new system
vgimport -v -m data_map /dev/vgdata /dev/dsk/c2t1d0 /dev/dsk/c2t2d0

7. Enable the new volume group
vgchange -a y /dev/vgdata
  • Renaming a logical volume
    /dev/vgdata/lvol1 -> /dev/vgdata/data_lv
umount /dev/vgdata/lvol1
ll /dev/vgdata/lvol1
take note of the minor ( e.g 0x010001 )
brw-r----- 1 root root 64 0x010001 Dec 31 17:59 lvol1
mknod /dev/vgdata/data_lv b 64 0x010001 create new logical volume name
mknod /dev/vgdata/rdata_lv c 64 0x010001
vi /etc/fstab { reflect the new logical volume }
mount -a
rmsf /dev/vgdata/lvol1
rmsf /dev/vgdata/rlvol1

to be continued.....

No comments:

Post a Comment