Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hi,
i like to know if the below conbfiguration is raid 0.
sudo lvdisplay -m|more
--- Logical volume ---
LV Path /dev/y/test
LV Name test
VG Name y
LV UUID oLKKGm-lIOW-6XmQ-P2Z9-1AiK-WB5t-I8VfXZ
LV Write Access read/write
LV Creation host, time test, 2018-04-14 10:25:42 +0000
LV Status available
# open 1
LV Size 118.99 GiB
Current LE 30462
Segments 3
Allocation inherit
Read ahead sectors auto
- currently set to 8192
Block device 253:5
--- Segments ---
Logical extents 0 to 12798:
Type linear
Physical volume /dev/sdb1
Physical extents 0 to 12798
Logical extents 12799 to 25597:
Type linear
Physical volume /dev/sdb2
Physical extents 0 to 12798
Logical extents 25598 to 30461:
Type linear
Physical volume /dev/sdc1
Physical extents 0 to 4863
The correct term is "linear", but "concatenated" is a correct description.
Quote:
the data will be written first in /dev/sdb1,when this is full then will write in /dev/sdb2.
This is not correct. Let's create a scenario:
sdc is free.
Volume 1 has physical extents on sdb.
Volume 2 also has physical extents on sdb.
Volume 1 is extended - new physical extents come from sdc.
Volume 2 is removed.
Volume 1 is extended again - new physical extents may come from sdb.
"linear" means that there is no mirroring, striping or other RAID level. You can also ask for a volume to be contiguous; in this case, I think it will be allocated as you say.
Last edited by berndbausch; 09-24-2019 at 05:25 AM.
Remember that storage is random-access. You can write blocks sequentially, or you can seek to a position and write at that position. Therefore, data is not written from the beginning to the end, as you said.
When dealing with linear logical volumes, each logical extent is mapped to exactly one physical extent. When you write to the logical volume sequentially, you start at the first logical extent, filling the corresponding physical extent. When the extent is full, you continue at the second logical extent, filling the corresponding physical extent. And so on.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.