Few days back I came to know on "How to rename zpool" One of my UNIX Guru Alex educated me on this.
Alex I would like to say million of thanks to you for your valuable guidance.
All right, so here I am creating a zpool named “oracle-db-zp00”
# zpool create oracle-db-zp00 c8t60050768018A8023B800000000000013d0
# zpool status -v
pool: oracle-db-zp00
state: ONLINE
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
oracle-db-zp00 ONLINE 0 0 0
c8t60050768018A8023B800000000000013d0 ONLINE 0 0 0
errors: No known data errors
Here I messed up with zpool name; it should be “Oracle-Apps-zp00” as per standards. To fix this mistake, I first exported the pool
# zpool export oracle-db-zp00
What zpool export does?
Export a pool from the system for importing on another system. Now at this step “zpool status –v” should not give any O/P for “oracle-db-zp00” zpool.
Now I am importing it with correct name –
# zpool import oracle-db-zp00 Oracle-Apps-zp00
# zpool status -v
pool: Oracle-Apps-zp00
state: ONLINE
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
Oracle-Apps-zp00 ONLINE 0 0 0
c8t60050768018A8023B800000000000013d0 ONLINE 0 0 0
errors: No known data errors
Cool... Isn’t it easy?
Thank you. Very helpful!
ReplyDeleteYes it is , thanks for your help
ReplyDeleteMohamed Amin
engmohamin@yahoo.com