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

全部博文(156)

文章存档

2010年(13)

2008年(39)

2007年(104)

我的朋友

分类: 系统运维

2007-06-08 05:21:47

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

 

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