[opensuse] mounting a Solaris UFS disk on a SuSE 11.1 system
I am in the process of converting my home data server from Solaris to SuSE 11.1. I have asked on the OT list for some opinions of favorite filesystems and have already got some answers. The one really important thing that I still don't know how to do is mount the Solaris UFS data disk on the SuSE system in order to copy the data to the SuSE system. I have done a little Google searching and have found a few ideas but each is different and am not sure which (if any) is right. Does anyone here have experience with mounting a Solaris UFS disk on a Linux system? If so, what is the correct mount string to do it? Damon Register -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Damon Register wrote:
I am in the process of converting my home data server from Solaris to SuSE 11.1. I have asked on the OT list for some opinions of favorite filesystems and have already got some answers. The one really important thing that I still don't know how to do is mount the Solaris UFS data disk on the SuSE system in order to copy the data to the SuSE system. I have done a little Google searching and have found a few ideas but each is different and am not sure which (if any) is right. Does anyone here have experience with mounting a Solaris UFS disk on a Linux system? If so, what is the correct mount string to do it?
Damon Register Why not make it an NFS share and copy across the network? I believe Solaris supports NFS. ;-)
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Why not make it an NFS share and copy across the network? I believe Solaris supports NFS. ;-) I have thought about that and with gigabit net cards it might not be so
James Knott wrote: painful but right now I don't have another Solaris computer to temporarily host the drive. If I don't find an easy UFS mount method for SuSE, I may resort to the NFS method. Damon Register -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Damon Register wrote:
Why not make it an NFS share and copy across the network? I believe Solaris supports NFS. ;-) I have thought about that and with gigabit net cards it might not be so
James Knott wrote: painful but right now I don't have another Solaris computer to temporarily host the drive. If I don't find an easy UFS mount method for SuSE, I may resort to the NFS method.
Damon Register
I don't understand the problem, unless you haven't actually tried it and simply don't realise there is no problem? These days linux most distros, including opensuse 11.1 supports both the ufs filesystem and more importantly the disk partitioning scheme out of the box. You _might_ need to manually modprobe one or more kernel modules, though I think udev loads everything necessary automagically when it first detects the disk, but even if not, at the very least I know all necessary modules are there. The only other thing even slightly like a problem or a difficulty is you may have to trial & error a few times to pick the right mount option to choose the right flavor of "UFS" between several sun and bsd variants. Last time I did this, it was recent enough that the receiving machine was opensuse 11.1 x86_64, the supplying machine was solaris-9-sparc. On the solaris side the filesystem was just the default filesystem, as in mkfs with no options. Although I had to google a little and consult man a little and trial & error a little, all in all it was still straightforward and uneventful enough that I didn't bother remembering or recording the exact details once I worked it out, meaning it would be simpler to just look it up again on-demand and it required no non-stock stuff like downloading special versions of mount or compiling a new kernel with different config options enabled, etc. So in other words, in the words of a terrific developer I know who's absolutely perfect answer to many questions is: "What happened when you tried it?" If it's the same physical server which you don't want to risk until after you know for sure how it all works, then just boot a live-cd and try it that way. If the sun box is new enough to have a usb 2.0 port then another way to go is to connect a generic usb hd, mkfs the whole-drive device with no options, mount, rsync, umount, connect to linux, mount, rsync. That may or may not be faster than rsync over gigabit, but it's at least safe and leaves you with a portable backup copy if you want it. Get nice easy pkgadd packages for rsync and any required support libs for your version of solaris from sunfreeware. ie: http://www.sunfreeware.com/programlistsparc9.html#rsync I avoid the pkg-get script, I just download, gunzip and pkgadd the packages manually, but that's just me. I wouldn't use nfs but that's also just me. If you had a usb hd you could also just write a raw tar or cpio directly to the whole drive device and don't even worry about any kind of filesystem if there was actually a filesystem problem, but since linux has no problem reading a solaris ufs filesystem, a filesystem IS a lot more handy to deal with than a big cpio disk. Just pointing out you have other pretty easy options no matter what so you don't have to worry about not being able to do your move. -- bkw -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Brian K. White wrote:
I don't understand the problem, unless you haven't actually tried it and simply don't realise there is no problem? While I may have missed the kernel doc that Mr. Chan was nice enough to point me to, I _did_ try it and there is a problem.
These days linux most distros, including opensuse 11.1 supports both the ufs filesystem and more importantly the disk partitioning scheme out of the box. You _might_ need to manually modprobe one or more kernel Even Solaris slices?
may have to trial & error a few times to pick the right mount option to choose the right flavor of "UFS" between several sun and bsd variants. Perhaps but I started with ufstype=sunx86 because that is what I have.
was opensuse 11.1 x86_64, the supplying machine was solaris-9-sparc. On I am less familiar with the sparc disks but I seem to remember that there are differences between disks on sparc and on x86.
So in other words, in the words of a terrific developer I know who's absolutely perfect answer to many questions is: "What happened when you tried it?" mount -t ufs -o ufstype=sunx86 /dev/sdb6 /mnt/data
gives an error something like disk not ready or /mnt/data in use
try it that way. If the sun box is new enough to have a usb 2.0 port It is an Ultra20 which has USB2 and firewire
Get nice easy pkgadd packages for rsync and any required support libs for your version of solaris from sunfreeware. Been there and have used it to get rsync
filesystem if there was actually a filesystem problem, but since linux has no problem reading a solaris ufs filesystem, a filesystem IS a lot Perhaps in your world there is no problem but in mine there is. I have tried the Yast partition tool as well as manual mounting but with no luck. Maybe it is supposed to be straightforward but I might be missing some important element for that to work.
Damon Register -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Brian K. White wrote:
The only other thing even slightly like a problem or a difficulty is you may have to trial & error a few times to pick the right mount option to choose the right flavor of "UFS" between several sun and bsd variants. I forgot to ask in my last post what is the relation between the slices on Solaris and the linux partitions? If my data was /dev/dsk/c2d0s6 under Solaris, what is the device name with linux? /dev/sdb6?
Damon Register -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, Jul 7, 2009 at 7:41 AM, Damon Register
Brian K. White wrote:
The only other thing even slightly like a problem or a difficulty is you may have to trial & error a few times to pick the right mount option to choose the right flavor of "UFS" between several sun and bsd variants.
I forgot to ask in my last post what is the relation between the slices on Solaris and the linux partitions? If my data was /dev/dsk/c2d0s6 under Solaris, what is the device name with linux? /dev/sdb6?
Damon Register
Maybe. The only real way to know is boot a live cd and poke around until you find it. The issue is the c2d0s6 means the 6th (or 7th) partition on the first disk on the 2nd (or 3rd) controller. The /dev/hdx nomenclature sort of worked like that and a mapping might have been possible to create. /dev/sdx simply assigns device names as drives are encountered during the probe process. No guarantees at all about the names assigned to drives. Greg -- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer Preservation and Forensic processing of Exchange Repositories White Paper - http://www.norcrossgroup.com/forms/whitepapers/tng_whitepaper_fpe.html The Norcross Group The Intersection of Evidence & Technology http://www.norcrossgroup.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Damon Register wrote:
Brian K. White wrote:
The only other thing even slightly like a problem or a difficulty is you may have to trial & error a few times to pick the right mount option to choose the right flavor of "UFS" between several sun and bsd variants. I forgot to ask in my last post what is the relation between the slices on Solaris and the linux partitions? If my data was /dev/dsk/c2d0s6 under Solaris, what is the device name with linux? /dev/sdb6?
Damon Register
http://fixunix.com/solaris/142495-how-mount-solaris-10-x86-partition-linux.h... -- bkw -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Brian K. White wrote:
http://fixunix.com/solaris/142495-how-mount-solaris-10-x86-partition-linux.h... Thanks for the post. I tried more Google last night and finally came up with two interesting sites.
http://wikis.sun.com/display/BigAdmin/How+to+Access+a+Solaris+Partition+From... http://www.faqs.org/docs/Linux-mini/Linux+Solaris.html They both had something similar to the thread you provided. I have checked my kernel and it (make menuconfig) shows that UFS and the Solaris-x86 partition support is enabled. Using the dmesg trick, I found that the slice I needed is /dev/sdb6. Still the mount command mount -t UFS -oufstype=sunx86 /dev/sdb6 /mnt just gives the error message "/dev/sdb6 already mounted or /mnt busy". Damon Register -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Damon Register wrote:
Still the mount command
mount -t UFS -oufstype=sunx86 /dev/sdb6 /mnt
just gives the error message "/dev/sdb6 already mounted or /mnt busy".
The obvious question is whether either of those conditions is true? What is listed by cat /proc/mounts? what is listed by lsof /mnt? What directory were you in when you issued the mount :) Cheers, Dave -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Dave Howorth wrote:
Damon Register wrote:
Still the mount command
mount -t UFS -oufstype=sunx86 /dev/sdb6 /mnt
just gives the error message "/dev/sdb6 already mounted or /mnt busy".
The obvious question is whether either of those conditions is true? That certainly came to my mind but I didn't know the right way to investigate that.
What is listed by cat /proc/mounts? what is listed by lsof /mnt? What directory were you in when you issued the mount :) Thanks for pointing me to these.
cat /proc/mounts did not list anything with sdb lsof /mnt returned nothing A losing battle? I am already working on setting up a solaris PC so I can just use the NFS method but it might be nice to figure out why this doesn't work. Thanks for your help. Damon Register -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Damon Register wrote:
A losing battle? I am already working on setting up a solaris PC so I can just use the NFS method but it might be nice to figure out why this doesn't work. Thanks for your help. I guess it was a losing battle for me. I never could get that drive to mount on the SuSE system but I was able to setup Solaris on another PC so I could mount it there and use NFS. Getting the SuSE PC to connect was easy after I found a type I made in the remote share name. The data is now copied onto the new SuSE disk. I forgot to account for the user and group on the SuSE side so now I need to figure out how to change group and owner of an entire tree (folders and files). I am sure the man page will provide.
Thanks for everyones response. Damon Register -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Damon Register pecked at the keyboard and wrote:
Damon Register wrote:
A losing battle? I am already working on setting up a solaris PC so I can just use the NFS method but it might be nice to figure out why this doesn't work. Thanks for your help. I guess it was a losing battle for me. I never could get that drive to mount on the SuSE system but I was able to setup Solaris on another PC so I could mount it there and use NFS. Getting the SuSE PC to connect was easy after I found a type I made in the remote share name. The data is now copied onto the new SuSE disk. I forgot to account for the user and group on the SuSE side so now I need to figure out how to change group and owner of an entire tree (folders and files). I am sure the man page will provide.
Thanks for everyones response.
Damon Register
chown -R name:group /path_to_tree -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (6)
-
Brian K. White
-
Damon Register
-
Dave Howorth
-
Greg Freemyer
-
James Knott
-
Ken Schneider - openSUSE