Koozali.org: home of the SME Server

change the situation - raid1

Offline mgb

  • ****
  • 558
  • +0/-0
change the situation - raid1
« on: May 07, 2019, 12:15:49 PM »
Hi friends.
I have a disk problem.
Installed SME 9.2-
Installed one disc Size 4T-
Everything works fine.
Want to add another disc 4T -
Running at the entrance of admin-
Manage disk redundancy-
The question but I change the situation -
raid1-
, Picture mode
sda adb

from
  SCSI
ATA WDC WD40EZRX-00S (Direct-Access)
ATA WDC WD4005FZBX-0 (Direct-Access)
MOUNTED FILESYSTEMS
Mountpoint   Type   Partition   Usage   Free   Used   Size
        Totals     57.27%   1.35 TiB   2.05 TiB   3.58 TiB
/   ext4   /dev/mapper/main-root
(rw, usrquota, grpquota)     58% (1%)   1.35 TiB   2.05 TiB   3.58 TiB
/boot   ext4   /dev/md0
(rw)

log
 Device Boot   Start       End    #blocks   Id  System
May  7 13:05:55 radiu add_drive_to_raid: /dev/sdb1   *        0+   256000     256000+  fd  Linux raid autodetect
May  7 13:05:55 radiu add_drive_to_raid: /dev/sdb2       256001  3907018583  3906762583   fd  Linux raid autodetect
May  7 13:05:55 radiu add_drive_to_raid: /dev/sdb3            0         -          0    0  Empty
May  7 13:05:55 radiu add_drive_to_raid: /dev/sdb4            0         -          0    0  Empty
May  7 13:05:55 radiu add_drive_to_raid: Successfully wrote the new partition table
May  7 13:05:55 radiu add_drive_to_raid:
May  7 13:05:55 radiu add_drive_to_raid: Re-reading the partition table ...
May  7 13:05:55 radiu kernel: sdb: sdb1 sdb2
May  7 13:05:55 radiu add_drive_to_raid: If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
May  7 13:05:55 radiu add_drive_to_raid: to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1
May  7 13:05:55 radiu add_drive_to_raid: (See fdisk(8).)
« Last Edit: May 14, 2019, 08:08:10 AM by mgb »
Thanks all for helping
Skype yosii2009

Offline ReetP

  • *
  • 3,731
  • +5/-0
Re: change the situation - raid1
« Reply #1 on: May 22, 2019, 11:20:08 AM »
Can you do:

Code: [Select]
fdisk -l
Code: [Select]
cat /proc/mdstat
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline mgb

  • ****
  • 558
  • +0/-0
Re: change the situation - raid1
« Reply #2 on: May 28, 2019, 09:43:17 AM »
# fdisk -l

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


Disk /dev/sdb: 4000.8 GB, 4000787030016 bytes
255 heads, 63 sectors/track, 486401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xb4bbc39f

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1          32      256000+  fd  Linux raid autodetect
Partition 1 does not end on cylinder boundary.
Partition 1 does not start on physical sector boundary.
/dev/sdb2              32      219052  1759278935   fd  Linux raid autodetect
Partition 2 does not start on physical sector boundary.

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


Disk /dev/sda: 4000.8 GB, 4000787030016 bytes
255 heads, 63 sectors/track, 486401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1      267350  2147483647+  ee  GPT
Partition 1 does not start on physical sector boundary.

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


Disk /dev/mapper/main-root: 3998.8 GB, 3998807490560 bytes
255 heads, 63 sectors/track, 486160 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/main-swap: 1577 MB, 1577058304 bytes
255 heads, 63 sectors/track, 191 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000


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

# cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sda1[0]
      255936 blocks super 1.0 [2/1] [U_]

md1 : active raid1 sda2[0]
      3906629440 blocks super 1.1 [2/1] [U_]
      bitmap: 30/30 pages [120KB], 65536KB chunk
Thanks all for helping
Skype yosii2009