ďťż
 
 
   Zmieniające się dyski - raid
 
 

Tematy

 
    
 

 

 

 

Zmieniające się dyski - raid





Redhead - 30-06-2009 10:26
Witam.
Problem ogólnie znany, tylko że u mnie jest trochę inna sytuacja.
Chodzi o ze po restarcie (nie po każdym) przykładowy dysk zamiast być /dev/sdd1 jest /dev/sdc1.
Myślałem że można by użyć UUID w /etc/fstab, ale...
Ta sytuacja chyba się nie sprawdzi, bo dyski są w macierzy
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

  Device Boot      Start        End      Blocks  Id  System
/dev/sdb1              1      121602  976762583+  ee  GPT

WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

  Device Boot      Start        End      Blocks  Id  System
/dev/sdc1              1      121602  976762583+  ee  GPT

WARNING: GPT (GUID Partition Table) detected on '/dev/sdd'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sdd: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

  Device Boot      Start        End      Blocks  Id  System
/dev/sdd1              1      121602  976762583+  ee  GPT

WARNING: GPT (GUID Partition Table) detected on '/dev/sde'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sde: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

  Device Boot      Start        End      Blocks  Id  System
/dev/sde1              1      121602  976762583+  ee  GPT

WARNING: GPT (GUID Partition Table) detected on '/dev/sdf'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sdf: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

  Device Boot      Start        End      Blocks  Id  System
/dev/sdf1              1      121602  976762583+  ee  GPT i punkty do montowania są
Disk /dev/dm-0: 1099.5 GB, 1099511627776 bytes
255 heads, 63 sectors/track, 133674 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 1825.4 GB, 1825361100800 bytes
255 heads, 63 sectors/track, 221920 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-1 doesn't contain a valid partition table

Disk /dev/dm-2: 322.1 GB, 322122547200 bytes
255 heads, 63 sectors/track, 39162 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-2 doesn't contain a valid partition table

Disk /dev/dm-3: 429.5 GB, 429496729600 bytes
255 heads, 63 sectors/track, 52216 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-3 doesn't contain a valid partition table

Disk /dev/dm-4: 324.3 GB, 324324556800 bytes
255 heads, 63 sectors/track, 39430 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-4 doesn't contain a valid partition table Jak zatem to łatwo zrobić? Bo każdym restarcie tak jakby macierz wymagała naprawy, chociaż wszystko będzie poprawnie, jak się zrestartuje komputer.
Personalities : [raid6] [raid5] [raid4]
md0 : active raid5 sde1[5] sdb1[0] sdf1[4] sdd1[2] sdc1[1]
      3907049728 blocks level 5, 64k chunk, algorithm 2 [5/4] [UUU_U]
      [====>................]  recovery = 24.6% (241146720/976762432) finish=177.5min speed=69063K/sec

unused devices: <none> Dodam że w /etc/mdadm/mdadm.conf mam tylko wpis: DEVICE partitions
#### /dev/md0 >> raid5
#DEVICE /dev/sd[bcdfg]1

#ARRAY /dev/md0 devices=/dev/sdb1,/dev/sdc1,/dev/sdd1,/dev/sdf1,/dev/sdg1 [Dodano: 2009-06-30, 11:32]
Czy nie można by dodać może UUID w /etc/mdadm/mdadm.conf?
Tylko że sytuacja z UUID wygląda trochę śmiesznie: # blkid /dev/sd[bcdef]1
/dev/sdb1: UUID="b01be760-596e-2208-6b66-30c2a0eb0351" TYPE="mdraid"
/dev/sdc1: UUID="b01be760-596e-2208-6b66-30c2a0eb0351" TYPE="mdraid"
/dev/sdd1: UUID="b01be760-596e-2208-6b66-30c2a0eb0351" TYPE="mdraid"
/dev/sde1: UUID="b01be760-596e-2208-6b66-30c2a0eb0351" TYPE="mdraid"
/dev/sdf1: UUID="b01be760-596e-2208-6b66-30c2a0eb0351" TYPE="mdraid" A to wygląda bez sensu trochę, bo linia ARRAY miałaby w sobie 5 takich samych UUID. #DEVICE /dev/sd[bcdfg]1
DEVICE partitions
ARRAY /dev/md0 num-devices=5 UUID=b01be760-596e-2208-6b66-30c2a0eb0351, b01be760-596e-2208-6b66-30c2a0eb0351, b01be760-596e-2208-6b66-30c2a0eb0351, b01be760-596e-2208-6b66-30c2a0eb0351, b01be760-596e-2208-6b66-30c2a0eb0351 Pozdrawiam.



fnmirk - 04-07-2009 02:15
Może tak:
http://ubuntuforums.org/showthread.php?t=410136
  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • minister.pev.pl

  •  

     


     

     
    Copyright 2003. MĂłj serwis