[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

cambiare label di partizioni linux raid member



Ciao a tutti, tempo fa ho installato un nuovo server prendendo alcuni dischi in raid+lvm da un server che è stato dismesso. Ora mi sono accorto che nel file /etc/blkid.tab la label del disco ha un riferimento al nome del vecchio server così come il file /etc/mdadm/mdadm.conf.


# cat /etc/mdadm/mdadm.conf
[...]
# definitions of existing MD arrays
ARRAY /dev/md/0 metadata=1.2 UUID=a7996c5e:08ebddc4:e988ad15:ed219740 name=serverone-new:0
ARRAY /dev/md/2 metadata=1.2 UUID=9f604bbb:314c6b10:8ed14033:9f90911a name=serverone-new:2
ARRAY /dev/md/1 metadata=1.2 UUID=ceff6245:d9dfe0f6:3943fee0:e1346f3e name=serverone-new:1
[...]


# cat /etc/blkid.tab
[...]
<device DEVNO="0x0832" TIME="1546909449.141728" UUID="a7996c5e-08eb-ddc4-e988-ad15ed219740" UUID_SUB="dbfde8b7-d3ab-aad3-a388-8e044fe5a1d6" LABEL="serverone-new:0" TYPE="linux_raid_member">/dev/sdd2</device>
<device DEVNO="0x0833" TIME="1546909449.153448" UUID="ceff6245-d9df-e0f6-3943-fee0e1346f3e" UUID_SUB="bb5175eb-67f7-333a-fbc5-86ae62452678" LABEL="serverone-new:1" TYPE="linux_raid_member">/dev/sdd3</device>
<device DEVNO="0x0834" TIME="1546909449.165111" UUID="9f604bbb-314c-6b10-8ed1-40339f90911a" UUID_SUB="51b1e55f-a60c-24d7-894f-5417140c62c7" LABEL="serverone-new:2" TYPE="linux_raid_member">/dev/sdd4</device>

Posso tranquillamente andare a cambiare name e LABEL rispettivamente in mdadm.conf e blkid.tab oppure esiste un qualche comando per cambiare name/label?

Grazie

Piviul


Reply to: