|
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 |