Emily Grettel
2010-Aug-04 02:55 UTC
[zfs-discuss] [install-discuss] Installing on alternate hardware
Wow! Thanks for the information James, after consulting with my manager we''re going to install the text-install version. I''m going to try that as we''re installing it on a new disk. Just curious, if I do an export of about 3 zvols and reimport them, the mounts will be there but will I have to reconfigure CIFS, permissions and users etc? Sorry, I''m but a n00b. Thanks, Em> Date: Tue, 3 Aug 2010 22:48:36 +1000 > From: jmcp at opensolaris.org > To: emilygrettelisnow at hotmail.com > CC: carlsonj at workingcode.com; install-discuss at opensolaris.org > Subject: Re: [install-discuss] Installing on alternate hardware > > On 3/08/10 10:20 PM, Emily Grettel wrote: > > Thanks for the reply James, > > > > > If it were my system, I''d export the ZFS volumes containing my data, > > > reinstall on the new motherboard, and then reimport ZFS. > > > > I was thinking that too, but unfortunately I''ve created quite a few > > zones and there are quite a few users on the system. > > > > Redoing the entire server will take a week :( > > > > Thanks though, I shall try driver-discuss too! > > The essential problem is that your new motherboard will have > different paths to each device. > > As James mentioned, you could change the first line of > /etc/path_to_inst, or..... > > here''s the _unsupported_ totally ugly hack way of getting a > new motherboard up and running. > > Before you start, BE VERY GRATEFUL you''re running ZFS. (I''ll > explain why a little later). > > > > * touch /reconfigure > * poweroff > * replace motherboard > > * turn system on > * do whatever bios futzing is needed in order to find your > primary boot device > > * at the grub boot menu, select your desired BE, navigate to > the kernel$ line and hit ''e'' > > * go to the end of this line, and hit ''a'' (to add), then add > " -arvs" (ie, a space, then -arvs) and hit escape > > * hit ''b'' to boot > > * Unless you''re prompted for where /etc/path_to_inst is, > hit enter each time you''re prompted during the boot process. > > * When you''re asked for a username for single-user mode, type > root and enter your root password. > > * Run these operations to test: > > format < /dev/null > zpool status -v > zpool import -a > zfs list > dladm show-link > dladm show-ether > > > > The format test will print out the device paths for the > devices which the kernel has probed. Note these for later. > > The zpool status -xv test will show you the paths to each > vdev in your pools. > > The zpool import -a test will attempt to import as many > pools as can be found. This should work seamlessly, and > you should then see all your datasets in the zfs list test. > > The dladm tests will show you what NICs you have installed. > Note the instance numbers - they almost certainly will have > changed from what you have configured with /etc/hostname.$nic$inst. > Change the /etc/hostname.... file to reflect the new instance > number(s). > > Also, if you are running a graphics head on this system, and > you''ve got a customised /etc/X11/xorg.conf, make sure you > check the BusID settings to make sure that they''re correct. > Use the /usr/bin/scanpci utility for this. > > > Now, why should be grateful for ZFS? Because ZFS uses the > cXtYdZ number as a fallback for detecting and opening > devices. What it uses as a primary method is the device id, > or devid. This is closely related to the GUID aka Globally > Unique IDentifier. If you want more info about devids and > guids, you can review a presentation I wrote about them a > while back: > > http://www.slideshare.net/JamesCMcPherson/what-is-a-guid > > > James C. McPherson > -- > Oracle > http://www.jmcp.homeunix.com/blog-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100804/309e81f5/attachment.html>
James C. McPherson
2010-Aug-04 03:00 UTC
[zfs-discuss] [install-discuss] Installing on alternate hardware
On 4/08/10 12:55 PM, Emily Grettel wrote:> Wow! Thanks for the information James, after consulting with my manager > we''re going to install the text-install version.Better to stick with the supportable methods, imho :-)> I''m going to try that as we''re installing it on a new disk. Just > curious, if I do an export of about 3 zvols and reimport them, the > mounts will be there but will I have to reconfigure CIFS, permissions > and users etc?I would not expect so. You export zpools, not the the datasets within them. ZVols are datasets within pools, and whatever properties you have configured for them within the pool should stick around over an export/import operation. If they don''t, I would be very, very surprised. [note: everybody was a noob at some point] James C. McPherson -- Oracle http://www.jmcp.homeunix.com/blog