Friday, January 24, 2014

Commands to scan LUN and assign file system on Linux

echo "- - -" > /sys/class/scsi_host/host0/scan
echo "- - -" > /sys/class/scsi_host/host1/scan
echo "- - -" > /sys/class/scsi_host/host2/scan
fdisk /dev/sdf
create a Primary Disk
change Partition ID to 8e
Write the disk
partprobe
pvcreate /dev/sdf1
vgcreate  vg0  /dev/sdf1
lvcreate -L 499G -n /dev/vg0/sdf1
/dev/sdf1       /svn                   ext3    defaults,acl        1 2
mount -o remount,rw /svn
cp -rpf /svn1/* /svn/

No comments:

Post a Comment