20170726
使用lvm配置磁盘的全过程
# pvcreate /dev/sdb /dev/sdc
# pvdisplay /dev/sdb
# pvscan
# vgcreate vg01 /dev/sdb /dev/sdc
# vgdisplay vg01
# vgscan
# lvcreate -L 1G -n lv01 vg01
# lvdisplay vg01/lv01
# lvscan
# mkfs.ext4 /dev/vg01/lv01
# mount /dev/vg01/lv01 /dir01
# df -h
linux0-6这7个运行基本的含义
# 0 - halt (Do NOT set initdefault to this) //关机
# 1 - Single user mode //单用户模式
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking) //多用户模式,无NFS功能。
# 3 - Full multiuser mode //完整多用户模式
# 4 - unused//系统未用保留
# 5 - X11 //完整多用户模式,启动X11,登录后进入图形模式
# 6 - reboot (Do NOT set initdefault to this) //重启
chkconfig和service命令的作用
chkconfig 主要用来开启和停止Linux中运行级信息,设置是当前不生效,Linux重启后永久生效
service可以快速地开启和停止Linux中的运行级信息,设置是即时生效,linux关机重启后设置失效
浙公网安备 33010602011771号