[zfs-discuss] Rename disk labels in an already running zpool?

Gandalf Corvotempesta gandalf.corvotempesta at gmail.com
Sat Dec 2 03:42:34 EST 2017


Not if mounted AFAIK...

Il 2 dic 2017 9:41 AM, "Gregor Kopka (@zfs-discuss) via zfs-discuss" <
zfs-discuss at list.zfsonlinux.org> ha scritto:

> Simple:
>
> zpool export xtbmr
> zpool import xtbmr -d /dev/disk/by-id
>
> Gregor
>
> Am 02.12.2017 um 08:44 schrieb Zenny via zfs-discuss:
>
> Hi,
>
> I have a mirror pool with two drives:
>
>     NAME                        STATE     READ WRITE CKSUM
>>     xtbmr                       ONLINE       0     0     0
>>       mirror-0                  ONLINE       0     0     0
>>         sde                      ONLINE       0     0     0
>>         sda                      ONLINE       0     0     0
>>
>
> I want to change the labels derived from disk-id. 'ls -la /dev/disk/by-id'
> outputs:
>
> lrwxrwxrwx 1 root root   9 Dec  2 08:08 ata-ST10000VN0004-1ZD101_ZA22435B
>> -> ../../sde
>> lrwxrwxrwx 1 root root  10 Dec  2 08:08 ata-ST10000VN0004-1ZD101_ZA22435B-part1
>> -> ../../sde1
>> lrwxrwxrwx 1 root root  10 Dec  2 08:08 ata-ST10000VN0004-1ZD101_ZA22435B-part9
>> -> ../../sde9
>> lrwxrwxrwx 1 root root   9 Dec  2 08:08 ata-ST10000VN0004-1ZD101_ZA224RJK
>> -> ../../sda
>> lrwxrwxrwx 1 root root  10 Dec  2 08:08 ata-ST10000VN0004-1ZD101_ZA224RJK-part1
>> -> ../../sda1
>> lrwxrwxrwx 1 root root  10 Dec  2 08:08 ata-ST10000VN0004-1ZD101_ZA224RJK-part9
>> -> ../../sda9
>>
>>
> How can I change the disk labeling
>
> FROM sde TO ata-ST10000VN0004-1ZD101_ZA22435B
> FROM sda TO ata-ST10000VN0004-1ZD101_ZA224RJK
>
> without breaking the zpool?
>
> Inputs appreciated and have a nice weekend!
>
> Cheers,
> /z
>
> -.. .. ... -.-. .-.. .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-.
> CONFIDENTIALITY NOTICE AND DISCLAIMER: Access to this e-mail and its
> contents by anyone other than the intended recipient is unauthorized as it
> contains privileged and confidential information, and is subject to legal
> privilege. Please do not re/distribute it.  If you are not the intended
> recipient (or responsible for delivery of the message to such person), you
> may not use, copy, distribute or deliver the email and part of its contents
> to anyone this message (or any part of its contents or take any action in
> connection to it. In such case, you should destroy this message, and notify
> the sender immediately. If you have received this email in error, please
> notify the sender or your sysadmin immediately by e-mail or telephone, and
> delete the e-mail from any computer. If you or your employer does not
> consent to internet e-mail messages of this kind, please notify the sender
> immediately. All reasonable precautions have been taken to ensure no
> viruses are present in this e-mail and attachments included. As the sender
> cannot accept responsibility for any loss or damage arising from the use of
> this e-mail or attachments it is recommended that you are responsible to
> follow your virus checking procedures prior to use. The views, opinions,
> conclusions and other informations expressed in this electronic mail are
> not given or endorsed by any company including the network providers unless
> otherwise indicated by an authorized representative independent of this
> message.
> -.. .. ... -.-. .-.. .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-.
>
>
> -----BEGIN PGP PUBLIC KEY BLOCK-----
> Comment: http://openpgpjs.org
>
> xsBNBFcTxwEBCAC+G0MG+BHNGs8orGRobPV6jd+8RtT4XhXXEnuEjLA5uHz8
> 1OulvUS/qiq58Jo/KEnTn19rtyNiN7GmrLvo14Q0+mpFQEfrnzj2NCr1bf8w
> l5r+CrIIb+xFEqf5dIHf3w1NNXgHwl6Z3QBflZsqaPHa8y5dhAqVlr1NS7EL
> VgCifutAppl2Fcl05p4F5pQLKHMYCO+5gPMnMfnOOe4BTch0VOg8N4qkv0Px
> JtSHjHucpivf4eJwznejYwDt/AtdyaB7LUC9N6yuLN+QYuB/mIo0YVU2wcgP
> iwr8ITfDUz5Nx0MUm9hmTbOyj6ixNOVuYMmOvevCzzU0ULEkr99EMoAJABEB
> AAHNHFplbm55IDxnYXJieXRyYXNoQGdtYWlsLmNvbT7CwHIEEAEIACYFAlcT
> xwEGCwkIBwMCCRABOcPTK6+XKwQVCA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sU6AGpOu
> QhWG1alJz6d1T4sTgPdh+K1nMWNKGUzzayAKrRPTbnwLEijqqJPpIIDVzoai
> py73
> =JPvb
> -----END PGP PUBLIC KEY BLOCK-----
>
>
>
> _______________________________________________
> zfs-discuss mailing listzfs-discuss at list.zfsonlinux.orghttp://list.zfsonlinux.org/cgi-bin/mailman/listinfo/zfs-discuss
>
>
>
> _______________________________________________
> zfs-discuss mailing list
> zfs-discuss at list.zfsonlinux.org
> http://list.zfsonlinux.org/cgi-bin/mailman/listinfo/zfs-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.zfsonlinux.org/pipermail/zfs-discuss/attachments/20171202/56f2eaac/attachment.html>


More information about the zfs-discuss mailing list