IPStor USB Recovery
You could do the following steps to test IPStor USB Recovery image
1. configuration repository is enabled , stored in FC device
2. run savetorepository.sh
3. restart ipstor services
4. get the configuration from IPStor configuration repository and check the content
5. delete root directory forcefully
6. the system has been destoried, start the recovery process
7. plug in recovery USB, reset the machine forcefully
8. once the USB recovery has been done, reboot the server
when testing IPStor USB recovery, before destroy the IPStor server, for example, remove the root folder, you could get the configuration from IPStor configuration repository and check the content such as network settings, make sure IPStor server configuration has been saved to configuration repository (Quorum)
# /usr/local/ipstor/bin/quorumreposit
'0' Get configuration repository table of content
'1' Set configuration repository owner name
'2' Clear configuration repository owner name
'3' Put a file into the configuration repository
'4' Get a file from the configuration repository
'5' Create configuration repository's master header
'6' Run script to save files needed for failover to the repository
'7' Show configuration repository information
'8' Show configuration repository's master header information
'9' Show configuration repository table of content
'q' quit
Enter your selections: (0-9/q)
4
Enter the name of the file you wish to get out: /FSextraConfig.tgz
Enter a new filename if you do not wish to restore "/FSextraConfig.tgz" to its original location:
/tmp/myconfig.tgz
Copy out file "/FSextraConfig.tgz" from quorum repository to "/tmp/myconfig.tgz" – succeed
# cd /tmp
# tar xvf myconfig.tgz
# cd /tmp/etc
# ls -al
total 60
drwx—— 6 root root 4096 Dec 2 04:21 .
drwxrwxrwt. 7 root root 12288 Dec 2 04:21 ..
-rw-r–r– 1 root root 988 Dec 2 03:20 fstab
———- 1 root root 527 Dec 1 04:05 gshadow
-rw——- 1 root root 6 Dec 1 22:44 HOSTNAME
-rw——- 1 root root 56 Dec 1 22:44 hosts
drwxr-xr-x 2 root root 4096 Dec 1 04:03 iscsi
-rw-r–r– 1 root root 3519 May 4 2010 localtime
drwx—— 2 root root 4096 Dec 2 04:21 modprobe.d
drwx—— 2 root root 4096 Dec 2 04:21 ntp
-rw-r–r– 1 root root 1750 Dec 1 04:03 ntp.conf
-rw——- 1 root root 27 Dec 1 22:44 resolv.conf
drwx—— 3 root root 4096 Dec 2 04:21 sysconfig