使用 Fake RAID 1 安装 Ubuntu

使用 Fake RAID 1 安装 Ubuntu

我有:

  • 软件:

    双启动
    • Windows XP
    • Ubuntu 10.04 LTSx32

  • 硬件
    • 具有 2x1 TB 的假 RAID 1(镜像):

分区 1 - Windows
分区 2 - SWAP
分区 3 - /(根)
分区 4 - 扩展
分区 5 - /home
分区 6 - /data

arek@domek:/var/log/installer$ sudo fdisk -l

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000de1b9

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63   524297339   262148638+   7  HPFS/NTFS/exFAT
/dev/sda2       524297340   528506369     2104515   82  Linux swap / Solaris
/dev/sda3       528506370   570468149    20980890   83  Linux
/dev/sda4       570468150  1953118439   691325145    5  Extended
/dev/sda5       570468213   675340469    52436128+  83  Linux
/dev/sda6       675340533  1953118439   638888953+  83  Linux

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000de1b9

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *          63   524297339   262148638+   7  HPFS/NTFS/exFAT
/dev/sdb2       524297340   528506369     2104515   82  Linux swap / Solaris
/dev/sdb3       528506370   570468149    20980890   83  Linux
/dev/sdb4       570468150  1953118439   691325145    5  Extended
/dev/sdb5       570468213   675340469    52436128+  83  Linux
/dev/sdb6       675340533  1953118439   638888953+  83  Linux

arek@domek:/var/log/installer$ ls -l /dev/mapper/
total 0
crw------- 1 root root 10, 236 Oct  7 20:17 control
lrwxrwxrwx 1 root root       7 Oct  7 20:17 pdc_jhjbcaha -> ../dm-0
lrwxrwxrwx 1 root root       7 Oct  7 20:17 pdc_jhjbcaha1 -> ../dm-1
lrwxrwxrwx 1 root root       7 Oct  7 20:17 pdc_jhjbcaha2 -> ../dm-2
lrwxrwxrwx 1 root root       7 Oct  7 20:17 pdc_jhjbcaha3 -> ../dm-3
lrwxrwxrwx 1 root root       7 Oct  7 20:17 pdc_jhjbcaha4 -> ../dm-4
lrwxrwxrwx 1 root root       7 Oct  7 20:17 pdc_jhjbcaha5 -> ../dm-5
lrwxrwxrwx 1 root root       7 Oct  7 20:17 pdc_jhjbcaha6 -> ../dm-6



我想从 10.04 升级x32至 12.04x64使用 FRESH 安装。

答案1

因此,运行 Ubuntu 12.04.1 的安装x64使用备用 CD 的 LTS。

在安装过程中,我选择了手动分区并执行以下操作:
- 使用和格式化 /(根)
- 使用和格式化 SWAP
- 使用和保留 /home 上的数据
- 使用和保留 /data 上的数据


单击“继续”后,出现创建和格式化 SWAP 分区的错误。

我使用 Alt + F2(?)进入终端并按回车键。
我发现只有可见的 RAID 作为没有分区的磁盘。
类似这样的内容:

arek@domek:/var/log/installer$ ls -l /dev/mapper/
lrwxrwxrwx 1 root root 7 Oct  7 20:17 /dev/mapper/pdc_jhjbcaha -> ../dm-0


arek@domek:/var/log/installer$ ls -l /dev/dm*
brw-rw---- 1 root disk 252, 0 Oct  7 20:17 /dev/dm-0



因此我切换到日志控制台 Alt+F3 (?) 并看到如下错误:

Oct  7 14:02:45 check-missing-firmware: /dev/.udev/firmware-missing does not exist, skipping
Oct  7 14:02:45 check-missing-firmware: /run/udev/firmware-missing does not exist, skipping
Oct  7 14:02:45 check-missing-firmware: no missing firmware in /dev/.udev/firmware-missing /run/udev/firmware-missing
Oct  7 14:02:45 anna-install: Installing dmraid-udeb
Oct  7 14:02:45 anna[12599]: DEBUG: retrieving dmraid-udeb 1.0.0.rc16-4.1ubuntu8
Oct  7 14:02:49 anna[12599]: DEBUG: retrieving libdmraid1.0.0.rc16-udeb 1.0.0.rc16-4.1ubuntu8
Oct  7 14:02:49 anna[12599]: DEBUG: retrieving kpartx-udeb 0.4.9-3ubuntu5
Oct  7 14:02:49 disk-detect: Serial ATA RAID disk(s) detected.
Oct  7 14:02:55 disk-detect: Enabling dmraid support.
Oct  7 14:02:55 disk-detect: RAID set "pdc_jhjbcaha" was activated
Oct  7 14:02:55 HERE --> dmraid-activate: ERROR: Cannot retrieve RAID set information for pdc_jhjbcaha 
Oct  7 14:02:56 check-missing-firmware: /dev/.udev/firmware-missing does not exist, skipping
Oct  7 14:02:56 check-missing-firmware: /run/udev/firmware-missing does not exist, skipping
Oct  7 14:02:56 check-missing-firmware: no missing firmware in /dev/.udev/firmware-missing /run/udev/firmware-missing
Oct  7 14:02:57 main-menu[428]: DEBUG: resolver (libnewt0.52): package doesn't exist (ignored)
Oct  7 14:02:57 main-menu[428]: DEBUG: resolver (ext2-modules): package doesn't exist (ignored)
Oct  7 14:02:57 main-menu[428]: INFO: Menu item 'partman-base' selected
Oct  7 14:02:57 kernel: [  316.512999] NTFS driver 2.1.30 [Flags: R/O MODULE].
Oct  7 14:02:57 kernel: [  316.523221] Btrfs loaded
Oct  7 14:02:57 kernel: [  316.534781] JFS: nTxBlock = 8192, nTxLock = 65536
Oct  7 14:02:57 kernel: [  316.554749] SGI XFS with ACLs, security attributes, realtime, large block/inode numbers, no debug enabled
Oct  7 14:02:57 kernel: [  316.555336] SGI XFS Quota Management subsystem
Oct  7 14:02:58 md-devices: mdadm: No arrays found in config file or automatically
Oct  7 14:02:58 partman:   No matching physical volumes found
Oct  7 14:02:58 partman:   No volume groups found
Oct  7 14:02:58 partman:   Reading all physical volumes.  This may take a while...
Oct  7 14:02:58 partman-lvm:   No volume groups found
Oct  7 14:02:58 partman: Error running 'tune2fs -l /dev/mapper/pdc_jhjbcaha'
Oct  7 14:02:58 partman: Error running 'tune2fs -l /dev/mapper/pdc_jhjbcaha'
Oct  7 14:02:58 partman: Error running 'tune2fs -l /dev/mapper/pdc_jhjbcaha'
Oct  7 14:06:11 HERE --> partman: mkswap: can't open '/dev/mapper/pdc_jhjbcaha2': No such file or directory
Oct  7 14:07:28 init: starting pid 401, tty '/dev/tty2': '-/bin/sh'
Oct  7 14:15:00 net/hw-detect.hotplug: Detected hotpluggable network interface eth0
Oct  7 14:15:00 net/hw-detect.hotplug: Detected hotpluggable network interface lo


如你所见,有 2 个错误

Oct  7 14:02:55 dmraid-activate: ERROR: Cannot retrieve RAID set information for pdc_jhjbcaha



Oct  7 14:06:11 partman: mkswap: can't open '/dev/mapper/pdc_jhjbcaha2': No such file or directory


我上网查找并尝试运行命令“dmraid -ay”并得到如下结果:


dmraid -ay
/dev/mapper/pdc_jhjbcaha -> Already activated
/dev/mapper/pdc_jhjbcaha1 -> Successfully activated
/dev/mapper/pdc_jhjbcaha2 -> Successfully activated
/dev/mapper/pdc_jhjbcaha3 -> Successfully activated
/dev/mapper/pdc_jhjbcaha4 -> Successfully activated
/dev/mapper/pdc_jhjbcaha5 -> Successfully activated
/dev/mapper/pdc_jhjbcaha6 -> Successfully activated



然后我使用 Alt+F1 (?) 返回安装程序并单击“返回”以返回分区菜单。我做到了不是改变任何内容只需再次选择“继续”,一切都会顺利进行。

我希望这对某人有帮助。

阿卡迪乌斯

答案2

“实际上,无法使用 mdadm fakeraid 设置新的 ubuntu 安装(试过 12.04 和 12.10 alpha 2 备用 cd):只提供 dmraid。”根据:

https://lists.ubuntu.com/archives/foundations-bugs/2012-July/103906.html

https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/1028677

截至 2012 年 10 月 23 日,该错误仍被确认且尚未修复。

相关内容