Skip to content

Instantly share code, notes, and snippets.

@clockfort
Created June 22, 2012 17:17
Show Gist options
  • Save clockfort/2974057 to your computer and use it in GitHub Desktop.
Save clockfort/2974057 to your computer and use it in GitHub Desktop.
[root@jolt clockfort]# smartctl --all /dev/sdg | grep "Device Model"
Device Model: ST3000DM001-9YN166
[root@jolt clockfort]# smartctl --all /dev/sda | grep "Device Model"
Device Model: ST3000DM001-9YN166
[root@jolt clockfort]# smartctl --all /dev/sda | grep Capacity
User Capacity: 3,000,592,982,016 bytes
[root@jolt clockfort]# smartctl --all /dev/sdg | grep Capacity
User Capacity: 3,000,592,982,016 bytes
[root@jolt clockfort]# cat /proc/mdstat
Personalities : [raid1] [raid6] [raid5] [raid4]
md127 : active raid1 sdb1[0] sdc1[1]
524276 blocks super 1.0 [2/2] [UU]
md3 : active raid6 sdg[5] sde[1] sdf[0] sdd[6] sdh[7]
8790795264 blocks super 1.2 level 6, 512k chunk, algorithm 2 [5/5] [UUUUU]
unused devices: <none>
[root@jolt clockfort]# mdadm --add /dev/md3 /dev/sda
mdadm: /dev/sda not large enough to join array
Looks like the problem is related to how a different controller works with the drive...
[u'/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/host0/port-0:0/end_device-0:0/target0:0:0/0:0:0:0/block/sda',
u'/sys/devices/pci0000:00/0000:00:1c.4/0000:04:00.0/ata7/host7/target7:0:0/7:0:0:0/block/sdg',
u'/sys/devices/pci0000:00/0000:00:1c.4/0000:04:00.0/ata8/host8/target8:0:0/8:0:0:0/block/sdh',
u'/sys/devices/pci0000:00/0000:00:1f.2/ata1/host1/target1:0:0/1:0:0:0/block/sdb',
u'/sys/devices/pci0000:00/0000:00:1f.2/ata2/host2/target2:0:0/2:0:0:0/block/sdc',
u'/sys/devices/pci0000:00/0000:00:1f.2/ata3/host3/target3:0:0/3:0:0:0/block/sr0',
u'/sys/devices/pci0000:00/0000:00:1f.2/ata4/host4/target4:0:0/4:0:0:0/block/sdd',
u'/sys/devices/pci0000:00/0000:00:1f.2/ata5/host5/target5:0:0/5:0:0:0/block/sde',
u'/sys/devices/pci0000:00/0000:00:1f.2/ata6/host6/target6:0:0/6:0:0:0/block/sdf']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment