Purpose: To make it easier to differentiate between the hard drives.
Old labels shown with gpt/gptid
To disable gpt/gptid labels you will need to modify either the /boot/device.hints or /boot/loader.conf file. In order to modify those files the file system will need to be made writable which can only be done as the root user.
1. Change to the super user
2. Make file system writeable
3. Open loader.conf in the vi text editor
4. Add the following lines to the loader.conf file and save
5. Reboot for the changes to take effect
6. New labels shown with device name
The idea for this How-To came from a post by Andrey V. Elsukov in another forum.
Old labels shown with gpt/gptid
Code:
freenas# zpool status Data pool: Data state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM Data ONLINE 0 0 0 raidz2 ONLINE 0 0 0 gptid/b89a9716-76a0-11e0-8ff6-90e6ba604f9d ONLINE 0 0 0 gptid/2be4d49a-ae8d-11e0-a752-90e6ba604f9d ONLINE 0 0 0 gptid/b908c5ed-76a0-11e0-8ff6-90e6ba604f9d ONLINE 0 0 0 gptid/b9412842-76a0-11e0-8ff6-90e6ba604f9d ONLINE 0 0 0 gptid/b97f6d34-76a0-11e0-8ff6-90e6ba604f9d ONLINE 0 0 0 gptid/b9bb3dbb-76a0-11e0-8ff6-90e6ba604f9d ONLINE 0 0 0 gptid/b9f5343f-76a0-11e0-8ff6-90e6ba604f9d ONLINE 0 0 0 gptid/ba321d96-76a0-11e0-8ff6-90e6ba604f9d ONLINE 0 0 0 gptid/ba707005-76a0-11e0-8ff6-90e6ba604f9d ONLINE 0 0 0 gptid/a8787576-7738-11e0-9524-90e6ba604f9d ONLINE 0 0 0 errors: No known data errors
To disable gpt/gptid labels you will need to modify either the /boot/device.hints or /boot/loader.conf file. In order to modify those files the file system will need to be made writable which can only be done as the root user.
1. Change to the super user
Code:
su -
2. Make file system writeable
Code:
mount -uw /
3. Open loader.conf in the vi text editor
Code:
vi /boot/loader.conf
4. Add the following lines to the loader.conf file and save
Code:
# Disable gpt/gptid labels kern.geom.label.gptid.enable=0 kern.geom.label.gpt.enable=0
5. Reboot for the changes to take effect
Code:
reboot
6. New labels shown with device name
Code:
freenas# zpool status Data pool: Data state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM Data ONLINE 0 0 0 raidz2 ONLINE 0 0 0 ada0p2 ONLINE 0 0 0 ada1p2 ONLINE 0 0 0 da0p2 ONLINE 0 0 0 da1p2 ONLINE 0 0 0 da2p2 ONLINE 0 0 0 da3p2 ONLINE 0 0 0 da4p2 ONLINE 0 0 0 da5p2 ONLINE 0 0 0 da6p2 ONLINE 0 0 0 da7p2 ONLINE 0 0 0 errors: No known data errors
The idea for this How-To came from a post by Andrey V. Elsukov in another forum.