Hi all, is there any way to rename a zpool? I looked at zpool(1m), but could not find anything. Then I tried to "mv /zpool0 /newname", which works, but is reverted upon reboot. Any idea? TIA, Tom This message posted from opensolaris.org
On Wed, Mar 01, 2006 at 01:58:42PM -0800, Thomas Maier-Komor wrote:> Hi all, > > is there any way to rename a zpool? I looked at zpool(1m), but could > not find anything. Then I tried to "mv /zpool0 /newname", which works, > but is reverted upon reboot.If you just want to change the mountpoint, you can do: zfs set mountpoint=/newname zpool0 I don''t believe there''s a way to rename a pool after creation. Cheers, - jonathan -- Jonathan Adams, Solaris Kernel Development
You can export the pool and reimport with a different name:
zpool import [-d dir] [-f] [-o options] [-R root] pool | id
[newpool]
- George
Jonathan Adams wrote:> On Wed, Mar 01, 2006 at 01:58:42PM -0800, Thomas Maier-Komor wrote:
>> Hi all,
>>
>> is there any way to rename a zpool? I looked at zpool(1m), but could
>> not find anything. Then I tried to "mv /zpool0 /newname",
which works,
>> but is reverted upon reboot.
>
> If you just want to change the mountpoint, you can do:
>
> zfs set mountpoint=/newname zpool0
>
> I don''t believe there''s a way to rename a pool after
creation.
>
> Cheers,
> - jonathan
>
>Hi all, > >is there any way to rename a zpool? I looked at zpool(1m), but could not find anything. Then I tried to "mv /zpool0 /newname", which works, but is reverted upon reboot.> >Any idea?zpool export somepool zpool import somepool newpool Casper