Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about disk layout limitations #2023

Closed
jsmeix opened this issue Jan 23, 2019 · 8 comments
Closed

Question about disk layout limitations #2023

jsmeix opened this issue Jan 23, 2019 · 8 comments

Comments

@jsmeix
Copy link
Member

jsmeix commented Jan 23, 2019

I would like to know what the limitations of disk layout complexity are
where the disk layout can be recreated with our current layout code.

For what I mean with "disk layout complexity" have a look at the section
"Changes in the Partitioner UI to Unleash the Storage-ng Power" in
https://lizards.opensuse.org/2018/10/09/yast-sprint-64/

The image therein
image
shows an (intentional artificial) example of a complex disk layout
that can be created in newest SLES15 with the so called "storage-ng"
partitioner and the storage setup subsystem in YaST.

It contains in particular things like

  • MD RAID that consists of full disks and partitions (e.g. /dev/md1 consists of /dev/sdb and /dev/sda3)
  • MD RAID that contains partitions (e.g. /dev/md1 contains /dev/md1p1 and /dev/md1p2)
  • A disk that is directly formatted with no partitions in between (e.g. there is an ext4 filesystem directly on /dev/sdc that is mounted at /data)

That image shows an example of a higher stack of storage objects
where one kind of storage object (partitions) appear on different levels:

  • mountpoint /home is on top of
  • filesystem ext4 that is on top of
  • partition /dev/md1p1 that is on top of
  • MD RAID /dev/md1 that is on top of two parents
  • disk /dev/sdb (that has no parent) and partition /dev/sda3 that is on top of
  • disk /dev/sda (that has no parent)

Simply put, my question is if ReaR's current layout code is meant
to support arbitrary big mesh-like stacks of storage objects
('mesh-like' because a child can have more than one parent
and 'stack' because there is a hierarchical top-down structure)
or if there are currenly "built-in" limitations.

@jsmeix
Copy link
Member Author

jsmeix commented Jan 23, 2019

@schlomo @gdha
I hope you could answer my question.
Perhaps you already experienced generic limitations in our current layout code?

@jsmeix jsmeix added this to the ReaR future milestone Jan 23, 2019
@jhoekx
Copy link
Contributor

jhoekx commented Jan 23, 2019

The layout code was designed to handle the following setup (no picture as nice as yours):

HP RAID controller
  /dev/sda
    /dev/sda1
      /boot
    /dev/sda2
      pv
        lv /
        lv ...
        drbd
          pv
            lv /data1
            lv /data2

This means that it should be able to handle arbitrary setups as long as the names of the things are unique. The dependencies between components are used to create the devices in the right order.

@jsmeix
Copy link
Member Author

jsmeix commented Jan 23, 2019

@jhoekx
thank you very much for your prompt reply.

Now I will try out (as time permits) to set up such kind of
(intentional artificial) examples of complex disk layout
and see how it works with ReaR.

#2086 is a precondition
for efficient testing ReaR with arbitrary disk layouts.

@jsmeix jsmeix unassigned schlomo and gdha Jan 23, 2019
@schlomo
Copy link
Member

schlomo commented Jan 23, 2019

@jsmeix IMHO ReaR should support that complexity as I don't see there any new block device types.

If this "storage-ng" introduces a new storage layer with new block devices then we would have to add support for this.

The best way to help ReaR in this context is to create an automated test case that runs for example in a qemu VM.

@jsmeix
Copy link
Member Author

jsmeix commented Feb 28, 2019

Independent of the disk layout complexity (i.e. the dependencies
of parents and children in the mesh-like stack of storage objects)
there are limitations what kind of storage objects ReaR can deal with.

Currently ReaR does not support

@jsmeix
Copy link
Member Author

jsmeix commented Apr 5, 2019

#2087 (comment)
shows an example where the current layout code failed
to get the right depencencies between storage objects.

@github-actions
Copy link

Stale issue message

@jsmeix
Copy link
Member Author

jsmeix commented Jun 29, 2020

My question was sufficiently answered.

@jsmeix jsmeix closed this as completed Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants