Skip to main content

Adding a LUN using LVM over HBA in Xen Server and Cloudstack as Primary Storage


This tech blog helps you to configure primary storage in Cloudstack and Xen Cloud Platforms (XCP). I had a Dell Power Edge server which was connected to IBM 3500 Storage Box via a Cisco Fabric Switch 9124. I guess almost every organization has this kind of small Storage Area Network with servers and storage boxes connected. Okay, let us move on to the configuration settings.

Before we Proceed:

Server's HBA port is connected to a Fabric switch via fibre channel. A Storage box also connected to the same switch. Make sure that your logical volume created in Storage box is visible to our server. I believe that you have a little idea on Storage and Cloud architectures.

Configuration Settings:

1) To check the HBA port detection in xen host:

#lspci

Sample Output:
02:00.0 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)
02:00.1 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)

2) To check whether driver is installed or not in Xen:

#lsmod | grep qla2xxx

Sample Output:
qla2xxx               321630  4
scsi_transport_fc      40893  1 qla2xxx
scsi_mod              141570  9 sr_mod,sg,qla2xxx,scsi_transport_fc,libata,mptsas,mptscsih,scsi_transport_sas,sd_mod

3)  To find the Logical drive id (HBA-id) in xen:

#scsi_id -g -u -s /block/sdd (sd(drive letter)-according to lun mapping)

Sample output:
360080e50002363a200000bad50911a64

4) Create Storage Repository  in server:

#xe sr-create host-uuid=45c72206-de58-43de-9654-13efa7f3aa67 name-label=Cloud_Lun2 content-type=user shared=true device-config:SCSIid=360080e50002363a200000bad50911a64 type=lvmohba

Sample Output:
b7a5c01f-d001-ae74-cf1b-6d042f44d01d

5) #xe pbd-list sr-uuid=<sr-uuid> (Ex : f0fae26a-177c-b444-ff7c-7cfcfeb71bcf)

6) #xe pbd-plug uuid=<pbd-uuid>

7) Create Primary Storage and map the created SR in Cloudstack:



SR Name-Label should be same as we created.

8) Create a logical volume in Cloudstack:



9)  Attach it to a Virtual Machine:



10) Summary of created Primary Storage:


11) Refer  Mysql database which is in Cloudstack for more info or Modification on configuration:


12) Refer Management server log or Xen server logs for any issues:

Path : /var/log/cloud/management/management-server.log ( in Cloudstack Mgmt Server )               


Comments

Popular posts from this blog

eXploit WP Themes Brainstorm Arbitrary File Upload Vulnerability

Hello World ; Malam Fans, Please Say Hello Haters :* xixixhi, Nuenomaru disini,  Sekarang Nue akan Share   Tutorial Deface dengan eXploit WP Themes Brainstorm Arbitrary File Upload Vulnerability * ini exploit lama sih wkwkw exploit ini salah satu bug/celah yang ada pada theme di CMS WordPress. iseng2 aja share, Kali aja masih  crotz  wkwkw * yg master minggir dlu ;* Lanjut intip tutor ae gaes :* mau sampai kapan ?! Dork: inurl:/wp-content/themes/brainstorm (Selebihnya kebangin lg menggunakan imajinasi vokepers kalian, biar dpt yg vuln n verawan) 1. Dorking di search Engine 2. pilih salah satu web target yg pengen ente tusb0l pak wkwk, lalu masukan exploitnya. exploit: /[path]/ /wp-content/themes/brainstorm/functions/jwpanel/scripts/uploadify/uploadify.php 3. Vulnerability ~ Blank Kurang lebih sih gituh awkkaw~ 4. Buat File Baru Berekstensi .php Contoh brain.php Dan Simpan Script Berikut Di Directory C:/XAMPP/php Masukan Script Berikut Edit-Edit Dikit dan t...

Method Amazon Terbaru + Seller

Hallo Sobat Cyber, Kali Ini Saya Akan Membagikan Method AMAZON. Mungkin Sobat Sudah Pada Tahu Apa Itu AMAZON, Dan Sudah Tahu Juga Method AMAZON Bagi Yang Hoby Carding. Tapi Masih Ada Juga Sobat Yang Belom Tahu Method Untuk Carding Di AMAZON. Bagi Sobat Yang Penasaran Method Amazon, Silahkan Ikuti Tutorial Dari Saya, Cekidot : Alat Tempurnya : Akun Amazon VPN Premium, ane sih pake hma Jika sobat punya akun uk,fr,de,it,dll. loginnya di amazon . com aja, pake seller yang dibawah, jadi misalkan agan punya akun IT, akun itu gaperlu selalu login di amazon.it, di amazon . com juga bisa.Tapi jika sobat punya seller sendiri sillahkan gunakan :D boleh di amazon manapun :v Jika sobat co sebaiknya 1 1 dulu, setelah prepairing silahkan order lagi.   METHODE PAKE AKUN BULE (BILL=SHIP) : -Siapkan akun amazon live pastinya harus have card -Connect VPN sesuai negara cc akunnya, lalu clear cookies and chache - Terus Buka Check2ip.com dan atur tanggal dan waktu nya agar tidak ada yang merah -Bu...

How To Install Xpath Automated Sqli tool on Windows

Assalamualaikum warohmatullah wabarokatuh ^_^ Download Xpath Automated Sqli tool Mirror 1 Mirror 2 Bahan-Bahan : -Python27 -Prettytable -Requests -Colorama Langkah-langkahnya soub : 1. Install Python :v 2. Install Module  [ Prettytable ] Buka CMD, Masuk ke Directory C:/Python27/Scripts kemudian eksekusi perintah berikut : C:\Python27\Scripts>pip install prettytable 3. Install Module [ Requests ] Buka CMD, Masuk ke Directory C:/Python27/Scripts kemudian eksekusi perintah berikut : C:\Python27\Scripts>pip install requests 4. Install Module [ Colorama ] Buka CMD, Masuk ke Directory C:/Python27/Scripts kemudian eksekusi perintah berikut : C:\Python27\Scripts>pip install colorama 5.  Berhasil Terinstall ^_^ Cara pemakaiannya : xpath.py -u http://www.test.com/index.php?id=1 --dbs xpath.py -u http://www.test.com/ --data "index.php?id=1" --dbs Yang Mau bertanya silahkan di kolom komentar