我在服务器上有两个不同的RAIDarrays。 第一个虚拟驱动器是一个带有4个磁盘的RAID 10,已经映射到操作系统。 现在我已经创build了另一个RAID 0和一个磁盘的arrays。 由于第一个虚拟驱动器是在安装完整系统时通过安装例程创build和映射的,因此我不知道如何将新虚拟驱动器映射到操作系统。
虚拟驱动器:
# megacli -LDInfo -Lall -Aall Adapter 0 -- Virtual Drive Information: Virtual Drive: 0 (Target Id: 0) Name : RAID Level : Primary-1, Secondary-0, RAID Level Qualifier-0 Size : 5.457 TB Sector Size : 512 Mirror Data : 5.457 TB State : Optimal Strip Size : 64 KB Number Of Drives per span:2 Span Depth : 2 Default Cache Policy: WriteBack, ReadAhead, Direct, Write Cache OK if Bad BBU Current Cache Policy: WriteBack, ReadAhead, Direct, Write Cache OK if Bad BBU Default Access Policy: Read/Write Current Access Policy: Read/Write Disk Cache Policy : Disk's Default Encryption Type : None Default Power Savings Policy: Controller Defined Current Power Savings Policy: None Can spin up in 1 minute: Yes LD has drives that support T10 power conditions: No LD's IO profile supports MAX power savings with cached writes: No Bad Blocks Exist: No Is VD Cached: Yes Cache Cade Type : Read Only Virtual Drive: 1 (Target Id: 1) Name : RAID Level : Primary-0, Secondary-0, RAID Level Qualifier-0 Size : 2.728 TB Sector Size : 512 Parity Size : 0 State : Optimal Strip Size : 64 KB Number Of Drives : 1 Span Depth : 1 Default Cache Policy: WriteBack, ReadAhead, Direct, No Write Cache if Bad BBU Current Cache Policy: WriteBack, ReadAhead, Direct, No Write Cache if Bad BBU Default Access Policy: Read/Write Current Access Policy: Read/Write Disk Cache Policy : Disk's Default Encryption Type : None Default Power Savings Policy: Controller Defined Current Power Savings Policy: None Can spin up in 1 minute: Yes LD has drives that support T10 power conditions: No LD's IO profile supports MAX power savings with cached writes: No Bad Blocks Exist: No Is VD Cached: Yes Cache Cade Type : Read Only
现有的文件系统:
# df -h Filesystem Size Used Avail Use% Mounted on rootfs 5.5T 4.7T 525G 91% / udev 10M 80K 10M 1% /dev tmpfs 38G 248K 38G 1% /run /dev/disk/by-uuid/8fcd8997-12d3-4259-b7b9-4e5c27286b21 5.5T 4.7T 525G 91% / tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 77G 0 77G 0% /run/shm /dev/sda2 504M 40M 440M 9% /boot
什么是正确的步骤来获得新的虚拟驱动器映射,创build一个文件系统,并挂载到操作系统,例如/ var / backups / new? (我们在Debian 7.11上)非常感谢!
你将不得不写一个分区表到这个驱动器,这样你可以得到一个有效的分区来处理。 它可以占用整个可用的磁盘,如果需要的话。 您还需要使用有效的文件系统格式化该分区,然后使用mount命令暂时挂载该文件系统,或者使用/etc/fstab或automounter持久挂载该文件系统。
你select什么文件系统将取决于你使用的是什么。 根据我在这里给出的数据,我无法提供build议。 然而,这基本上归结为(在大多数情况下)在BTRFS,XFS和EXT4之间的select。 既然你在Debian Wheezy上,我会避免使用BTRFS,除非你确定你需要它。
首先,您需要确定要在哪个磁盘上运行。 在大多数情况下,通过读取lsblk命令的输出,这是最容易实现的。
那么你需要使用fdisk或parted来分区你的磁盘。
完成后,您将需要使用mkfs格式化该分区与文件系统
最后,如果你打算持久地使用它,你需要为这个文件系统指定一个永久的挂载点。 这通常通过fstab文件完成。