1. 程式人生 > >Centos7下安裝配置開源儲存虛擬化QuadStor(1)------初始化QuadStor

Centos7下安裝配置開源儲存虛擬化QuadStor(1)------初始化QuadStor

操作環境

OS

[[email protected] ~]# cat /etc/redhat-release 
CentOS Linux release 7.4.1708 (Core) 

QuadStor

quadstor-virt-3.2.13-rhel.x86_64.rpm

操作步驟

QuadStor是一款開源儲存產品,可以用來做虛擬磁帶庫以及儲存虛擬化,本次作為儲存虛擬化來介紹。

儲存虛擬化功能如下:


1.安裝依賴包

#yum install httpd gcc perl kernel-devel sg3_utils iotop sysstat lsscsi

2.安裝quadstor

[[email protected]
~]# rpm -ivh quadstor-virt-3.2.13-rhel.x86_64.rpm Preparing... ################################# [100%] Updating / installing... 1:quadstor-virt-3.2.13-rhel ################################# [100%] QUADStor Storage Virtualization commercial edition software is distributed under the following terms THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. YOU AGREE NOT TO REVERSE ENGINEER, DECOMPILE, DISASSEMBLE, CREATE ANY DERIVATIVE WORK OF THIS SOFTWARE. YOU AGREE NOT TO REDISTRIBUTE THIS SOFTWARE WITHOUT PRIOR WRITTEN PERMISSION. THIS HOWEVER DOES NOT APPLY TO THIRD PARTY/OPEN SOURCE COMPONENTS DISTRIBUTED WITH THIS SOFTWARE. FOR THIRD PARTY/OPEN SOURCE COMPONENTS THEIR RESPECTIVE LICENSING APPLIES. Copyright (C) QUADStor Systems. All Rights Reserved. For any queries contact
[email protected]
Performing post install. Please wait... Created symlink from /etc/systemd/system/multi-user.target.wants/quadstor.service to /usr/lib/systemd/system/quadstor.service. Building required kernel modules Running /quadstor/bin/builditf. This may take a few minutes.

3.啟動httpd&quadstor

[[email protected]
~]# systemctl enable httpd Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service. [[email protected] ~]# systemctl enable quadstor [[email protected] ~]# systemctl start httpd [[email protected] ~]# systemctl start quadstor

4.登入quadstor管理介面


5.預設配置下是免密碼登入quadstor管理頁面的,下面配置需要密碼登入

a.在/var/www/cgi-bin目錄下建立.htacess檔案,內容如下

[[email protected] cgi-bin]# vi .htaccess 
AuthName "QUADStor Authentication"
AuthType Basic
AuthUserFile /var/www/cgi-bin/.htpasswd
Require valid-user

b.建立.htpasswd檔案

[[email protected] cgi-bin]# htpasswd -s -b -c /var/www/cgi-bin/.htpasswd webadmin webadmin

c.配置httpd.conf檔案中關於cgi-bin部分如下:

<Directory "/var/www/cgi-bin">
        AllowOverride AuthConfig Limit
        Options None
        Order allow,deny
        Allow from all
</Directory>

d.重啟httpd&quadstor

[[email protected] cgi-bin]# systemctl restart httpd
[[email protected] cgi-bin]# systemctl restart quadstor

e.登入管理介面


在登入時,彈出對話方塊需要輸入使用者名稱密碼webadmin/webadmin