AIX,HP-UX,LINUX,SOLARIS磁盘与卷管理常用命令精选 DISK/LVM Commands Filesystem table Free disk blocks Device listing AIX /etc/filesystems df -k lsdev -C HP-UX /etc/fstab bdf /sbin/ioscan LINUX(RedHat) /etc/fstab df -k cat /proc/devices SOLARIS(VxVM) /etc/vfstab df -k sysdef format -d c#t#d# Disk information bootinfo -s hdisk# diskinfo /dev/rdsk/c#t#d# cat format>inquiry /proc/scsi/scsi0/sda/model format>current Disk Label LVM Concepts Journal Filesystem type ispv -l hdisk# Partition Volume Volume group jfs pvdisplay -v /dev/dsk/C#t#d# logical extents logical volume volume group vxfs fdisk -l logical extents logical volume volume group ext3 prtvtoc sub disk Volume Plex disk group vxfs Default volume group Display volume group Modify physical volume Prepare physical disk List phycical volume Remove disk from volume group /dev/rootvg lsvg -l rootvg chpv /dev/vg00 vgdisplay -v vg00 pvchange vgdisplay -v pvchange pvcreate pvdisplay vgreduce pvmove vgcreate vgremove /dev/vx/dsk/rootdg vxprint -l -g rootdg vxdisk vxprint -dl vxprint -dl vxdg rmdisk vxassist move vxdg init vxdg destroy mkdev -c disk -l hdisk# pvcreate lspv reducevg pvdisplay vgreduce pvmove vgcreate vgremove Move logical volumes to another physical volumes migratepv Create volume group Remove volume group mkvg chvg Volume group availability varyonvg varyoffvg Restore volume group Exports volume group Imports volume group exportvg importvg vgchange vgchange vxdg set vgcfgrestore vgexport vgimport vgcfgrestore vgexport vgimport vxconfigrestore vxdg deport vxdg import Volume group listing Change logical volume characteristics List logical volume Make logical volume Extend logical volume Reduce logical volume Remove logical volume Prepare boot volumes Remove boot volumes lsvg chlv lslv mklv extendlv rmlv bootlist -m normal vgscan lvchange lvdisplay lvcreate lvextend lvreduce lvremove lvlnboot lvrmboot extendfs /dev/vg00/lv0l8 vgscan lvchange lvdisplay lvcreate lvextend lvreduce lvremove lilo resize2fs vxdg list vxedit set vxprint -vl vxassist make vxassist growto vxassist shrinkto vxedit rm vxbootsetup vxresize fsadm -F vxfs -b {block#} /mt vxassist remove mirror vxassist mirror Extend File system chfs -a size=# /mt fsadm -F vxfs -b{LE * 1024} /mt resize_reiserfs Reduce/Splic mirrors Merge mirrors Create mirrors rmlvcopy mklv -c 2 lvsplit lvmerge lvcreate -m 1 lvsplit lvmerge Add mirrors Create striped volumes System recovery tape Backup Restore mklvcopy lv2 mklv -u 3 -S 64K mksysb -i /dev/rmt0 savevg -i rootvg restvg lvextend -m 1 lvcreate -i 3 -l 64 /opt/ignite/bin/make_recovery fbackup frecover lvcreate -i 3 -l 64 tar cvf /dev/rst0/ tar xvf /dev/rst0 vxassist mirror vxassist make vol 100mb layout=raid5 vxdump vxrestore
AIX HP LINUX SALORIS磁盘管理常用命令



