我有以下有趣的实验。我使用live usb在插入intel ss4200-e的usb上安装ubuntu server 12.04 i386和webmin,我想用它制作一个无头samba服务器。webmin 在分区菜单上显示以下情况:
Disk name Total size Make and model Partitions Actions
SCSI device A 7.39 GB Kingston DataTraveler 3.0 3 Identify drive
SATA device B 953.83 GB ATA Hitachi HDE72101 1 IDE parameters | Identify drive
SATA device C 953.83 GB ATA Hitachi HDE72101 1 IDE parameters | Identify drive
SATA device D 953.83 GB ATA Hitachi HDE72101 1 IDE parameters | Identify drive
SATA device E 953.83 GB ATA Hitachi HDE72101 1 IDE parameters | Identify drive
突袭菜单显示:
Device name Status RAID level Usable size Member disk devices
/dev/md0 clean RAID5 (Distributed Parity) 2.60 TB /dev/sdb1 | /dev/sdc1 | /dev/sdd1 | /dev/sde1
然后 \dev\md0 选项卡显示
Device file /dev/md0
UUID fcf48163:7efca14a:7bb08b15:81161d20
RAID level RAID5 (Distributed Parity)
Filesystem status Used in LVM VG volume
Usable size 2794526208 blocks (2.60 TB)
Persistent superblock? Yes
Layout left-symmetric
Chunk size 128 kB
RAID status clean
Partitions in RAID SATA device B partition 1
SATA device C partition 1
SATA device D partition 1
SATA device E partition 1
fstab 看起来像这样:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sdb1 during installation
UUID=437ea85c-1a1a-449f-a87f-e358cce2ba7e / ext2 errors=remount -ro 0 1
# swap was on /dev/sdb5 during installation
UUID=8800da26-a98b-4a6b-aa96-917fc529bfe1 none swap sw 0 0
pvs
PV VG Fmt Attr PSize PFree
/dev/md0 volume lvm2 a- 2,60t 0
例如,如何在启动时将该 /dev/md0 挂载到 /mnt/raidarray 中?
假设您的块设备
/dev/md0
已格式化,您发出以下命令:sudo blkid /dev/md0
这会给你一个 UUID,通常会告诉你它被格式化的文件系统。
然后将以下行添加到您的
/etc/fstab
UUID=the-uui-blkid-gave-you /mnt/raidarray file-system-you-used defaults 0 0
然后键入
sudo mount -a
,您的设备应该已安装。请注意该目录/mnt/raidarray
应该存在。