wangwei3 发表于 2013-1-26 14:24:55

KFS 正式部署的时候遇到的问题

一,大硬盘挂载

1 查看所有的磁盘
sudo fdisk -l |more

2 设置磁盘
sudo fdisk /dev/sdb

-compatible mode is deprecated. It's strongly recommended to switch off the mode (command 'c') and change display units to sectors (command 'u')WARNING : DOSCommand (m for help):c <enter>DOS Compatibility flag is not set (不兼容DOS的模式,如果不用这个模式不能把硬盘设置成1T以上的)Command (m for help): m <enter>Command actiona   toggle a bootable flagb   edit bsd disklabelc   toggle the dos compatibility flagd   delete a partitionl   list known partition typesm   print this menun   add a new partitiono   create a new empty DOS partition tablep   print the partition tableq   quit without saving changess   create a new empty Sun disklabelt   change a partition's system idu   change display/entry unitsv   verify the partition tablew   write table to disk and exitx   extra functionality (experts only)Command (m for help):n <enter>Command actione   extendedp   primary partition (1-4)p <enter>Partition number (1-4):1 <enter>Command (m for help):wThe partition table has been altered!Calling ioctl() to re-read partition table.Syncing disks.

3 格式化硬盘
sudo mke2fs -t ext3 /dev/sdb1

4 自动挂载
sudo nano /etc/fstab

加入以下信息
/dev/sdb1   /mnt/kfsext3defaults02

注意挂盘的时候一定要挂自己建立的文件目录,这样才可以很随意的换硬盘


二 修复了Ubuntu 变成了只读文件系统的错误

发现修改/etc/fstab,提示只读文件系统,:w!也失败。

运行以下语句即可

mount /dev/sda1 / -o rw,remount

三 SSH 配置互通

只需修改 authorized_keys的IP 为 192.168.1.*即可达到通配的效果
页: [1]
查看完整版本: KFS 正式部署的时候遇到的问题