-
Notifications
You must be signed in to change notification settings - Fork 16
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
is it possible to access a dynamic disk on the same physical disk as the root partition? #22
Comments
i believe that it's possible to use
|
it's indeed possible when using #!/bin/sh
if [ -e /dev/mapper/ldm ]; then
umount /dev/mapper/ldm
dmsetup remove ldm
else
# <logical_start_sector> <num_sectors> <target_type> <target_args>
# linear <destination_device> <start_sector>
dmsetup create ldm <<- EOF
0 1367463311 linear /dev/sda2 390705211
1367463311 390703104 linear /dev/sda2 59
EOF
mount -o ro,noauto,dmask=022,fmask=133,uid=helix,gid=helix /dev/mapper/ldm /mnt
fi |
I see exactly the same behavior in my case (ldm mirror partition next to btrfs volume).
I'm trying to set this up with a 2-device mirrored volume, but am not really sure how to translate the strace output of ldmtool to a script like yours. Any pointers on how to set this up in my case would be very much appreciated! Here is the strace from a live-system for my case:
|
@mwheiss, i'm not sure if a mirrored volume has to be handled in a special way, but i've used the output of
in a mapping table
or you can just compare the output above with my script to see where all these numbers are supposed to go. also, the source code of the |
i have a dynamic disk next to my root partition and
ldmtool
fails to create a device-mapper device for it because the root partition is obviously mounted and device-mapper complains that the device is busy. i've tried the same thing from a livecd and everything works fine.The text was updated successfully, but these errors were encountered: