[ 永遠的UNIX::UNIX技術資料的寶庫 ]   GB | BIG5

首頁 > 系統管理 > 其它 > 正文
主流服務器UNIX操作系統比較(之六)磁盤與邏輯卷命令比較
本文出自:http://www.yesky.com 作者:stone (2002-04-11 08:02:00)
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


DISK/LVM Commands
LINUX(RedHat)
SOLARIS
Tru64
Filesystem table /etc/fstab /etc/vfstab /etc/fstab
Free disk blocks df -k df -k df -k
Device listing cat /proc/devices sysdef  
Disk information cat /proc/scsi/scsi0/sda/model format -d c#t#d#
format>current
format>inquiry
file /dev/rrz0c
Disk Label fdisk -l prtvtoc disklabel -p rz0
LVM Concepts logical extents sub disk sub disk
  logical volume Volume Volume
    Plex Plex
  volume group disk group disk group
Journal Filesystem type ext2 vxfs advfs
Default volume group   /dev/vx/dsk/rootdg /dev/vol/rootdg
Display volume group vgdisplay -v vxprint -l -g rootdg volprint -l -g rootdg
Modify physical volume pvchange    
Prepare physical disk pvcreate vxdiskadd voldiskadd
List physical volume pvdisplay vxprint -dl volprint -dl
Remove disk from volume group vgreduce vxdg rmdisk voldg rmdisk
Move logical volumes to another physical volumes pvmove vxassist move volassist move
Create volume group vgcreate vxdg init voldg init
Remove volume group vgremove    
Volume group availability vgchange    
Restore volume group vgcfgrestore    
Exports volume group vgexport vxdg deport voldg deport
Imports volume group vgimport vxdg import voldg import
Volume group listing vgscan    
Change logical volume characteristics  lvchange  vxedit set voledit set
List logical volume lvdisplay vxprint -vl volprint -vl
Make logical volume lvcreate vxassist make volassist make
Extend logical volume lvextend vxassist growto volassist growto
Reduce logical volume lvreduce vxassist shrinkto volassist shrinkto
Remove logical volume lvremove vxedit rm voledit -g rootdg -rf rm vol1
Prepare boot volumes lilo vxbootsetup  
Remove boot volumes      
Extend File system resize2fs vxva
mkfs -M
 
Reduce/Split mirrors lvsplit    
Merge mirrors lvmerge    
Create mirrors   vxassist mirror volassist make vol 100mb mirror=true
Add mirrors      
Create striped volumes lvcreate -i 3 -I 64 vxassist make vol 100mb layout=raid5 volassist make vol 100mb layout=stripe
System recovery tape     /usr/sys/bin/btcreate
Backup tar cvf /dev/rst0 / ufsdump vdump
Restore tar xvf /dev/rst0  ufsrestore vrestore

(http://www.fanqiang.com)
    進入【UNIX論壇

相關文章
主流服務器UNIX操作系統比較(之五)系統文件比較 (2002-04-11 06:02:00)
主流服務器UNIX操作系統比較(之四)打印機、TCP/IP相關設置 (2002-04-10 08:02:01)
主流服務器UNIX操作系統比較(之三)常用命令 (2002-04-10 06:02:00)
主流服務器UNIX操作系統比較(之二)用戶帳號的設置 (2002-04-09 08:02:00)
主流服務器UNIX操作系統比較(之一)目錄結構對比 (2002-04-09 06:02:00)
 

★  樊強制作 歡迎分享  ★