Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Dell & HP Tutorial

4,350 views

Published on

  • hi can this be downloaded
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Dell & HP Tutorial

  1. 1. Server Configuration Tutorial with Dell PowerEdge & HP Proliant Supreme Mandal Systems Engineer Associate No. 473199TATA CONSULTANCY SERVICES LTD. TCSHouse,Ravenline Sreet, Fort Mumbai 400001 India 033663602000 [Type the fax number] 7/5/2011
  2. 2. INDEXDELL Tutorial ……………………………………..3HP Tutorial ….……………………………………..17 2 2. Step-by-Step Guide to Configure Hardware RAID on DELL servers with Screenshots| TATA CONSULTANCY SERVICES LTD.
  3. 3. I. DELL Tutorial:1. Create RAID Using PERC 6/i Integrated BIOSConfiguration UtilityDisk space is never enough. On an on-going basis system administrators will be getting request to increase the disk spaceon 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 DELLPowerEdge 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 iswhere the operating system is installed and you got a request to expand disk space on this server. So, you havepurchased additional disks and would like to configure a RAID setup. In this example, 4 additional disks are configured asRAID-5 on a DELL PowerEdge 2950 server. The same steps works on other DELL PowerEdge servers as long as you havethe 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 earlierabout how to create RAID on DELL Servers using PERC/CERC BIOS Configuration Utility (with screenshots).1. Launch PERC 6/i Integrated BIOS Configuration UtilityFirst, insert all new disks in the empty slots. If there are already disks on slot 0 and slot 1, start inserting the new disksfrom 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 PowerEdgeExpandable 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. 4. Fig: Press Ctrl-R to Launch DELL PowerEdge 2950 III Expandable RAID ControllerThis will launch the PERC 6/i Integrated BIOS Configuration Utility. This utility will have the following three TABs on thetop. VD Mgmt – Virtual Disk Management, which will be selected by default. PD Mgmt – Physical Disk Management Ctrl Mgmt – Controller Management2. Create New Virtual DiskFrom 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. 5. Fig: Create New Virtual Disk on DELL PowerEdge 1950 III ServerThis will display the Virtual Disk Management screen with ‗Create New VD‘ Panel. Following are the various sectionsdisplayed 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 HotSpare3. Choose RAID Level for the Virtual DiskPress Enter on the RAID option, which will display the following RAID choices. In this example, I choose RAID-5 as shownin 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. 6. Fig: Select RAID Level in Create VD Screen for DELL PowerEdge 2970 Server4. 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 disksthat 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 selectedone disk, it will automatically jump to the next available disk. Keep pressing space bar until all available physical disks areselected as shown below. Fig: Select all available Physical Disk in Create VD Screen for DELL PowerEdge R900 Server5. Set Virtual Disk Group Basic SettingsSince I have selected 4 disks (each 139G) for RAID-5, the total usable space would be around 3x139G, which isapproximately 418176MB. This total size is calculated and displayed automatically in the VD Size under basic settings. Youcan 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. 7. Fig: Enter Basic Settings in Create VD Screen for DELL PowerEdge R805 Server6. Set Virtual Disk Group Advanced SettingsI 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. 8. Fig: Enter Advanced Settings in Create VD Screen for DELL PowerEdge R905 Server7. New Virtual Disk (Logical Disk Group) Created with selected RAID LevelPress TAB to jump to OK and press enter. You‘ll get the following warning message. Click OK to continue. This will successfully createthe 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 aprevious configuration and recover data as initialization is a destructive process.8. Create New VD Full Screen with All DetailsWhen 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. 9. New Virtual Disk – Initialization ProgressOnce the VD is created, you’ll see a new ‘Disk Group 1′ under ‘Controller 0′. There will be a progress bar nextto the ‘Virtual Disk 1′ showing the progress of the initialization. Fig: Virtual Disk Initialization Progress for DELL PowerEdge R300 Server10. View Disk Group and Virtual Disk PropertiesExpanding 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. 10. o 04: Online: 139392MB o 05: Online: 139392MB Space Allocation o Virtual Disk 1Use arrow key and highlight the Virtual Disk 1, which will display the following properties of both Virtual Disk and DiskGroup 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. 11. Fig: Virtual Disk and Disk Group Properties for DELL PowerEdge R710 ServerThe new disk configuration is now complete and available at the OS Level. Make sure to format and partition this new Virtual Disk atthe OS level before mounting it.2. Step-by-Step Guide to Configure Hardware RAIDon DELL servers with Screenshots 11 2. Step-by-Step Guide to Configure Hardware RAID on DELL servers with Screenshots| TATA CONSULTANCY SERVICES LTD.
  12. 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 toadd 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 BIOSConfiguration 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 systemstartup, press Ctrl+M to launch the PowerEdge Expandable RAID Controller BIOS Configuration Utility.2. Go to Configure -> View/Add ConfigurationUsing the arrow keys, select the Configure option from the main menu and ―View/Add Configuration‖ option from theConfigure menu as shown below. 12 2. Step-by-Step Guide to Configure Hardware RAID on DELL servers with Screenshots| TATA CONSULTANCY SERVICES LTD.
  13. 13. 3. Status of the new disk drivesThe ―View/Add Configuration‖ menu item, will display all disk drives on the system along with status. In the followingexample, 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-00indicates 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. 14. 5. Configure the disk drivesPress F10 to continue the configuration of two selected disk drives. This will display the Array configuration screen asshown below. The array number A02 number that got assigned for the new disk drives from the previous step, isdisplayed here. 14 2. Step-by-Step Guide to Configure Hardware RAID on DELL servers with Screenshots| TATA CONSULTANCY SERVICES LTD.
  15. 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. 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 tothe 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 diskdrives and ready for use. 16 2. Step-by-Step Guide to Configure Hardware RAID on DELL servers with Screenshots| TATA CONSULTANCY SERVICES LTD.
  17. 17. II. HP Tutorial:1. HP ProLiant DL 360/380 G5 Server base configuration1. BIOS configuration2. RAID configuration1. BIOS configuration.Restart HP DL server and wait for prompt for pressing F2 key. Press F2 key to enter in the BIOS settings. BIOS Mainmenu. 17 / II. HP Tutorial:| TATA CONSULTANCY SERVICES LTD.
  18. 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 – disabledPower-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. 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 combinationbetween 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 alldata 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 thesame data so that data is not lost as long as one disk survives. Total capacity of the array is just the capacity of a singledisk. The failure of one drive, in the event of a hardware or software malfunction, does not increase the chance of afailure 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 inP400 Raid configuration utility. 19 | TATA CONSULTANCY SERVICES LTD.
  20. 20. Note:For this tutorial we used a brand new system so we did not have any existing Logical Drives. Depending on yousituation you may need to delete any previously configured drives. Do this by your own judgment. In our case weproceed this way.To create the new logical drive goes to Create Logical Drive menu. Select all drives from Available Physical Drivessection Press Tab to go to the Raid configuration section, select RAID 1+0 option and press Enter to create theLogical Drive. 20 | TATA CONSULTANCY SERVICES LTD.
  21. 21. 21 /| TATA CONSULTANCY SERVICES LTD.
  22. 22. 022 /| TATA CONSULTANCY SERVICES LTD.
  23. 23. 2. HP ProLiant DL 360/380 G5 Server ILO2configurationThe tutorial applies for general server configuration. Most of the settings used are the way they are just as a result oflong years of experience for specific needs. Onlinehowto.net comes to use these setting for our own needs and that innow way means that you have to do so also :)This document focuses on iLO2 interface configuration Integrated Lights-Out, or iLO, is an embedded servermanagement 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 networkconnection (and its own IP address) to which one can connect via HTTPS. Possible options are: reset the server (in casethe server doesn‖t respond anymore via the normal network card) power-up the server (possible to do this from aremote 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 licensemaybe required for some of the utilities to work) can be manipulated remotely through xml-based Remote Insight BoardCommand 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. 24. After that set DHCP Enabled to OFF.Press F10 to save the changes.From the main screen select Network->NIC and TCP/IPSet Network Interface Adapter to ON. Configure IP address, Subnet Mask and Gateway and press F10 to save thechanges. 24 /| TATA CONSULTANCY SERVICES LTD.
  25. 25. Set Network Interface Adapter to ON. Configure IP address, Subnet Mask and Gateway and press F10 to save thechanges.The next step is to change/create user account settings. From the main screen go to User->AddThe next step is to change/create user account settings. From the main screen go to User->Add 25 /| TATA CONSULTANCY SERVICES LTD.
  26. 26. Fill the required fields as you wish and press F10 to save the changes. 26 /| TATA CONSULTANCY SERVICES LTD.
  27. 27. The last step is to check ILO settings. From the main screen go to Settings and check that Lights-Out Functionality isenabled.Press F10 to save the changes.Go to File->ExitTo 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 theSSL 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.
  28. 28. 28 /| TATA CONSULTANCY SERVICES LTD.
  29. 29. 3.HP MSA2012i – ISCSI storage General configurationInitial Setup GuideHP 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.2Controller B 10.0.0.3In a web browser‖s address field, type IP address of on of the management ports and press enter.(If the address is notresponding you need to log to the controller via serial port and check the settings). The default user is manage and thepassword is !manage.- Change the default user and password.Go to:Manage->Genelral config ->user configuration -> modify users 29 /| TATA CONSULTANCY SERVICES LTD.
  30. 30. Set the time or NTP configuration. Go to:Manage->General config -> set date/timeNote: It is recommended to set it up an NTP server to synchronize the time periodically. Unfortunately from myexperience 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 configurationNote: In the below screen-shot we have set the IP address manually so that we get visual demonstration. However ifyou have DHCP configured in your network it is recommended to go with that option 30 /| TATA CONSULTANCY SERVICES LTD.
  31. 31. To change Host(Data) ports parameters go to:Manage->General config-> host port configurationNote: In case you wonder what why we have to setup another set of IPs I will explain it here. The RaidController IP that we set a bot before is the IP address to manage the controller. The Module Host Port IP isthe one that you will use for mounting the array from external server which will utilize the storage space. 31 /| TATA CONSULTANCY SERVICES LTD.
  32. 32. 4. HP MSA2012i –ISCSI storage Virtual Diskconfiguration Initial Setup GuideIn this tutorial we will continue the guide how you can make your initial configuration of your new HP MSA2012istorage. In case you have missed the first part of the guide you can read the full tutorial here HP MSA2012i – iscsistorage General Config Initial Setup GuideIn 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.2Controller B 10.0.0.3In a web browser‖s address field, type IP address of on of the management ports and press enter.(If the address is notresponding you need to log to the controller via serial port and check the settings). The default user is manage and thepassword is !manage.- Create Virtual Disk (RAID). Go to:Manage->VIRTUAL DISK CONFIG->create a vdisk 32 /| TATA CONSULTANCY SERVICES LTD.
  33. 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 10On the previous screen you have to click the Create new virtual Disk button. Once that is done you will end up withthe 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 Minimalnumber 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. 34. To get the guide more visual configure the parameters as follows:Set number of volumes to 1.Create volumes of equal size – YesExpose volumes to all hosts – YesAutomatically assign LUNs – YesI want to emphasize on the demonstrative purpose of this tutorial. You can feel free at any time to change values as youwish. 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. 35. Next screen will show you the progress. Virtual disk creation stats screen looks like this 35 /| TATA CONSULTANCY SERVICES LTD.
  36. 36. 5.Using Bacula with HP autoloaders | BasicsThis manual aims to describe the procedure for installing and configuring a tapeautoloader device with Baculasoftware.For the purposes of this manual we used 1/8 G2 Autoloader HP autoloaders. These are devices that simple change andlabel 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 theautoloaderAutoloader – it has pretty neat GUI interface accessible through a web browser. All you have to do is configure an IPaddress for the autoloader and access it through your browser. Configuration can be done from the buttons at the frontpanel 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 thesg driver 1. modprobe sgThe kernel module is used for generic scsi devices and should recognize your autoloader. Once, loaded, the autoloaderwill 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: 05For the next steps make sure that you‖ve install the mtx package from the RHEL repository. It‖s also used by Bacula tochange 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 managementmachine, 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 isattached3. 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‖ asdestination 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. 37. 6.Using Bacula with HP autoloaders | System ConfigsIn previous two tutorials we managed to get Bacula Software installed on our system. If you have missed the twoprevious articles I recommend to pay a visit to them.Using Bacula with HP autoloaders | BasicsUsing Bacula with HP autoloaders | InstallationSo our installation is now complete. The Bacula files will be located in /usr/local/bacula with the following directorystructure: 1. ./sbin - binaries 2. ./var/bacula/working - pidfiles and logs 3. ./lib - libraries 4. ./etc - configuration files 5. ./include - header files 6. ./share - man pagesTime 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 availableb) edit /etc/ld.so.conf, add /usr/local/bacula/lib and them run ldconfig to rebuild the cachec) edit ~/.bashrc, add export PATH=$PATH:/usr/local/bacula/sbin and then run source ~/.bashrc to make thebinaries system wide availablee) 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/servicesf) modify /etc/hosts or your dns zone if you are using a DNS server. All systems participating in the backups should beaware 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:EmptyThe above shows us that we have 4 tape cassettes loaded in the autoloader, left magazine(count starts from leftmagazine, 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. 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 cassettemt -f /dev/st0 status – check the status of the cassette.7.Using Bacula with HP autoloaders | InstallationWe continue the manual for Using Bacula with HP autoloaders. In case you have missed the first part I recommendthat you read it here Using Bacula with HP autoloaders | BasicsBacula uses 3 types of database servers, PostgreSQL, SQLite, Mysql to store it‖s catalog tables. For this manual we‖vechosen MySQL since it‖s widely available on all installations. The latter are used to store information about the runningjobs, backups available, etc., etc. – i.e. all the system information needed for the proper functioning of the software. Priorto compiling and installing Bacula, you‖ll need to set up a mysql server.1. Install MySQLOn the machine on which you are building the Director, Storage Daemon and the Client, you should at least have theheader 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: here3. 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-storedThe 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 forbuilding.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. 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 numberremotelyNot sure why I added in the title remotely because I‘m absolutely positive that you know how to the HP Proliant serverserial number when you are at the server room. But anyway for all of the other system administrators I will give youguides how you can get the Proliant server serial number when you do not have physical access to the server. Probablythis covers about ninety-nine percent of the servers in the world. There are basically two approaches to get the serialnumber 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 directlyand 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. 40. The second Way to get HP Proliant server serial number from ILO is from ILO ssh. It is harder I know but still youcan get the needed info from there. In case you have only limited connectiovoty to the server IP network this is still agood 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.148s 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. 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 commandis available for Linux OS only. It has some dependencies so it is not always available for usage. Generally what you needto 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. 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 server10. System : ProLiant DL380 G511. Serial No. : CZC7270XYZ12. ROM version : P56 05/01/200713. iLo present : Yes14. Embedded NICs : 215. NIC1 MAC: 00:1b:78:3b:00:7416. NIC2 MAC: 00:1b:78:3b:00:7217.18. Processor: 019. Name : Intel Xeon20. Stepping :621. Speed : 3000 MHz22. Bus : 1333 MHz23. Core :224. Thread :225. Socket :126. Level2 Cache : 4096 KBytes27. Status : Ok28.29. Processor: 130. Name : Intel Xeon31. Stepping :632. Speed : 3000 MHz33. Bus : 1333 MHz34. Core :235. Thread :236. Socket :237. Level2 Cache : 4096 KBytes38. Status : Ok39.40. Processor total : 241.42. Memory installed : 4096 MBytes43. ECC supported : Yes 42 5.Using Bacula with HP autoloaders | Basics| TATA CONSULTANCY SERVICES LTD.

×