『壹』 如何在HP伺服器上增加新的硬碟
目前HP伺服器的背板是支持熱插拔的,也就是說你可以在伺服器運行的時候將硬碟插入伺服器背板(插硬碟的介面),可以避免伺服器關閉導致不必要的損失
要增加硬碟首先要了解你的伺服器背板當前支持的硬碟介面類型,有的背板支持SATA介面的硬碟確不支持SAS介面的硬碟,但是支持SAS介面的背板肯定支持SATA介面的硬碟,遵循向下兼容的原則;還有就是當前連接背板的Storage congtroller支持什麼介面的硬碟,同樣遵循向下兼容的原則
增加硬碟還要取決於你當前RAID的級別
『貳』 八、磁碟分區和掛載
主要知識點: 基本分區、邏輯卷LVM、EXT3/4/XFS文件系統、RAID
1.1.初識硬碟
SSD的優勢
與傳統硬碟相比,SSD固態電子盤具有以下優點:
硬碟尺寸
從插拔方式
從硬碟介面
IDE和SATA的區別:
SAS與SCSI的區別
硬碟設備命名
HP伺服器硬碟
從存儲連接方式
1.2從分區方式區分
首先需要先給虛擬機添加磁碟
磁碟的命名規則上面有介紹
1.1.fdisk
創建分區:
1.2 gdisk
創建分區:
2.創建文件系統(格式化)centos7默認使用xfs
注意:這里一定要明確指定分區sdb1,或者sdb2,不能選擇整塊磁碟
3.掛載mount(臨時掛載)
取消掛載
3.1./etc/fstab文件實現自動掛載
查看磁碟掛載與磁碟使用空間
3.2/etc/rc.drc.local開機自動掛載
1.1分類
1.2概念
1.3.EXT
1.4.XFS
『叄』 請問伺服器如何連接存儲設備
最好的做法就是安裝HBA卡,然後光纖跳線。
『肆』 怎麼遠程連接伺服器與如何將本地磁碟掛載到到伺服器上
1 打開【開始】里的【附件】-【遠程桌面連接】。
2 點擊【選項】選擇【本地資源】選項卡。
3 點擊【詳細信息】展開將會看到驅動器的多選框。
4 選擇你需要勾選的驅動器,點擊【確定】,然後選擇【常規】在計算機一欄中輸入你想要遠程的主機IP地址。
5 點擊【連接】講出現一個提示框如下圖所示,顯示可以操作本地資源,請注意安全,繼續點擊【連接】。
6 現在遠程成功後就可以操作本地磁碟里的文件。
『伍』 有誰用過HP StorageWorks p2000的san存儲設備么請教一下如何掛載SAN的邏輯卷
伺服器上需要安裝iSCSI initiator的發起端,安裝後才能產生IQN,存儲端重啟下會自動發現主機IQN(伺服器和存儲聯網狀態),綁定就OK了.伺服器的iSCSI initiator也需要設置.去或google下載iSCSI initiator和使用說明吧.
『陸』 HP伺服器linux 操作系統如何添加硬碟
我們可以這個在系統載入,難度不大。但是此過程大概要20分鍾左右,因為需要同時伺服器服務要停止。
在 Linux 下設備文件放在 /dev 目錄下。
IDE 硬碟 第一塊 /dev/hda 、第二塊硬碟 /dev/hdb 、第三塊 /dev/hdc.
SCSI 硬碟 第一塊 /dev/sda 、第二塊硬碟 /dev/sdb 、第三塊 /dev/sdc
Hp raid or cpq array ( 這一點要注意 ).
第一個 logic driver /dev/cciss/c0d0
第二個 logic driver /dev/cciss/c0d1
以添加 SCSI 硬碟為例:
[root@linux /]# fdisk /dev/sdb 用 fdisk 工具來創建新的分區
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won"t be recoverable.
The number of cylinders for this disk is set to 17366.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): m 顯示主菜單
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition"s system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
Command (m for help): n 創建新分區
Command action
e extended 擴展的分區
p primary partition (1-4) 主分區
p 創建主分區
Partition number (1-4): 1
First cylinder (1-17366, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (1-17366, default 17366): +10000M 選擇分區大小
Command (m for help): w 保存退出
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
[root@linux /]# mkfs -t ext3 /dev/sdb1 將我創建的第一個分區 sdb1 格式化
mke2fs 1.27 ( 8-Mar-2002 )
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
1281696 inodes, 2560252 blocks
128012 blocks (5.00%) reserved for the super user
First data block=0
79 block groups
32768 blocks per group, 32768 fragments per group
16224 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 21 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
[root@linux /]# mkdir /new 創建一個根目錄
[root@linux /]# mount /dev/sdb1 /new 將 sdb1 分區 mount to /new
[root@linux /]# fdisk -l 查看分區信息
Disk /dev/sda: 64 heads, 32 sectors, 17366 cylinders
Units = cylinders of 2048 * 512 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 100 102384 83 Linux
/dev/sda2 101 12100 12288000 83 Linux
/dev/sda3 12101 16100 4096000 83 Linux
/dev/sda4 16101 17366 1296384 f Win95 Ext"d (LBA)
/dev/sda5 16101 16866 784368 82 Linux swap
/dev/sda6 16867 17366 511984 83 Linux
Disk /dev/sdb: 64 heads, 32 sectors, 17366 cylinders
Units = cylinders of 2048 * 512 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 10001 10241008 83 Linux
[root@linux /]# df 查看分區信息
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 12095032 2919684 8560948 26% /
/dev/sda1 99134 17861 76154 19% /boot
/dev/sda3 4031680 32968 3793912 1% /home
none 127688 0 127688 0% /dev/shm
/dev/sda6 495828 153957 316272 33% /var
/dev/sdb1 10080092 32828 9535216 1% /new
[root@linux /]#