Chinaunix首页 | 论坛 | 博客
  • 博客访问: 676338
  • 博文数量: 156
  • 博客积分: 6010
  • 博客等级: 准将
  • 技术积分: 1201
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-05 20:08
文章分类

全部博文(156)

文章存档

2010年(13)

2008年(39)

2007年(104)

我的朋友

分类: 系统运维

2007-06-08 05:21:07

磁盘与逻辑卷命令比较

DISK/LVM Commands
AIX
FreeBSD
HP-UX
Filesystem table /etc/filesystems /etc/fstab /etc/fstab
Free disk blocks df -k df -k bdf
Device listing lsdev -C   /sbin/ioscan
Disk information bootinfo -s hdisk#  fdisk -v ad0 diskinfo /dev/rdsk/c#t#d#
Disk Label lspv -l hdisk# disklabel ad0 pvdisplay -v /dev/dsk/C#t#d#
LVM Concepts Partition  sub disk logical extents
  Volume Volume logical volume
    Plex  
  Volume group   volume group
Journal Filesystem type jfs   vxfs
Default volume group /dev/rootvg   /dev/vg00
Display volume group lsvg -l rootvg   vgdisplay -v vg00
Modify physical volume chpv   pvchange
Prepare physical disk mkdev -c disk -l hdisk#   pvcreate
List physical volume lspv vinum ld pvdisplay
Remove disk from volume group reducevg   vgreduce
Move logical volumes to another physical volumes migratepv vinum move -f drive object pvmove
Create volume group mkvg   vgcreate
Remove volume group     vgremove
Volume group availability chvg
varyonvg
varyoffvg
  vgchange
Restore volume group     vgcfgrestore
Exports volume group exportvg   vgexport
Imports volume group importvg   vgimport
Volume group listing lsvg   vgscan
Change logical volume characteristics  chlv   lvchange
List logical volume lslv vinum lv lvdisplay
Make logical volume mklv   lvcreate
Extend logical volume extendlv   lvextend
Reduce logical volume AIX reduce LV   lvreduce
Remove logical volume rmlv vinum rm vol lvremove
Prepare boot volumes bootlist -m normal   lvlnboot
Remove boot volumes     lvrmboot
Extend File system chfs -a size=# /mt   extendfs /dev/vg00/lvol8
fsadm -F vxfs -b {LE * 1024} /mt
Reduce/Split mirrors rmlvcopy   lvsplit
Merge mirrors     lvmerge
Create mirrors mklv -c 2 vinum mirror drive lvcreate -m 1
Add mirrors mklvcopy lv 2    lvextend -m 1
Create striped volumes mklv -u 3 -S 64K vinum stripe drive lvcreate -i 3 -I 64
System recovery tape mksysb -i /dev/rmt0   /opt/ignite/bin/make_recovery
Backup savevg -i rootvg vinum saveconfig fbackup
Restore restvg    frecover

阅读(2097) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~