How to create new FS/VG/LV in suse linux
=========================================
pre-requisite :
1. take the df -h;fdisk -l ;multipath -ll ,vgs ,pvs,lvs command output .
2.take the backup of /etc/fstab.
2. once the storage team allocate the LUN's . NOte down the LUN-ID provided by storage team .
Suppose LUN-ID = AB0004lm0000000008n00876d00005e9e
run the below command to detetct at server level.
#rescan-scsi-bus.sh
3. Validate that the New LUN has been detetcted .
#ls -ltr /dev/mapper/ - check the latest(last) entry to cross-check
#multipath -ll |grep "AB0004lm0000000008n00876d00005e9e"
# ls -l /dev/disk/by-id/ |grep -i "AB0004lm0000000008n00876d00005e9e"
4. Once you are able to find out the new LUN's , note down the logical name of it .
5. If you are need to create PV .
# pvcreate /dev/mapper/mpathdi
6. Create the volume group
#vgcreate abhidata3vg /dev/mapper/mpathdi
7. Once done you need to create the LV .
#lvcreate -L 20G -n lvabhidata3 abhidata3vg
8. Here we are going to create xfs filesystem
#mkfs.xfs /dev/mapper/abhidata3vg-lvabhidata3
9. create the directory on which you want to mount the new FS "/oracle/SQ7/sapdata3 and mount the filesystem.
#mkdir /aks
#mount /dev/abhidata3vg/lvabhidata3 /aks
10. To make the changes permanent add the entry of this filesystem in /etc/fstab
/dev/abhidata3vg/lvabhidata3 /aks xfs rw,noatime,nodiratime,barrier=0 0 0
below options normally we prefer for xfs filesystems .
No comments:
Post a Comment