OpenSolaris Solaris Forum  

Left Nav FAQ Members List Default Password Members List Linux Commands Search Today's Posts Mark Forums Read Right Nav

Left Container Right Container

Go Back   OpenSolaris Solaris Forum Solaris General

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-26-2012, 01:32 PM
Junior Member
Join Date: Sep 2012
Posts: 1
Default zpool export import alternate cachefile

Hi all,

I'm experimenting with creating zpools with an alternate location for the cachefile. Reason: I don't want certain pools to mount at boottime. I know that you have to create a copy of the cachefile so that it won't be removed when you export it. I followed the following procedure (done in a vm and on real hardware)

1: Create e.g. a very simple pool with the command:
zpool create -o cachefile=/etc/cache/testpool.cache -f testpool c2t1d0
2: copy /etc/cache/testpool.cache to /tmp/
3: export testpool :zpool export testpool (original cachefile gets deleted automatically)
4: copy the cachefile back to original location: cp /tmp/testpool.cache /etc/cache/
5: import the testpool back: zpool import -c /etc/cache/testpool.cache -a

Step 5 is where it goes wrong. I allways get the message: "cannot import 'testpool': one or more devices is currently unavailable.

If I do an import -f testpool, there's no problem. I find this bevaviour a little strange. Probably I'm missing something.

Maybe somebody can shed some light on this?


Reply With Quote
Sponsored Links



Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
zpool query Unregistered Solaris General 0 10-27-2011 01:51 PM
Migrating zpool to bigger disks JimXugle Solaris General 1 06-28-2010 03:58 PM

All times are GMT. The time now is 11:01 AM.

Powered by vBulletin. Copyright 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.