Pages

Monday, October 26, 2015

rhel 6 : how to replace a disk


tar -cvf data12.tar ./data12
for x in `seq 2 65` ; do ssh 105.90.5.$x 'hostname ; df -h | grep data12' ; done

cat /dev/sdg > /dev/null #find which one is bad.
Replace Disk.
Reboot

parted -- /dev/sdl mklabel gpt unit TB mkpart primary 0 4TB


mkfs.ext4 /dev/sdl1

tune2fs -i 0 -c 0 -m 1 -e panic /dev/sdl1

mkdir /data12
chmod 755 /data12
mount /dev/sdl1 /data12

df -h

No comments:

Post a Comment