Goal
On a machine with LVM installed I would like to create some more /tmp spaceRecipe
Ask for information# vgs VG #PV #LV #SN Attr VSize VFree scsi0 1 3 0 wz--n- 461,10G 195,10G scsi1 1 1 0 wz--n- 931,51G 23,85G
# lvdisplay ...Create the LVM according to the space left on the Volume group:
#lvcreate -L 200G scsi0 -n tmp Logical volume "tmp" created
# lvdisplay ... --- Logical volume --- LV Name /dev/scsi0/tmp VG Name scsi0 LV UUID ea10iW-wAnS-lUSA-clHW-X2M5-ibN3-uAUrws LV Write Access read/write LV Status available # open 0 LV Size 200,00 GB Current LE 51200 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:3 ...Format it
# mkfs.ext3 /dev/scsi0/tmpMount and use it
# rm -rf /tmp/* ; # mount -t ext3 /dev/mapper/scsi0-tmp /tmpNote: use "/dev/mapper/scsi0-tmp" not "/dev/scsi0/tmp"
To remove it
# lvremove /dev/scsi0/tmp