1. Server Configuration
Tutorial with Dell
PowerEdge & HP
Proliant Supreme Mandal
Systems Engineer
Associate No. 473199
TATA CONSULTANCY SERVICES
LTD.
TCSHouse,Ravenline Sreet,
Fort Mumbai 400001 India
033663602000
[Type the fax number]
7/5/2011
2. INDEX
DELL Tutorial ……………………………………..3
HP Tutorial ….……………………………………..17
2 2. Step-by-Step Guide to Configure Hardware RAID on DELL servers with Screenshots| TATA CONSULTANCY
SERVICES LTD.
3. I. DELL Tutorial:
1. Create RAID Using PERC 6/i Integrated BIOS
Configuration Utility
Disk space is never enough. On an on-going basis system administrators will be getting request to increase the disk space
on a server.
In this article, let us review how to add new physical disks and create a virtual disk with a RAID configuration on an DELL
PowerEdge Server using PERC 6/i Integrated BIOS Configuration Utility.
The new DELL Servers have the ability to create RAID 0, 1, 5, 6 and 10 using the hardware controller.
Assume the scenario where the server came with 2 physical hard drives configured in RAID-1. This Logical Volume is
where the operating system is installed and you got a request to expand disk space on this server. So, you have
purchased additional disks and would like to configure a RAID setup. In this example, 4 additional disks are configured as
RAID-5 on a DELL PowerEdge 2950 server. The same steps works on other DELL PowerEdge servers as long as you have
the same PERC BIOS Configuration Utility.
If you are using an old server that uses PERC/CERC BIOS Configuration Utility, please refer to the article we wrote earlier
about how to create RAID on DELL Servers using PERC/CERC BIOS Configuration Utility (with screenshots).
1. Launch PERC 6/i Integrated BIOS Configuration Utility
First, insert all new disks in the empty slots. If there are already disks on slot 0 and slot 1, start inserting the new disks
from slot 2. In this example, the new 4 disks are inserted from slot-2 to slot-5.
After the disks are inserted, reboot the server. When the server is starting up, press Ctrl-R to launch the PowerEdge
Expandable RAID Controller BIOS. Press Ctrl-R when it is displaying the following message on the console.
3 2. Step-by-Step Guide to Configure Hardware RAID on DELL servers with Screenshots| TATA CONSULTANCY
SERVICES LTD.
4. Fig: Press Ctrl-R to Launch DELL PowerEdge 2950 III Expandable RAID Controller
This will launch the PERC 6/i Integrated BIOS Configuration Utility. This utility will have the following three TABs on the
top.
VD Mgmt – Virtual Disk Management, which will be selected by default.
PD Mgmt – Physical Disk Management
Ctrl Mgmt – Controller Management
2. Create New Virtual Disk
From the Virtual Disk Management, use arrow key and select ‗Controller 0′. Press F2 to show available operations for the
‗Controller 0′. This will display a pop-up menu with following choices. Select ‗Create New VD‘.
Create New VD
Clear Config
Foreign Config
Manage Preserved Cache
4 2. Step-by-Step Guide to Configure Hardware RAID on DELL servers with Screenshots| TATA CONSULTANCY
SERVICES LTD.
5. Fig: Create New Virtual Disk on DELL PowerEdge 1950 III Server
This will display the Virtual Disk Management screen with ‗Create New VD‘ Panel. Following are the various sections
displayed in this screen:
RAID Level
PD Per Scan
Physical Disks Section
Basic Settings
o VD Size
o VD Name
Advanced Settings
o Stripe Element Size
o Read Policy
Write Policy
Force WB with no battery
Initialize
Configure HotSpare
3. Choose RAID Level for the Virtual Disk
Press Enter on the RAID option, which will display the following RAID choices. In this example, I choose RAID-5 as shown
in the Fig below.
RAID-0
RAID-1
RAID-5
RAID-6
RAID-10
5 2. Step-by-Step Guide to Configure Hardware RAID on DELL servers with Screenshots| TATA CONSULTANCY
SERVICES LTD.
6. Fig: Select RAID Level in Create VD Screen for DELL PowerEdge 2970 Server
4. Select the Physical Disks for the Virtual Disk Group (RAID Group)
After selecting the RAID Level, press TAB and jump to Physical Disks section. This section will display all available disks
that are not configured yet. Every physical disks will display Drive ID and Size.
Press space bar to select the disks. i.e the check-box in front of the physical disk will be selected. Once you‘ve selected
one disk, it will automatically jump to the next available disk. Keep pressing space bar until all available physical disks are
selected as shown below.
Fig: Select all available Physical Disk in Create VD Screen for DELL PowerEdge R900 Server
5. Set Virtual Disk Group Basic Settings
Since I have selected 4 disks (each 139G) for RAID-5, the total usable space would be around 3x139G, which is
approximately 418176MB. This total size is calculated and displayed automatically in the VD Size under basic settings. You
can also assign a name to the VD. I‘ve left VD Name field blank.
6 2. Step-by-Step Guide to Configure Hardware RAID on DELL servers with Screenshots| TATA CONSULTANCY
SERVICES LTD.
7. Fig: Enter Basic Settings in Create VD Screen for DELL PowerEdge R805 Server
6. Set Virtual Disk Group Advanced Settings
I recommend leaving all the advanced settings to the default values.
Stripe Element Size – Default value is 64KB
Read Policy – Default value is No Read Ahead
Write Policy – Default Value is ―Write Back‖
By default, following values are not checked. i.e check-box not selected
o Force WB with no battery
o Initialize
o Configure HotSpare
7 2. Step-by-Step Guide to Configure Hardware RAID on DELL servers with Screenshots| TATA CONSULTANCY
SERVICES LTD.
8. Fig: Enter Advanced Settings in Create VD Screen for DELL PowerEdge R905 Server
7. New Virtual Disk (Logical Disk Group) Created with selected RAID Level
Press TAB to jump to OK and press enter. You‘ll get the following warning message. Click OK to continue. This will successfully create
the new Virtual Disk with RAID-5 configuration.
Warning Message: It is recommended that all newly created logical drives be initialized unless you are attempting to recreate a
previous configuration and recover data as initialization is a destructive process.
8. Create New VD Full Screen with All Details
When you‘ve entered all the above values, the whole Create New Virtual Disk Screen will look as shown below.
Fig: Create New VD Full Screen for DELL PowerEdge R200 Server
8 2. Step-by-Step Guide to Configure Hardware RAID on DELL servers with Screenshots| TATA CONSULTANCY
SERVICES LTD.
9. 9. New Virtual Disk – Initialization Progress
Once the VD is created, you’ll see a new ‘Disk Group 1′ under ‘Controller 0′. There will be a progress bar next
to the ‘Virtual Disk 1′ showing the progress of the initialization.
Fig: Virtual Disk Initialization Progress for DELL PowerEdge R300 Server
10. View Disk Group and Virtual Disk Properties
Expanding Disk Group 1 will display the following sub-items.
Virtual Disks
o Virtual Disk 1
Physical Disks
o slot# : status : size
o 02: Online: 139392MB
o 03: Online: 139392MB
9 2. Step-by-Step Guide to Configure Hardware RAID on DELL servers with Screenshots| TATA CONSULTANCY
SERVICES LTD.
10. o 04: Online: 139392MB
o 05: Online: 139392MB
Space Allocation
o Virtual Disk 1
Use arrow key and highlight the Virtual Disk 1, which will display the following properties of both Virtual Disk and Disk
Group on the right side.
Virtual Disk 1 Properties:
RAID Level: 5
RAID Status: Optimal (This will display degraded if any one of the disk in RAID5 failed)
Size: 408G
Operation: None. (During initialization process, this will display the status accordingly)
Disk Group 1 Properties:
VD Count: 1 (This is number of virtual disks in the disk group 1)
PD Count: 4 (This is the total number of physical disks that are part of this disk group)
Space Available: 0.000MB (The total number of free space available to create a new Virtual Disk in this disk
group)
Free Segment: 0
Dedicated HS: 0
10 2. Step-by-Step Guide to Configure Hardware RAID on DELL servers with Screenshots| TATA CONSULTANCY
SERVICES LTD.
11. Fig: Virtual Disk and Disk Group Properties for DELL PowerEdge R710 Server
The new disk configuration is now complete and available at the OS Level. Make sure to format and partition this new Virtual Disk at
the OS level before mounting it.
2. Step-by-Step Guide to Configure Hardware RAID
on DELL servers with Screenshots
11 2. Step-by-Step Guide to Configure Hardware RAID on DELL servers with Screenshots| TATA CONSULTANCY
SERVICES LTD.
12. Expanding the capacity of a server by adding new disk drives is a typical activity for administrator. In this article, let us review how to
add two new disk drives to the DELL server and create RAID 1 using ―Dell PowerEdge Expandable RAID Controller – PERC‖
configuration utility. This tool is also called as ―PERC/CERC Bios Configuration Utility‖.
If you are using the latest DELL Servers, please refer to the article that explains how to create RAID on PERC 6/i Integrated BIOS
Configuration Utility.
1. Launch PERC/CERC BIOS Configuration Utility.
Insert the two new disk drives onto the empty slots available on the server and reboot. During the system
startup, press Ctrl+M to launch the PowerEdge Expandable RAID Controller BIOS Configuration Utility.
2. Go to Configure -> View/Add Configuration
Using the arrow keys, select the Configure option from the main menu and ―View/Add Configuration‖ option from the
Configure menu as shown below.
12 2. Step-by-Step Guide to Configure Hardware RAID on DELL servers with Screenshots| TATA CONSULTANCY
SERVICES LTD.
13. 3. Status of the new disk drives
The ―View/Add Configuration‖ menu item, will display all disk drives on the system along with status. In the following
example, 4 disk drives are online and already configured. The 2 new drives display the READY status as shown below.
The text next to ONLINE indicates the logical volume number and the disk# inside the logical drive. For e.g. A01-00
indicates logical volume 1 and disk#0. A01-01 indicates logical volume 2 and disk#1.
4. Make the disk drives online
Use arrow key and select the first drive with READY status and press space bar, which will change the status
from READY to ONLINE and add A02-00 next to it. A02-00 will be blinking at this stage.
The cursor will automatically move to the next available drive with READY status. Press space bar, which will
change the status from READY to ONLINE and add A02-01 next to it. Both A02-00 and A02-01 will be blinking at
this stage.
Press Enter to indicate the array selection is complete. Both A02-00 and A02-01 will stop blinking.
13 2. Step-by-Step Guide to Configure Hardware RAID on DELL servers with Screenshots| TATA CONSULTANCY
SERVICES LTD.
14. 5. Configure the disk drives
Press F10 to continue the configuration of two selected disk drives. This will display the Array configuration screen as
shown below. The array number A02 number that got assigned for the new disk drives from the previous step, is
displayed here.
14 2. Step-by-Step Guide to Configure Hardware RAID on DELL servers with Screenshots| TATA CONSULTANCY
SERVICES LTD.
15. Press space bar which will display the Span-1 message in the A02 text area as shown below.
Press F10 to continue the configuration to the next step.
15 2. Step-by-Step Guide to Configure Hardware RAID on DELL servers with Screenshots| TATA CONSULTANCY
SERVICES LTD.
16. 6. Select RAID Level.
Pressing F10 from the above screen, will display the RAID configuration screen as shown below.
Use the arrow keys to select RAID 1 and press enter.
Use arrow keys to scroll down, select Accept and press enter to save the configurations.
The advanced menu in the above screen has the following options. I suggest that you don‘t change this and leave it to
the default values.
Stripe Size: 2KB, 4KB, 8KB, 16KB, 32KB, 64KB (default value) or 128 KB.
Write Policy: WRBACK (default value) or WRTHRU
Read Policy: NO_READAHEAD, READAHEAD or ADAPTIVE (default value)
Cache Policy: Cached IO or Direct IO (default value)
After saving the configuration, reboot the system. Logical Volume 02 is now configured as RAID1 using the two new disk
drives and ready for use.
16 2. Step-by-Step Guide to Configure Hardware RAID on DELL servers with Screenshots| TATA CONSULTANCY
SERVICES LTD.
17. II. HP Tutorial:
1. HP ProLiant DL 360/380 G5 Server base configuration
1. BIOS configuration
2. RAID configuration
1. BIOS configuration.
Restart HP DL server and wait for prompt for pressing F2 key. Press F2 key to enter in the BIOS settings. BIOS Main
menu.
17 / II. HP Tutorial:| TATA CONSULTANCY SERVICES LTD.
18. Enter in Server Availability submenu. Set the following options:
Automatic Power-On – Enabled (After power outage servers should be started automatically)
Wake-On Lan – disabled
Power-On delay – No Delay depending on the installation(can be used to prevent power system overload)
After the configuration is done press F10 key to exit from the BIOS:
18 1. HP ProLiant DL 360/380 G5 Server base configuration| TATA CONSULTANCY SERVICES LTD.
19. II.RAID configuration.
The RAID setup used for all onlinehowto.net installations is 1+0 also known as RAID 10.Raid 1+0 is a combination
between Raid 0 (striping) and Raid 1 (mirroring) :
RAID 0 (striped disks) distributes data across several disks in a way that gives improved speed and full capacity, but all
data on all disks will be lost if any one disk fails.
RAID 1 (mirrored disks) could be described as a backup solution, using two (possibly more) disks that each store the
same data so that data is not lost as long as one disk survives. Total capacity of the array is just the capacity of a single
disk. The failure of one drive, in the event of a hardware or software malfunction, does not increase the chance of a
failure nor decrease the reliability of the remaining drives.
To enter in RAID configuration menu reboot the server and wait for the prompt that will ask you to enter F8 to enter in
P400 Raid configuration utility.
19 | TATA CONSULTANCY SERVICES LTD.
20. Note:
For this tutorial we used a brand new system so we did not have any existing Logical Drives. Depending on you
situation you may need to delete any previously configured drives. Do this by your own judgment. In our case we
proceed this way.
To create the new logical drive goes to Create Logical Drive menu. Select all drives from Available Physical Drives
section Press Tab to go to the Raid configuration section, select RAID 1+0 option and press Enter to create the
Logical Drive.
20 | TATA CONSULTANCY SERVICES LTD.
23. 2. HP ProLiant DL 360/380 G5 Server ILO2
configuration
The tutorial applies for general server configuration. Most of the settings used are the way they are just as a result of
long years of experience for specific needs. Onlinehowto.net comes to use these setting for our own needs and that in
now way means that you have to do so also :)
This document focuses on iLO2 interface configuration Integrated Lights-Out, or iLO, is an embedded server
management technology exclusive to Hewlett-Packard.
iLO makes it possible to perform activities on an HP server from a remote location. The iLO card has a separate network
connection (and its own IP address) to which one can connect via HTTPS. Possible options are: reset the server (in case
the server doesn‖t respond anymore via the normal network card) power-up the server (possible to do this from a
remote location, even if the server is shut down) takes over the screen mount remote physical CD/DVD drive or image.
access the server‖s IML (Integrated Management Log) remote console (in some cases however an Advanced license
maybe required for some of the utilities to work) can be manipulated remotely through xml-based Remote Insight Board
Command Language (RIBCL) .
To enter in ILO2 configuration reboot the server and wait for the prompt and press F8.
First thing that we will configure is the IP address so you go to Network->DNS/DHCP as shown in the visual.
23 /| TATA CONSULTANCY SERVICES LTD.
24. After that set DHCP Enabled to OFF.
Press F10 to save the changes.
From the main screen select Network->NIC and TCP/IP
Set Network Interface Adapter to ON. Configure IP address, Subnet Mask and Gateway and press F10 to save the
changes.
24 /| TATA CONSULTANCY SERVICES LTD.
25. Set Network Interface Adapter to ON. Configure IP address, Subnet Mask and Gateway and press F10 to save the
changes.
The next step is to change/create user account settings. From the main screen go to User->Add
The next step is to change/create user account settings. From the main screen go to User->Add
25 /| TATA CONSULTANCY SERVICES LTD.
26. Fill the required fields as you wish and press F10 to save the changes.
26 /| TATA CONSULTANCY SERVICES LTD.
27. The last step is to check ILO settings. From the main screen go to Settings and check that Lights-Out Functionality is
enabled.
Press F10 to save the changes.
Go to File->Exit
To check if the ILO2 interface is accessible and configured properly connect the ILO port of the server to the network.
Configure IP address from the same network to workstation/notebook and try to open https://ilo-ipddress. Accept the
SSL certificate and log in via the login prompt. Try some of the options of the ILO2 (power on/off etc.).
27 /| TATA CONSULTANCY SERVICES LTD.
29. 3.HP MSA2012i – ISCSI storage General configuration
Initial Setup Guide
HP MSA2012i storage can be configured via web gui(SMU) or cli (Serial port connection or telnet).
In this tutorial I will show you how you can configure your HP MSA2012i storage via SMU.
To access the SMU you need use Internet Explorer >= 5.5 or Mozilla Firefox >= 1.0.7.
The default IP address of the management ports are:
Controller A 10.0.0.2
Controller B 10.0.0.3
In a web browser‖s address field, type IP address of on of the management ports and press enter.(If the address is not
responding you need to log to the controller via serial port and check the settings). The default user is manage and the
password is !manage.
- Change the default user and password.Go to:
Manage->Genelral config ->user configuration -> modify users
29 /| TATA CONSULTANCY SERVICES LTD.
30. Set the time or NTP configuration. Go to:
Manage->General config -> set date/time
Note: It is recommended to set it up an NTP server to synchronize the time periodically. Unfortunately from my
experience NTP servers are not always available as usually storage servers are not having direct Internet connection
- Configure network parameters.
To change Management ports IP addresses go to:
Manage->General config->LAN configuration
Note: In the below screen-shot we have set the IP address manually so that we get visual demonstration. However if
you have DHCP configured in your network it is recommended to go with that option
30 /| TATA CONSULTANCY SERVICES LTD.
31. To change Host(Data) ports parameters go to:
Manage->General config-> host port configuration
Note: In case you wonder what why we have to setup another set of IPs I will explain it here. The Raid
Controller IP that we set a bot before is the IP address to manage the controller. The Module Host Port IP is
the one that you will use for mounting the array from external server which will utilize the storage space.
31 /| TATA CONSULTANCY SERVICES LTD.
32. 4. HP MSA2012i –ISCSI storage Virtual Disk
configuration Initial Setup Guide
In this tutorial we will continue the guide how you can make your initial configuration of your new HP MSA2012i
storage. In case you have missed the first part of the guide you can read the full tutorial here HP MSA2012i – iscsi
storage General Config Initial Setup Guide
In this tutorial I will again show you how you can configure your HP MSA2012i storage via SMU.
To access the SMU you need use Internet Explorer >= 5.5 or Mozilla Firefox >= 1.0.7.
The default IP address of the management ports are:
Controller A 10.0.0.2
Controller B 10.0.0.3
In a web browser‖s address field, type IP address of on of the management ports and press enter.(If the address is not
responding you need to log to the controller via serial port and check the settings). The default user is manage and the
password is !manage.
- Create Virtual Disk (RAID). Go to:
Manage->VIRTUAL DISK CONFIG->create a vdisk
32 /| TATA CONSULTANCY SERVICES LTD.
33. A] Select "Manual Virtual Disk Creation".
B] Enter Vdisk name in "Enter Virtual Disk Name" section.
C] Select Virtual Disk RAID Level" to Raid 10
On the previous screen you have to click the Create new virtual Disk button. Once that is done you will end up with
the screen to choose which drives, from the ones available, will be part of that array.
Important: Remember that depending on the type of RAID you have chosen on the previous screen there are a Minimal
number of drives to use. In our case with RAID 10 we need to use at least 4 disks.
Select the drives that will be members of this Raid/Virtual Disk and press continue.
33 /| TATA CONSULTANCY SERVICES LTD.
34. To get the guide more visual configure the parameters as follows:
Set number of volumes to 1.
Create volumes of equal size – Yes
Expose volumes to all hosts – Yes
Automatically assign LUNs – Yes
I want to emphasize on the demonstrative purpose of this tutorial. You can feel free at any time to change values as you
wish. If you are going to need two partitions than please go for it.
Once you are done press theCreate Virtual Disk button.
34 /| TATA CONSULTANCY SERVICES LTD.
35. Next screen will show you the progress. Virtual disk creation stats screen looks like this
35 /| TATA CONSULTANCY SERVICES LTD.
36. 5.Using Bacula with HP autoloaders | Basics
This manual aims to describe the procedure for installing and configuring a tapeautoloader device with Bacula
software.
For the purposes of this manual we used 1/8 G2 Autoloader HP autoloaders. These are devices that simple change and
label the tapes inside them. Each device can accommodate up to 8 tapes LTO-3, with capacity of 800-1600GB per tape.
The autoloader is attached via iSCSI cable to the storage server. In our setups, this will be the server attached to the
autoloader
Autoloader – it has pretty neat GUI interface accessible through a web browser. All you have to do is configure an IP
address for the autoloader and access it through your browser. Configuration can be done from the buttons at the front
panel of the autoloader. For more details, refer to its documentation.
Once you‖ve attached the autoloader and the storage server‖s OS has been installed, make sure that you‖ve loaded the
sg driver
1. modprobe sg
The kernel module is used for generic scsi devices and should recognize your autoloader. Once, loaded, the autoloader
will as device at /dev/sg1 and the tape itself will be at /dev/st0.
You can verify the slot number positioning and the LUNs by:
cat /proc/scsi/scsi. It should list something like:
1. Attached devices: Host: scsi0 Channel: 00 Id: 05 Lun: 00
2.
3. Vendor: HP Model: Ultrium 3-SCSI Rev: C24W
4. Type: Sequential-Access ANSI SCSI revision: 05
For the next steps make sure that you‖ve install the mtx package from the RHEL repository. It‖s also used by Bacula to
change the tapes during backups.
Bacula works with 3 agents:
1. Directory – the heart of the software, runs on any machine and manages the backups. If you have a management
machine, you‖d better put it there.
2. Storage daemon – runs on the storage server; needs to be installed on the machine to which the autoloader is
attached
3. FD – client daemon – runs on the machines which will be backed up.
All of the 3 can run on the same machine, however, make sure that in none of the configuration you use ‖localhost‖ as
destination address. We‖ll talk about this in next manual Using Bacula with HP autoloaders | Installation
1. rpm -ivh bacula-mtx-1.38.5-1.i386.rpm
36 5.Using Bacula with HP autoloaders | Basics| TATA CONSULTANCY SERVICES LTD.
37. 6.Using Bacula with HP autoloaders | System Configs
In previous two tutorials we managed to get Bacula Software installed on our system. If you have missed the two
previous articles I recommend to pay a visit to them.Using Bacula with HP autoloaders | Basics
Using Bacula with HP autoloaders | Installation
So our installation is now complete. The Bacula files will be located in /usr/local/bacula with the following directory
structure:
1. ./sbin - binaries
2. ./var/bacula/working - pidfiles and logs
3. ./lib - libraries
4. ./etc - configuration files
5. ./include - header files
6. ./share - man pages
Time to make some changes so the system is aware of the new installation:
a) edit /etc/man.config, add MANPATH /usr/local/bacula/man – to make the docs systemwide available
b) edit /etc/ld.so.conf, add /usr/local/bacula/lib and them run ldconfig to rebuild the cache
c) edit ~/.bashrc, add export PATH=$PATH:/usr/local/bacula/sbin and then run source ~/.bashrc to make the
binaries system wide available
e) modify /etc/services
1. sed -i '$a bacula-dir 9101/tcp' /etc/services
2. sed -i '$a bacula-fd 9101/tcp' /etc/services
3. sed -i '$a bacula-sd 9101/tcp' /etc/services
f) modify /etc/hosts or your dns zone if you are using a DNS server. All systems participating in the backups should be
aware of each other by domain name.
Up to this point we are ready to do some testing on the tape device to prepare for production deployment.
a) Verify that the system recognizes the autoloader and the position of the tape cassettes in it.
Run mtx -f /dev/sg1 status. Output should be something like this:
1. Storage Changer /dev/sg1:1 Drives, 8 Slots ( 0 Import/Export )
2. Data Transfer Element 0:Full (Storage Element 4 Loaded)
3. Storage Element 1:Full
4. Storage Element 2:Full
5. Storage Element 3:Full
6. Storage Element 4:Empty
7. Storage Element 5:Empty
8. Storage Element 6:Empty
9. Storage Element 7:Empty
10. Storage Element 8:Empty
The above shows us that we have 4 tape cassettes loaded in the autoloader, left magazine(count starts from left
magazine, slot 1) and the cassette in slot 4 (left magazine, the one in the back of the autoloader) is loaded into slot 0.
This means that we can write to it.
Here are some useful commands:
37 5.Using Bacula with HP autoloaders | Basics| TATA CONSULTANCY SERVICES LTD.
38. mt -f /dev/st0 rewind – rewind the cassette, this works just like the cassette in your ex-walkman :)
mt -f /dev/st0 weof - write EndOfFile marks at position 0 on the cassette
mt -f /dev/st0 status – check the status of the cassette.
7.Using Bacula with HP autoloaders | Installation
We continue the manual for Using Bacula with HP autoloaders. In case you have missed the first part I recommend
that you read it here Using Bacula with HP autoloaders | Basics
Bacula uses 3 types of database servers, PostgreSQL, SQLite, Mysql to store it‖s catalog tables. For this manual we‖ve
chosen MySQL since it‖s widely available on all installations. The latter are used to store information about the running
jobs, backups available, etc., etc. – i.e. all the system information needed for the proper functioning of the software. Prior
to compiling and installing Bacula, you‖ll need to set up a mysql server.
1. Install MySQL
On the machine on which you are building the Director, Storage Daemon and the Client, you should at least have the
header files from the dev package.
2. Compiling Bacula.
Current version of Bacula, as of this writing is 3.0.1. You can download it from: here
3. Once you have it, untar and use the following options to build it.
a) cd to where you extracted
1. CFLAGS="-g -Wall"
2. ./configure –prefix=/usr/local/bacula –disable-ipv6 –enable-smartalloc –enable-batch-insert –enable-largefile –
with-mysql –with-openssl
3. –enable-conio –enable-static –enable-includes –enable-static-tools –enable-statis-fd –enable-static-sd –enable-
static-dir
4. –enable-build-dird –enable-build-stored
The above command will configure the Director, Storage Daemon and the Client Daemon as static binaries.
You can then copy them to the appropriate machines provided that they are the same OS version as the one you used for
building.
b) make and watch the output for errors, eventually you can redirect it to a file. There should be NO error in the output.
For all of the build targets the output should look like:
1. ==== Make of lib is good ====
2. ==== Make of findlib is good ====
3. ==== Make of filed is good ====
4. ==== Make of console is good ====
5. ==== Make of sqllib is good ====
6. ==== Make of dird is good ====
7. ===== Make of stored is good ====
8. ==== Make of tools is good ====
38 5.Using Bacula with HP autoloaders | Basics| TATA CONSULTANCY SERVICES LTD.
39. c) Now run make install | awk ”/====/ {print}”. Output of the command should look like this:
1. ==== Make of lib is good ====
2. ==== Make of findlib is good ====
3. ==== Make of filed is good ====
4. ==== Make of console is good ====
5. ==== Make of sqllib is good ====
6. ==== Make of dird is good ====
7. ===== Make of stored is good ====
d) make install-autostart – this will create the symlinks in the init.d directory.
e) Your installation is now complete.
8.How to retrieve HP Proliant server serial number
remotely
Not sure why I added in the title remotely because I‘m absolutely positive that you know how to the HP Proliant server
serial number when you are at the server room. But anyway for all of the other system administrators I will give you
guides how you can get the Proliant server serial number when you do not have physical access to the server. Probably
this covers about ninety-nine percent of the servers in the world. There are basically two approaches to get the serial
number of a HP Proliant server. First one is from the ILO 2 and the second one that I know of is from Hewlett-
Packard Advanced Server Management Command Line Interface or shorten hpasmcli.
There are two ways to get the HP Proliant server serial number from ILO. First one is from the web interface directly
and this is probably the easiest and most intuitive way.
Once you login to the ILO 2 web interface on the status page you will have the server serial number.
39 5.Using Bacula with HP autoloaders | Basics| TATA CONSULTANCY SERVICES LTD.
40. The second Way to get HP Proliant server serial number from ILO is from ILO ssh. It is harder I know but still you
can get the needed info from there. In case you have only limited connectiovoty to the server IP network this is still a
good approach.
Once you login to the ILO you need to run show /system1 command. The Serial number is under Properties-> number.
First 6 digits in the value are the product ID and the rest is your HP server serial number
1. [root@stats1 ~]# ssh 192.168.196.148
2. root@192.168.196.148's password:
3. User:root logged-in to ussddatabase2-server.(192.168.196.148)
4. iLO Advanced 1.30 at 15:04:45 Jun 01 2007
5. Server Name: db2
6. Server Power: On
7.
8. </>hpiLO-> show /system1
9. status=0
10. status_tag=COMMAND COMPLETED
11.
12.
13. /system1
14. Targets
15. firmware
16. bootconfig1
17. log1
40 5.Using Bacula with HP autoloaders | Basics| TATA CONSULTANCY SERVICES LTD.
41. 18. led1
19. oemhp_vsp1
20. cpu1
21. cpu2
22. memory1
23. memory2
24. memory3
25. memory4
26. memory5
27. memory6
28. memory7
29. memory8
30. slot1
31. slot2
32. slot3
33. slot4
34. slot5
35. fan1
36. fan2
37. fan3
38. fan4
39. fan5
40. fan6
41. sensor1
42. sensor2
43. sensor3
44. sensor4
45. sensor5
46. sensor6
47. sensor7
48. sensor8
49. sensor9
50. powersupply1
51. powersupply2
52. Properties
53. name=ProLiant DL380 G5
54. number=418315CZC7270XYZ
55. oemhp_server_name=db2
56. enabledstate=enabled
57. oemhp_powerreg=OS control
58. processor_number=4
59. pstate_number=2
60. oemhp_pwrcap=not set
61. Verbs
62. cd version exit show reset set start stop
63.
64.
65. </>hpiLO->
66. <="" span="">
The third way that I will demonstrate is by using hpasmcli command inside the server operating system. The command
is available for Linux OS only. It has some dependencies so it is not always available for usage. Generally what you need
to do is run hpasmcli and then type show server. The needed info is on the second line : Serial No.
1. [root@stats1 ~]# hpasmcli
41 5.Using Bacula with HP autoloaders | Basics| TATA CONSULTANCY SERVICES LTD.
42. 2. HP management CLI for Linux (v1.0)
3. Copyright 2004 Hewlett-Packard Development Group, L.P.
4.
5. ————————————————————————–
6. NOTE: Some hpasmcli commands may not be supported on all Proliant servers.
7. Type 'help' to get a list of all top level commands.
8. ————————————————————————–
9. hpasmcli> show server
10. System : ProLiant DL380 G5
11. Serial No. : CZC7270XYZ
12. ROM version : P56 05/01/2007
13. iLo present : Yes
14. Embedded NICs : 2
15. NIC1 MAC: 00:1b:78:3b:00:74
16. NIC2 MAC: 00:1b:78:3b:00:72
17.
18. Processor: 0
19. Name : Intel Xeon
20. Stepping :6
21. Speed : 3000 MHz
22. Bus : 1333 MHz
23. Core :2
24. Thread :2
25. Socket :1
26. Level2 Cache : 4096 KBytes
27. Status : Ok
28.
29. Processor: 1
30. Name : Intel Xeon
31. Stepping :6
32. Speed : 3000 MHz
33. Bus : 1333 MHz
34. Core :2
35. Thread :2
36. Socket :2
37. Level2 Cache : 4096 KBytes
38. Status : Ok
39.
40. Processor total : 2
41.
42. Memory installed : 4096 MBytes
43. ECC supported : Yes
42 5.Using Bacula with HP autoloaders | Basics| TATA CONSULTANCY SERVICES LTD.