当我们启动计算机并登录时,我运行“fdisk -l”并列出所有hda分区.没有/ dev / sda.如果我运行“modprobe 3w-9xxx”然后再次运行“fdisk -l”,它会显示所有带有单个/ dev / sda的hda1到hda7分区
显然/ dev / sda没有挂载到文件夹,也没有格式化.
我检查了/ etc / fstab文件,它有以下行:
/ dev / vbackup / lvbackup / backups xfs默认值1 2
我猜这意味着/ backups文件夹已挂载到此设备/ dev / vbackup / lvbackup
我知道你需要使用“mkfs.xfs -f / dev / sda”来格式化驱动器,但我忘记要做的是将/ dev / sda设置为/ dev / vbackup / lvbackup挂载到/ backups
提前致谢
Aug 7 kernel: 3ware 9000 Storage Controller device driver for Linux v2.26.05.003-2.6.21. Aug 7 kernel: ACPI: PCI Interrupt 0000:04:0c.0[A] -> GSI 16 (level,low) -> IRQ 18 Aug 7 kernel: 3w-9xxx: scsi1: Found a 3ware 9000 Storage Controller at -xfc5ffc00,IRQ: 18 Aug 7 kernel: 3w-9xxx: scsi1: Firmware FE9X 2.08.00.006,BIOS BE9X 2.03.01.052,Ports: 8. Aug 7 kernel: scsi 1:0:0:0: Direct-Access AMCC 9500S-8 DISK 2.08 PQ: 0 ANSI: 3 Aug 7 kernel: sd 1:0:0:0: [sda] 1953083392 512-byte hardwaresectors (999979 MB) Aug 7 kernel: sd 1:0:0:0: [sda] Write Protect is off Aug 7 kernel: sd 1:0:0:0: [sda] Write cache: enabled,read cache disabled,doesn't support DPO or FUA Aug 7 kernel: sd 1:0:0:0: [sda] 1953083392 512-byte hardware sectors (999979 MB) Aug 7 kernel: sd 1:0:0:0: [sda] Write Protect is off Aug 7 kernel: sd 1:0:0:0: [sda] Write cache: enabled,doesn't support DPO or FUA Aug 7 kernel: sd 1:0:0:0: [sda] Write cache: enabled,read cache: disabled,doesn't support DPO or FUA Aug 7 kernel: sd 1:0:0:0: sda : unknown partition table Aug 7 kernel: sd 1:0:0:0: sd 1:0:0:0: [sda] Attached SCSI disk Aug 7 kernel: sd 1:0:0:0: sd 1:0:0:0: Attached scsi generic sg0 type 0 Aug 7 scsi.agent[3511]: disk at /devices/pci0000:00/0000:00:1e.0/0000:03:02.0/0000:04:0c.0/host1/target1:0:0/1:0:0:0 Aug 7 kernel: XFS mounting filesystem sda
Blockquote
解决方法
尝试命令lvdisplay,pvdisplay,vgdisplay.
您可以在不分区驱动器的情况下创建lvm卷.它可能已经配置并安装在该位置.
Checked the /etc/fstab file and it has the line: /dev/vbackup/lvbackup /backups xfs defaults 1 2
I’m guessing this means the /backups folder is mounted to this device /dev/vbackup /lvbackup
不,驱动器/ dev / sda作为卷组“vbackup”中的物理卷添加.已在此卷组中创建逻辑卷“lvbackup”.逻辑卷(“/ dev / vbackup / lvbackup”)安装在文件夹/ backups上.
如果它没有格式化(我怀疑它已经是格式化),你可以格式化逻辑卷mkfs.xfs / dev / vbackup / lvbackup,然后挂载它.
我再说一遍 – 不要用fdisk对驱动器进行分区.不要使用mkfs格式化驱动器.我强烈怀疑它已经格式化和安装.它在原始驱动器上运行lvm,因此也没有分区.
阅读lvm.
如果它已经配置,但只是没有提出raid控制器,试试这个:
vgchange -a y
mount /backups
另外…
除了适当的警告之外,让我们假设您有一个新的(替换?)驱动器,并且您希望它安装在旧驱动器的位置.这是你用来复制先前配置的命令(我可以从fstab中得知).
pvcreate /dev/sda
vgcreate vbackup /dev/sda
lvcreate -L 900G -n lvbackup vbackup
vgchange -a y
mkfs.xfs /dev/vbackup/lvbackup
mount /dev/vbackup/lvbackup /backups
祝好运!