Answer the question
In order to leave comments, you need to log in
How to create raid 1, or get information from disks?
Raised the server on debian8, installed the system on a separate disk. I took two WD disks from synology. There they were in raid1. I would like to re-enable disks in raid1 without erasing information from disks. Tell me how to do it.
if this is not possible, then at least extract the information from the disks.
cat /proc/mdstat
Personalities : [raid1]
md2 : active raid1 sdc5[0]
2925531648 blocks super 1.2 [2/1] [U_]
unused devices: <none>
fdisk -l /dev/sdc /dev/sdb
Disk /dev/sdc: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 4ECEA6BB-8B09-43FC-9C8A-21FDF196DE0A
Device Start End Sectors Size Type
/dev/sdc1 256 4980735 4980480 2.4G Linux RAID
/dev/sdc2 4980736 9175039 4194304 2G Linux RAID
/dev/sdc5 9453280 5860519007 5851065728 2.7T Linux RAID
Disk /dev/sdb: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: C70DB86E-61C2-467C-87A5-98D4A0D372E0
Device Start End Sectors Size Type
/dev/sdb1 256 4980735 4980480 2.4G Linux RAID
/dev/sdb2 4980736 9175039 4194304 2G Linux RAID
/dev/sdb5 9453280 5860519007 5851065728 2.7T Linux RAID
/dev/md2 /mnt/sdc ext3 user,auto,rw 0 0
bash: /dev/md2: Permission denied
sudo mount /dev/md2
mount: can't find /dev/md2 in /etc/fstab
sudo mount /dev/sdb5
mount: can't find /dev/sdb5 in /etc/fstab
cat /etc/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>
# / was on /dev/sda1 during installation
UUID=1b3a35fe-723f-4b8c-ba04-ec8f58793bbe / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=116e0864-0d36-4d6a-b166-f0eae723d05b none swap sw 0 0
tmpfs /tmp tmpfs defaults 0 0
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question