Migrating Data Partition from Linux to OpenSolaris

Man of Honour
Soldato
Joined
2 Aug 2005
Posts
8,721
Location
Cleveland, Ohio, USA
ITT yet another thrilling episode of my many idiotic questions regarding my maddeningly-slow migration to an OpenSolaris server.

Background: I have a Linux media server with a 320 GB HDD containing a 286 GB XFS partition containing movies, music, TV shows, and the like. I want to move the server to OpenSolaris and add 4.5 TB worth of disks in a zraid. It would be easy to do this if Solaris could read XFS:

Format 320 GB disk with Solaris boot partition -> Install OpenSolaris -> get system running -> add new disks -> make zraid -> copy existing data to new pool

However, since it can't read XFS I'm left with a bit of a problem. I can, I suppose, do the following:

Install one big new disk into the machine when it's running Linux -> format it to a filesystem that both Linux and OpenSolaris can read -> copy the data over -> nuke and partition the original disk -> install OpenSolaris -> copy data back to original disk with new partition -> install new disks -> make zraid -> copy existing data to new pool

The problem here is that I don't know which file systems, if any, can be shared among them both without pulling out all my hair and sacrificing a fatted calf at dawn on the vernal equinox (which I've already missed for this year!). Fat32 is no good since some files are too large for it. I suppose I can use tar and split to lump the binary data into appropriately-sized chunks then untar and cat 'em back together, but that's a lot of damn work and I'm a bit nervous about the GNU and Sun utilities working in different ways and borking all my data.

Running ls /usr/lib/fs
returns these supported FSes
autofs ctfs hsfs mntfs objfs proc udfs xmemfs cachefs fd lofs nfs pcfs tmpfs ufs

None look particularly promising and using another machine to pass the data over cifs or NFS is not an option.

Anybody have any clever ideas?
 
How about installing Virtualbox on OpenSolaris?
Install a suitable Linux variant, and mount both drives in it & copy the data across :)

-Leezer-
 
Can a VM like VirtualBox access a filesystem on a real disk that its host OS can't read? If it could I could then pass the data over the "network" using NFS or Samba/cifs. That'd be nifty.

Interesting idea! I'll check it out.

That sort of brings me to another OpenSolaris niggle. The installer doesn't seem to see my existing partitions. The documentation suggests that I prepare by first using fdisk, gparted, or some other 3rd party disk tool to get everything in order before starting. I guess I'll use a Linux live CD to nuke the current Linux / partition and plop Solaris on that. Seems like their installer is making it more complicated than it needs to be. It really really wants me to surrender the whole disk to them.
 
I don't think it can read ext3. It can't seem to mount my current ext3 root partition when I'm using the OpenSolaris LiveCD for testing. Maybe I'm doing it wrong. Everything I know about Solaris could be written on the back of a penny with a crayon.
 
Wait, OpenSolaris cant read XFS!!!! :(

Learn something new every day.

Anyway, ext3. Not too helpful but borrow your self an external hard driver for a day or 2. ext3 it up. Copy everything, create a new destination (opensolaris compatable) and copy back.

It'll take forever, but its the only real way you can do it without maybe loosing everything (i didnt think vurtual box can see hard drives out side the box you give it, then again iv never tried and could be massivly wrong). And yeah i know iv sort of descibed your OP....

Other options, keep the disc separate, set up Open solaris like normal (with the space for it to all go). Then boot a linux live cd and copy it all over to your new areas (though thats still not clever).

Write a driver for OpenSolaris? Sorry clutching at straws....

Oh and sorry to be lame but http://en.wikipedia.org/wiki/Comparison_of_file_systems the bottom table shows OS compatability which could be helpful in this situation :)
 
Last edited:
I don't think it can read ext3. It can't seem to mount my current ext3 root partition when I'm using the OpenSolaris LiveCD for testing. Maybe I'm doing it wrong. Everything I know about Solaris could be written on the back of a penny with a crayon.

No it would seem your quite right: http://opensolaris.org/os/project/ext3/ - support is 'being developed'.

My knowledge of OS10 is on the other side of your coin, but written in a big guage permanent marker :o

Sorry for a slight derail, but what are the benefits of zraid? Am I being nieve in thinking that it's just software raided ZFS partitions, or is there something more to it? And as a slight consequence, why do you want to move away from Linux to OS10? Though I had a quick play with it in a VM and it's quite nice, certainly moved on a lot since I used Solaris in Uni :)
 
Thanks so far, guys. :)

I could try to piece together external disks and have the space for it, but it would still leave me with the fat32 problem. NTFS is right out.

Maybe I could test out FUSE's ZFS support:
Boot OpenSolaris LiveCD, create ZFS partition on a big new disk (thought it doesn't really use partitions in the classical sense) -> Boot back into Linux -> Copy data to new ZFS disk -> nuke original disk _. install -> copy data back again

Sorry for a slight derail, but what are the benefits of zraid? Am I being nieve in thinking that it's just software raided ZFS partitions, or is there something more to it? And as a slight consequence, why do you want to move away from Linux to OS10? Though I had a quick play with it in a VM and it's quite nice, certainly moved on a lot since I used Solaris in Uni :)
ZFS does all sorts of awesome stuff, particularly with regards to snapshotting and data integrity. With a zraid I get RAID 5-type data integrity but with better checksumming for protection against "silent" corruption from cosmic rays, bad memory, and crappy-consumer-disk problems. It also gives greater performance and so-easy-BTI-can-do-it administration. Search the YouTubes and the Googles for some really awesome videos from Sun extolling the virtues of ZFS. It's definitely the platform I want to use to store all this data. Thought it's not vital, I really want to keep it around without having to spend double on disks to get offsite backups. I'm cheap and lazy.

We've had a few other discussions here about ZFS. Search the forum here for some of those threads. :)

I only see two big downsides to it. First you need to run it on some wonky OS that is as foreign to me as Linux is to a lifelong Windows user. ;) Second it is unable to easily expand to incorporate more disks into a zraid pool without having to destroy all the data on the current pool and copy it back. If only we could have something like the file system Drobo uses, but without having to pay $800 and being limited to 4 disks.
 
Last edited:
ZFS does all sorts of awesome stuff, particularly with regards to snapshotting and data integrity. With a zraid I get RAID 5-type data integrity but with better checksumming for protection against "silent" corruption from cosmic rays, bad memory, and crappy-consumer-disk problems. It also gives greater performance and so-easy-BTI-can-do-it administration. Search the YouTubes and the Googles for some really awesome videos from Sun extolling the virtues of ZFS. It's definitely the platform I want to use to store all this data. Thought it's not vital, I really want to keep it around without having to spend double on disks to get offsite backups. I'm cheap and lazy.

We've had a few other discussions here about ZFS. Search the forum here for some of those threads. :)

I only see two big downsides to it. First you need to run it on some wonky OS that is as foreign to me as Linux is to a lifelong Windows user. ;) Second it is unable to easily expand to incorporate more disks into a zraid pool without having to destroy all the data on the current pool and copy it back. If only we could have something like the file system Drobo uses, but without having to pay $800 and being limited to 4 disks.

Thanks for the reply. Yep, I seem to remember participating in one of your earlier ZFS threads, albeit only fleetingly. ZFS, as you've quite succinctly summarised, seems to be worth the hassle :)

Coincidentally, I was actually going to make a thread about the system Drobo uses (after discovering it only the other day courtesy of the Mac forum) - how does it actually do it?

Some of the claims it makes are outlandish, and if true, amazing! It made the cynic in me raise a brow :p

/goes off to YouTube
 
Yeah, I was really hoping that IBM would buy Sun and GPL ZFS.

Heck, I'm not exactly sure why the CDDL-licensed code has not been ported to work on a Linux kernel. I know that it can't be distributed with the kernel, but it could certainly be added by the user, just as proprietary kernel module video drivers are added.

Now, rumor has it, Microsoft is interested in buying Sun. That would, IMO, end up with MS shelving most of Sun's tech to remove it as competition. That wouldn't be good for anybody.
 
Now, rumor has it, Microsoft is interested in buying Sun.

Really?

I wonder what strategy they would take. Perhaps they'd like to use Solaris/OpenSolaris as a vehicle to keep more people away from Linux. They'd be able to groom their existing user-base; "You have Windows from Microsoft - now have a Unix from Microsoft" (with a nice discount and some uber-lock-in).

However, this could be a good thing. The large server and Unix vendor's (IBM + HP) may then resort to really pushing Linux...
 
Can a VM like VirtualBox access a filesystem on a real disk that its host OS can't read? If it could I could then pass the data over the "network" using NFS or Samba/cifs. That'd be nifty.

Interesting idea! I'll check it out.

Definitly done it with VMWare in the past. Unfortunately they don't have a Solaris build though.
It's also possible with VirtualBox, although I haven't tried it. This thread has some details, you really need to play/ Google though.
http://forums.virtualbox.org/viewtopic.php?t=333&highlight=createrawvmdk

-Leezer-
 
I might be mis-understanding the request but couldn't you just add another disk to your VM which is simply a physical partition (or logical volume, whatever) on the host ?
 
Thanks so far, guys. :)

I could try to piece together external disks and have the space for it, but it would still leave me with the fat32 problem. NTFS is right out.

Not sure this is helpful - but if your saying there that OpenSolaris can't read NTFS and FAT32 the you should get over to Blastwave and download NTFS-3g

EDIT:Sorry for the random snippet - only flicked over thread
 
Not sure this is helpful - but if your saying there that OpenSolaris can't read NTFS and FAT32 the you should get over to Blastwave and download NTFS-3g

EDIT:Sorry for the random snippet - only flicked over thread
Nah, it can read fat32, but it makes it more of a hassle since the FS can't handle large files. I've decided just to roll everything up in a big tarball split into 1 GiB chunks to overcome that.
 
Back
Top Bottom