扩展运行 Linux 的 RAID 1 (HP SmartArray P410i)

Oli*_*ver 5 linux hp hp-smart-array hardware-raid hp-proliant

我使用以下运行 Ubuntu 11.10(内核 3.0.0-12-server x86_64)的 RAID 1 配置接管了一个相当简单的服务器设置:

=> ctrl all show config

Smart Array P410i in Slot 0 (Embedded)    (sn: removed)

   array A (SAS, Unused Space: 1335535 MB)


      logicaldrive 1 (279.4 GB, RAID 1, OK)

      physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 1 TB, OK)
      physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 1 TB, OK)
Run Code Online (Sandbox Code Playgroud)

最初有两个 300GB 磁盘被 1TB 磁盘取代,现在我必须扩展逻辑卷以使用额外的空间。

但是,当我尝试这样做时,我收到以下警告:

=> ctrl slot=0 ld 1 modify size=max

Warning: Extension may not be supported on certain operating systems.
         Performing extension on these operating systems can cause data to
         become inaccessible. See ACU documentation for details. Continue?
         (y/n)
Run Code Online (Sandbox Code Playgroud)

说“是”是否安全,或者我是否有损坏文件系统/丢失数据的风险?之后重新排列和扩展文件系统应该不是问题,因为我可以使服务器脱机并从 gparted 实时磁盘启动。

这是正在使用的 RAID 控制器的配置:

=> ctrl all show detail

Smart Array P410i in Slot 0 (Embedded)
   Bus Interface: PCI
   Slot: 0
   Serial Number: removed
   RAID 6 (ADG) Status: Disabled
   Controller Status: OK
   Hardware Revision: Rev C
   Firmware Version: 5.12
   Rebuild Priority: Medium
   Expand Priority: Medium
   Surface Scan Delay: 15 secs
   Surface Scan Mode: Idle
   Wait for Cache Room: Disabled
   Surface Analysis Inconsistency Notification: Disabled
   Post Prompt Timeout: 0 secs
   Cache Board Present: False
   Drive Write Cache: Disabled
   SATA NCQ Supported: True
Run Code Online (Sandbox Code Playgroud)

和分区表:

Number  Start   End    Size    Type      File system     Flags
 1      1049kB  274GB  274GB   primary   ext4            boot
 2      274GB   300GB  25.8GB  extended
 5      274GB   300GB  25.8GB  logical   linux-swap(v1)
Run Code Online (Sandbox Code Playgroud)

eta*_*klo 0

您不会损坏文件系统,因为它们不会被更改。仅逻辑驱动器的大小发生变化,之后您仍然需要增加分区和文件系统。

通常,驱动程序应确保您随后看到驱动器的新大小。如果没有,您将在重新启动后看到新的大小。