First, you need to partition and label the new disk with either sysinstall, or fdisk and disklabel. The procedure to add a new hard disk under FreeBSD is discussed here.
Once new disk added, create a temporary mount point to mount your /dev/ad6s1, enter:
# mkdir /newuserReboot and drop system to a signal user mode to migrate to a new disk:
# rebootAt boot prompt type:
# boot -sMount all file systems:
# mount -a -t ufsMount new /newuser file system:
# mount /dev/ad6s1 /newuserCopy old /usr to /newuser:
# cd /newuser
# dump 0af - /usr | restore rf -Sample outputs:
Open /etc/fstab, enter:
# vi /etc/fstabModify /usr entry to point to a new location:
/dev/ad6s1 /usr ufs rw 2 2Save and close the file. Reboot the server:
# rebootMake sure everything is working fine after reboot:
# df -H
# tail -f /var/log/messages
No comments:
Post a Comment