I need to access ext3 partitions over an LVM logical volume in a SATA HD connected through USB2 to my iMac with OS X 10.6 .
Is it possible to see LVM volumes from OS X? How?
Disk Utility says that the attached device is unknown and propose to initialize it.
I had the same problem... to address this issue I created a Mac OS X kernel extension which maps simple Linux LVM layouts to logical partitions in Mac OS X:
https://github.com/unsound/IOLVMPartitionScheme
It's available under an open source license (LGPLv2.1). It's not a complete volume manager, obviously, so only single-disk LVM layouts can be expected to work, and only non-snapshot volumes, etc. but should be good enough for most automatically created LVM layouts for the boot drive.
You still have to find a way to mount the ext3 volume though... fuse-ext2 should do the trick.
Edit: More info, including a binary, is available on my blog.
OS X Cannot read an LVM Volume, and there are no 3rd party drivers at the moment (or that I'm aware of) to do so. The easiest solution would be to boot off a linux live cd (Ubuntu etc) on your imac, mount the drive, and copy the data elsewhere.
You could also maybe try installing a Linux virtual machine using one of many 3rd party products (VMware Fusion, Parallels, Virtual Box), and mount the volume in there.
The
diskutil cs list
command is what you're looking for. Try that at the terminal. Then typediskutil cs
for a short list of CoreStorage commands you can use. I wrote more about it on my blog here:.I went with Ryan's solution and it worked. Note that using a virtual machine for data transfer will be slower than booting directly into a live cd. Here's a more in detail how to:
Assuming your disk is on a usb device:
Grab virtualbox with
extension-pack
(usually works better) Example using brew and brew cask:brew cask install virtualbox virtualbox-extension-pack
Download a virtualbox ubuntu image (could be an other distro too btw, i used
Ubuntu Linux 15.04 x86_64
with passwordreverse
)Configure a shared folder from the settings (optional, do this only if you want to copy data from disk to your mac)
Enable USB Controller
fromPorts
settings (I usedUSB 3.0 (xHCI) controller
)Start the vm
devices > Insert guest cd image
and install it, (I did this, but I don't know if it was necessary for usb support).Open a terminal in ubuntu and install
lvm2
Make sure all disks from the usb device are ejected on your mac side
Click the usb icon bottom right (Mine was a seagate, don't judge me) :P
If things went well, you should see your lvm volume(s) in the sidebar of the ubuntu's file browser (Nautilus). It should automount into
/media/ubuntu/<name_of_lvm_volume>
Otherwise, you may have to follow How to mount lvm partition on ubuntu.
Enjoy :)
I used parallels 4.0 running rhel 5.5 and was able to mount the linux lvm using the standard mount commands for lvm (e.g. mount /dev/VolGroup/LogVol00 /mnt/usb ). also, these may be of use to you as well:
pvs
lvdisplay /dev/VolGroup
vgchange -ay
I needed to mark the volume as available as lvdisplay was showing it as NOT available.
Yes, they can. see this article… Mac OS X Lion Adds CoreStorage, a Volume Manager (Finally!)