Вы находитесь на странице: 1из 2

You can export the zpool from one system to another Solaris machine if both the

machines are having access to the same LUNs which are used on that zpool.
Here i am exporting the oracledata pool.
root@Unixarena-SOL11:~# zpool status oracledata
pool: oracledata
state: ONLINE
scan: none requested
config:
NAME
STATE
READ WRITE CKSUM
oracledata ONLINE
0
0
0
c8t1d0 ONLINE
0
0
0
c8t2d0 ONLINE
0
0
0
errors: No known data errors
root@Unixarena-SOL11:~# zpool export oracledata
root@Unixarena-SOL11:~# zpool list oracledata
cannot open 'oracledata': no such pool
root@Unixarena-SOL11:~#
======================================
Importing the Zpool:
You can easily import the zpool using zpool import command.If you don;t know wha
t are the zpools are available to import on that solaris host,use zpool import com
mand without specifying the zpool name.This command will list the available zpo
ol for import.
root@Unixarena-SOL11:~# zpool import
pool: oracledata
id: 2756639946282462629
state: ONLINE
action: The pool can be imported using its name or numeric identifier.
config:
oracledata ONLINE
c8t1d0 ONLINE
c8t2d0 ONLINE
root@Unixarena-SOL11:~#
To import the zpool

oracledata .

root@Unixarena-SOL11:~# zpool import oracledata


root@Unixarena-SOL11:~# zpool list oracledata
NAME
SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
oracledata 3.97G 138K 3.97G 0% 1.00x ONLINE root@Unixarena-SOL11:~# zpool status oracledata
pool: oracledata
state: ONLINE
scan: none requested
config:
NAME
STATE
READ WRITE CKSUM
oracledata ONLINE
0
0
0
c8t1d0 ONLINE
0
0
0
c8t2d0 ONLINE
0
0
0
errors: No known data errors

root@Unixarena-SOL11:~#
================================
zpool rename zfs

zfs rename apppool/spark_inputA apppool/spark_input


zfs get mounted apppool/spark_input
zfs get mountpoint apppool/spark_input
zfs set mountpoint=/spark_input apppool/spark_input
zfs get mountpoint apppool/spark_input

Вам также может понравиться