Difference between revisions of "Rename agile disk name"

From jasonhoss.com
Jump to: navigation, search
(Created page with "Boot into LVM maintenance mode boot vmunix -lm Activate the root volume group vgchange -a y vgroot Create a map file for the vgroot volume group vgexport -p -s -v -m /vgr...")
 
 
Line 14: Line 14:
  
 
  vgchange -a n vgroot
 
  vgchange -a n vgroot
 +
 +
Export vgroot
 +
 +
vgexport vgroot
 +
 +
Run ioscan to get hardware path
 +
 +
ioscan -funNCdisk
 +
 +
Create a new file to have ioinit read
 +
 +
cat > filename
 +
64000/0xfa00/0x1 disk 0
 +
 +
Run ioinit using filename file
 +
 +
ioinit -f filename
 +
 +
Remove device files for old disk
 +
 +
rm /dev/disk/disk5*
 +
rm /dev/rdisk/disk5*
 +
 +
Reinstall special files for hardware by running insf
 +
 +
insf -eC disk
 +
 +
Run ioscan to confirm the correct device files were created
 +
 +
ioscan -funNCdisk
 +
 +
Import volume group
 +
 +
vgimport -N -s -v -m /vgroot.map vgroot
 +
 +
Activate the root volume group
 +
 +
vgchange -a y vgroot
 +
 +
Mount the file systems.
 +
 +
mount -a
 +
 +
Backup the vg configuration
 +
 +
vgcfgbackup vgroot
 +
 +
Run ioinit -c to update files in /stand
 +
 +
ioninit -c
 +
 +
Sync disk writes to ensure there is no data corruption
 +
 +
sync
 +
 +
Reboot the system
 +
 +
reboot

Latest revision as of 20:02, 5 January 2011

Boot into LVM maintenance mode

boot vmunix -lm

Activate the root volume group

vgchange -a y vgroot

Create a map file for the vgroot volume group

vgexport -p -s -v -m /vgroot.map vgroot

De-activate the root volume group

vgchange -a n vgroot

Export vgroot

vgexport vgroot

Run ioscan to get hardware path

ioscan -funNCdisk

Create a new file to have ioinit read

cat > filename
64000/0xfa00/0x1 disk 0

Run ioinit using filename file

ioinit -f filename

Remove device files for old disk

rm /dev/disk/disk5*
rm /dev/rdisk/disk5*

Reinstall special files for hardware by running insf

insf -eC disk

Run ioscan to confirm the correct device files were created

ioscan -funNCdisk

Import volume group

vgimport -N -s -v -m /vgroot.map vgroot

Activate the root volume group

vgchange -a y vgroot

Mount the file systems.

mount -a

Backup the vg configuration

vgcfgbackup vgroot

Run ioinit -c to update files in /stand

ioninit -c

Sync disk writes to ensure there is no data corruption

sync

Reboot the system

reboot