Linear (JBD) to regular single disk filesystem

50 views
Skip to first unread message

Paolo Sanchi

unread,
Aug 14, 2016, 8:13:52 AM8/14/16
to al...@googlegroups.com
Hello!

I have a DNS 323 (rev. C1)
I have 2 disks (1tb, 2tb) and 2 raid devices (volumes):

- 1tb raid1
- 1tb linear (JBD)

I'd like to replace the 1tb disk with a 4tb.  (I've installed Alt-F firmwere to do so)
The point is that the JBD partition has 1gb to the 1tb disk, so when I remove it the volume becomes degraded and it disappears, I don't know why but when I created it, it kept 1gb to the other disk, when I wanted to put it all in one disk.

The perfect solution would be obtain in the end a 2tb raid1 volume, and a 2tb single disk volume, but the first problem I have to solve is to "convert" the JDB volume to a single disk volume
Obviously, keeping the datas

Do you have any advice?

Thank you,
Paolo

ps.
these are the details of my configuration (the raid1 is currently degraded as the /dev/sda2 is removed)


/dev/md0:
        Version : 0.90
  Creation Time : Sun Mar 18 16:54:37 2012
     Raid Level : raid1
     Array Size : 974133312 (929.01 GiB 997.51 GB)
  Used Dev Size : 974133312 (929.01 GiB 997.51 GB)
   Raid Devices : 2
  Total Devices : 1
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Sun Aug 14 15:37:37 2016
          State : clean, degraded
 Active Devices : 1
Working Devices : 1
 Failed Devices : 0
  Spare Devices : 0

           UUID : 43cbad1a:668d1cc3:c0b59d0f:bebc5d61
         Events : 0.2881317

    Number   Major   Minor   RaidDevice State
       0       0        0        0      removed
       1       8       18        1      active sync   /dev/sdb2

/proc/mdstat:
Personalities : [linear] [raid0] [raid1] [raid6] [raid5] [raid4] 
md1 : active linear sdb3[0] sda3[1]
      979916672 blocks 64k rounding
      
md0 : active raid1 sdb2[1]
      974133312 blocks [2/1] [_U]
      
unused devices: 

====================================================================

/dev/md1:
        Version : 0.90
  Creation Time : Sun Apr 29 20:01:53 2012
     Raid Level : linear
     Array Size : 979916672 (934.52 GiB 1003.43 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 1
    Persistence : Superblock is persistent

    Update Time : Sun Apr 29 20:01:53 2012
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

       Rounding : 64K

           UUID : c506f254:f77e3961:e0123f27:3e707be3
         Events : 0.1

    Number   Major   Minor   RaidDevice State
       0       8       19        0      active sync   /dev/sdb3
       1       8        3        1      active sync   /dev/sda3

/proc/mdstat:
Personalities : [linear] [raid0] [raid1] [raid6] [raid5] [raid4] 
md1 : active linear sdb3[0] sda3[1]
      979916672 blocks 64k rounding
      
md0 : active raid1 sdb2[1]
      974133312 blocks [2/1] [_U]
      
unused devices: 

Paolo Sanchi

unread,
Sep 11, 2016, 4:47:23 AM9/11/16
to Alt-F
I solved it by copying the files in the linear volume to the 4gb mounted as external usb with a "standard" filesystem. 

João Cardoso

unread,
Sep 21, 2016, 2:20:24 PM9/21/16
to Alt-F


On Sunday, 14 August 2016 13:13:52 UTC+1, Paolo Sanchi wrote:
Hello!

I have a DNS 323 (rev. C1)
I have 2 disks (1tb, 2tb) and 2 raid devices (volumes):

- 1tb raid1
- 1tb linear (JBD)

I'd like to replace the 1tb disk with a 4tb.  (I've installed Alt-F firmwere to do so)
The point is that the JBD partition has 1gb to the 1tb disk, so when I remove it the volume becomes degraded and it disappears, I don't know why but when I created it, it kept 1gb to the other disk, when I wanted to put it all in one disk.

The perfect solution would be obtain in the end a 2tb raid1 volume, and a 2tb single disk volume, but the first problem I have to solve is to "convert" the JDB volume to a single disk volume

A JBOD can't be converted to anything else, so you have to copy the data to another disk, as you did.
Another option, if free space were available, would be to copy the JBOD data to the RAID1, destroy the JBOD and grow the RAID1.
Reply all
Reply to author
Forward
0 new messages