centosへの2番目のSSDドライブの取り付け - 未使用のドライブが何であるかを確認する方法は?

centosへの2番目のSSDドライブの取り付け - 未使用のドライブが何であるかを確認する方法は?

2番目のSSDドライブを/ home2にマウントする必要があります。 /home2フォルダを作成しました。これで、未使用のドライブが何であるかをどうやって知ることができますか?これは/dev/sdaかsdbですか?

マウント解除されたドライブが何であるかを確認するには、正確に何を見つける必要がありますか?

[/]# cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 sdb2[1] sda2[0]
      524224 blocks super 1.0 [2/2] [UU]

md0 : active raid1 sdb1[1] sda1[0]
      16777088 blocks super 1.0 [2/2] [UU]

md2 : active raid1 sdb3[1] sda3[0]
      217125312 blocks super 1.0 [2/2] [UU]

unused devices: <none>

df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/md2        204G   84G  111G  44% /
tmpfs            16G     0   16G   0% /dev/shm
/dev/md1        496M   53M  419M  12% /boot
/usr/tmpDSK     1.9G   94M  1.7G   6% /tmp

root@kas [~]# fdisk -l | grep '^Disk'
Disk /dev/sdb: 240.1 GB, 240057409536 bytes
Disk identifier: 0x0007b22f
Disk /dev/sda: 240.1 GB, 240057409536 bytes
Disk identifier: 0x000c0cf1
Disk /dev/md2: 222.3 GB, 222336319488 bytes
Disk identifier: 0x00000000
Disk /dev/md0: 17.2 GB, 17179738112 bytes
Disk identifier: 0x00000000
Disk /dev/md1: 536 MB, 536805376 bytes
Disk identifier: 0x00000000
root@kas [~]# fdisk -l

Disk /dev/sdb: 240.1 GB, 240057409536 bytes
255 heads, 63 sectors/track, 29185 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0007b22f

Device Boot Start End Blocks Id System
/dev/sdb1 1 2089 16777216+ fd Linux raid autodetect
/dev/sdb2 2089 2155 524288+ fd Linux raid autodetect
/dev/sdb3 2155 29186 217125464+ fd Linux raid autodetect

Disk /dev/sda: 240.1 GB, 240057409536 bytes
255 heads, 63 sectors/track, 29185 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000c0cf1

Device Boot Start End Blocks Id System
/dev/sda1 1 2089 16777216+ fd Linux raid autodetect
/dev/sda2 2089 2155 524288+ fd Linux raid autodetect
/dev/sda3 2155 29186 217125464+ fd Linux raid autodetect

Disk /dev/md2: 222.3 GB, 222336319488 bytes
2 heads, 4 sectors/track, 54281328 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/md0: 17.2 GB, 17179738112 bytes
2 heads, 4 sectors/track, 4194272 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/md1: 536 MB, 536805376 bytes
2 heads, 4 sectors/track, 131056 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

ベストアンサー1

両方のSSDは3つのRAID-1パーティション専用です。それらのどれも空きスペースがありません。

編集する:はい、そう言いました。出力にはインストールdf済みとしてマークされます/dev/md[12]/dev/md0スワップであると推測されます。/cat /proc/swapsこれを確認します)。その後、これはおよびで構成されたRAID-1であり、cat /proc/mdstatここでN = 0,1,2であることを知らせます。/dev/mdN/dev/sdaN+1/dev/sdbN+1

出力は、fdisk各ディスクが3つのRAID自動検出パーティションで完全に満たされていることを示して、これを確認します。

おすすめ記事