Nakshatra Linux in a LVM (Logical Volume Manager) Setup ================================================ To get started we recommended using one disk as a starting point to install Nakshatra linux in LVM setup, and then add subsequent disks later. After logging in as root, use cfdisk or fdisk to create the necessary LVM structures. You will have to run fdisk or cfdisk first to create the partition(s) you want to use for setting up the logical volumes. For any partition you create and that you want to use for LVM, you should set the partition typeto '8e' (Linux LVM). Run the following sequence of commands in for setup to install the OS. 1. create a pv 2. create a vg 3. create the lv(s) of desired size. 4. create a swap partition and then enable it using mkswap 5. run setup Preparing the Physical volumes --------------------------------------------- For example, Let's assume we have a 30GB partition /dev/sda1 of type LVM. Then run , # pvcreate /dev/sda1 This will create a physical volume of 30GB. Next we create a volume group or vg. # vgcreate rootvg /dev/sda1 This will create a root volume group called rootvg containing the physical volume or pv /dev/sda1. Next we create a LV or logical volume. ======================================================== A word about using a Logical Volume for SWAP -------------------------------------------------------------- How to create a swap logical volume # lvcreate -L 1G -n swap rootvg where -L = size of the lv -n = name of the lv This will create a logical volume called "swap" in the root volume group. Now , enable it using the mkswap command. # mkswap /dev/rootvg/swap ========================================================== # lvcreate -L 15G -n rootlv rootvg This will allocate 15GB of space for the root logical volume for setup to install to. You can choose your desired lv size accordingly and additional Logical volumes can be created as per requirements. eg: # lvcreate -L 5G -n home rootvg The setup wizard / installer will automatically recognize and activate any pre-existing Logical Volumes on your hard drive(s). These Logical Volumes will be selectable targets for the creation of the filesystems (like /, /usr, /home, /var) etc If you want, you can just allocate all remaining space inside the Volume Group to a Logical Volume. Suppose we want to allocate all available space to our 'home' LV, then this will the command to use # lvcreate -l 100%FREE -n home rootvg ======================================================== The device nodes for the logical volumes are created, and the volumes will be activated automatically when running lvcreate. You can now run setup. For complete documentation about LVM , you can visit the location below: https://nakshatrasystems.com/docs/index.html ==================================================================== -- Team Nakshatra.