How do you reconfigure ZFS on the server after an OS upgrade? I have a ZFS pool on a 6130 storge array. After upgrade the data on the storage array is still intact, but ZFS configuration is gone due to new OS. Do I use the same commands/procedure to recreate the zpool, ie. # zpool create canary raidz c2t1d0 c2t2d0 c2t3d0 Does the create command destroy data on the disks? --OR-- Should I restore /etc/*zfs*/zpool.cache on the new OS (assuming we have a good backup)?? Thanks, -Karen -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20070118/1f2e3732/attachment.html>
Karen Chau wrote:> How do you reconfigure ZFS on the server after an OS upgrade? I have a > ZFS pool on a 6130 storge array. > After upgrade the data on the storage array is still intact, but ZFS > configuration is gone due to new OS. > > Do I use the same commands/procedure to recreate the zpool, ie. > # zpool create canary raidz c2t1d0 c2t2d0 c2t3d0 > > Does the create command destroy data on the disks? > > --OR-- > > Should I restore /etc/*zfs*/zpool.cache on the new OS (assuming we have > a good backup)??Have you first tried ''zfs import'' ? You''ll have to use the ''-f'' option if you didn''t export the pools before the upgraded OS installation. Dana
Hello Karen, Thursday, January 18, 2007, 6:43:24 PM, you wrote: > How do you reconfigure ZFS on the server after an OS upgrade? I have a ZFS pool on a 6130 storge array. After upgrade the data on the storage array is still intact, but ZFS configuration is gone due to new OS. Do I use the same commands/procedure to recreate the zpool, ie. # zpool create canary raidz c2t1d0 c2t2d0 c2t3d0 Does the create command destroy data on the disks? --OR-- Should I restore /etc/zfs/zpool.cache on the new OS (assuming we have a good backup)?? I''m surprised there''s no zpool.cache after upgrade - it should be and your pools should have imported automatically. I guess you''ve actually re-installed system. Anyway DO NOT re-create pool as you''ll lost your data. zpool won''t allow you to do it by default (without force option). Just do ''zpool import pool_name'' Or first ''zpool import'' to get a list of available pools to import. As Dana pointed out if you haven''t exported pools you would need to forcefully import it. -- Best regards, Robert mailto:rmilkowski@task.gda.pl http://milek.blogspot.com _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss