I ran into an issue in using Storix backup software. When beginning a backup, Storix does a query to make sure that / is not on an exclude list. It will query LVM volume groups to get this information about /. I discovered (with the help of Storix support) that SBAdmin by default will only query /dev/sd[a-z] for the root filesystem.
If you have the LVM volume group that the root filesystem is on, on SAN storage, the Storix backup will give an error similar to the following:
The / filesystem exists on the system but is not included on the
backup because it is in a logical volume you did not select to
include. You must include volume group rootvg on a system backup.
In looking further you may notice this warning in your Storix logs:
Volume Group rootvg will be ignored because it contains physical
volume sdba, which is not a supported device type.
This gives you the physical volume name that is important in the next step.
To fix the problem, on the client that is being backed up edit the file:
/opt/storix/config/device_info
There will be a section that is called "Hard Disk". Inside that section look for the line that contains the disk that your root volume group is on. In our example above, it is physical volume sdba. So we look for the line that is:
#disk:sdb:a-z::1-15:SCSI disk
Uncomment this line so it reads as follows.
disk:sdb:a-z::1-15:SCSI disk
If our physical volume had been sdey. then we would have been looking for the line that looked like:
#disk:sde:a-z::1-15:SCSI disk
We would have uncommented that line so that it read:
disk:sde:a-z::1-15:SCSI disk
When you have made this change, save the changes and retry the backup. At this point it should succeed.
The steps below are to scan for new LUNs from a SAN after the LUNs have been presented from the storage side when using QLogic HBA's . This post uses the QLogic Dynamic Target and LUN Discovery utilities which can be downloaded from:
http://driverdownloads.qlogic.com/QLogicDriverDownloads_UI/SearchByProduct.aspx?ProductCategory=39&Product=935&Os=126
The steps below will work on SUSE Linux Enterprise Server (SLES) 10 and Red Hat Enterprise Linux (RHEL) 5.
cat /etc/*ease
mkdir /tmp/ql_utils
Change to the /tmp/ql_utils directory:
cd /tmp/ql_utils
Retrieve the utilities from the download above and extract them from the zip file into the /tmp/ql_utils directory.
ql-dynamic-tgt-lun-disc.sh
The file that we are going to be using is the ql-dynamic-tgt-lun-disc.sh file. We need to ensure that it is set to executable:
chmod a+x /tmp/ql_utils/ql-dynamic-tgt-lun-disc.sh
The ql-dynamic-tgt-lun-disc.sh script has several options available. You can see what these options are by running:
/tmp/ql_utils/ql-dynamic-tgt-lun-disc.sh -h
http://driverdownloads.qlogic.com/QLogicDriverDownloads_UI/SearchByProduct.aspx?ProductCategory=39&Product=935&Os=126
The steps below will work on SUSE Linux Enterprise Server (SLES) 10 and Red Hat Enterprise Linux (RHEL) 5.
You can discover what version of Linux you are on by running:
cat /etc/*ease
Create a directory to hold the utilites. In this examle we will use the /tmp/ql_utils directory:
mkdir /tmp/ql_utils
Change to the /tmp/ql_utils directory:
cd /tmp/ql_utils
Retrieve the utilities from the download above and extract them from the zip file into the /tmp/ql_utils directory.
This will put five files into /tmp/ql_utils:
ql-dynamic-tgt-lun-disc.sh
README.ql-dynamic-tgt-lun-disc.txt
Copying
revision.qldynamic.txt
sg3_utils-1.23.tgz
The file that we are going to be using is the ql-dynamic-tgt-lun-disc.sh file. We need to ensure that it is set to executable:
chmod a+x /tmp/ql_utils/ql-dynamic-tgt-lun-disc.sh
/tmp/ql_utils/ql-dynamic-tgt-lun-disc.sh -h
The commands to scan for new LUNs are listed below. After the commands we'll describe what each command does. These commands should be run with root priveledges while inside the /tmp/ql_utils directory.
powermt display dev=all | egrep "Pseudo|Logical" > before
./ql-dynamic-tgt-lun-disc.sh
Please make sure there is no active I/O before running this script
Do you want to continue: (yes/no)? yes
Do you want to continue: (yes/no)? yes
powermt config
powermt display dev=all | egrep "Pseudo|Logical" > after
diff after before
powermt save
The first line outputs the current list of LUNs to the file named before. This is optional, but, makes it easy to see what new LUNs have been discovered later on.
The second line actually does the scan for new LUNs and prompts you to make sure that it's ok to run the script. Answer yes to the prompt.
The fifth line (powermt config) creates the emcpower devices in /dev.
The sixth line outputs the new list of LUNs to the file named after.
The seventh line runs a command to compare the list of new LUNs to the list of old LUNs. The differences will be displayed on screen. Make sure that names of the new LUNs show up in the output.
The last line saves the configuration.
After this is done, the LUNs can be setup with LVM. (see LVM post)
After this is done, the LUNs can be setup with LVM. (see LVM post)
