about summary refs log tree commit diff stats
path: root/tools
Commit message (Expand)AuthorAgeFilesLines
* 7476Kartik Agaram2020-12-301-1/+1
* 7472Kartik Agaram2020-12-291-0/+9
* 7464Kartik Agaram2020-12-291-0/+9
* 7426Kartik Agaram2020-12-271-41/+41
* 7405Kartik Agaram2020-12-261-36/+45
* 7252Kartik Agaram2020-11-161-1/+1
* 7236Kartik Agaram2020-11-141-1/+1
* 7233 - fix some warnings from gcc 9Kartik Agaram2020-11-131-3/+3
* 6774Kartik Agaram2020-09-111-0/+11
* 6674Kartik Agaram2020-07-251-5/+5
* 6631Kartik Agaram2020-07-111-4/+4
* 6617Kartik Agaram2020-07-051-7/+5
* 6610 - tweak the Linux boot image generatorKartik Agaram2020-07-051-8/+6
* -Kartik Agaram2020-05-182-17/+20
* mu.subx: make handles in Primitives easier to readKartik Agaram2020-05-181-0/+17
* 6207 - tweaks while creating a videoKartik Agaram2020-04-191-3/+3
* 6123 - runtime helper for initializing arraysKartik Agaram2020-03-111-0/+636
* 6003Kartik Agaram2020-02-091-4/+15
* 6002Kartik Agaram2020-02-091-3/+4
* 5910Kartik Agaram2020-01-201-2/+1
* 5900Kartik Agaram2020-01-191-0/+16
* 5899Kartik Agaram2020-01-192-4/+11
* 5897 - rename comparison instructionsKartik Agaram2020-01-161-16/+0
* 5891Kartik Agaram2020-01-141-0/+20
* 5884Kartik Agaram2020-01-121-0/+7
* 5881Kartik Agaram2020-01-101-7/+0
* 5875Kartik Agaram2020-01-021-7/+7
* 5870Kartik Agaram2020-01-021-0/+3
* 5868Kartik Agaram2020-01-021-0/+0
* 5859Kartik Agaram2020-01-012-0/+67
* 5858Kartik Agaram2020-01-0195-0/+32627
* 5837 - better colors for trace browserKartik Agaram2019-12-281-10/+25
* 5819Kartik Agaram2019-12-221-1/+1
* 5816 - browse_trace bug fixedKartik Agaram2019-12-211-0/+1
* 5815Kartik Agaram2019-12-211-4/+4
* 5814Kartik Agaram2019-12-211-25/+25
* 5813Kartik Agaram2019-12-211-2/+1
* 5812 - debugging an ancient niggle in browse_traceKartik Agaram2019-12-211-6/+5
* 5805Kartik Agaram2019-12-081-0/+12
* 5801 - move `tangle` to `tools/` dirKartik Agaram2019-12-072-0/+1189
* 5800 - move `browse_trace` to `tools/` dirKartik Agaram2019-12-0712-0/+1927
* 5799 - move html-generation to `tools/` directoryKartik Agaram2019-12-073-1/+344
* 5797 - move `enumerate/` to `tools/` directoryKartik Agaram2019-12-072-0/+34
* 5796 - move treeshake to a new tools/ directoryKartik Agaram2019-12-075-0/+239
# cd /iso/crux/opt/ # pkgadd lvm2#2.02.107-1.pkg.tar.xz # </pre> <h2 id="lvmpart">1. LVM Partition</h2> <p>Create a LVM partition, fdisk should show something like this;</p> <pre> # parted /dev/sda </pre> <p>I use defaults unless to define system partition last sector, where in this example is size, +80G</p> <h2 id="pv">2. Create physical volume</h2> <pre> # pvcreate /dev/sdb3 Physical volume "/dev/sdb3" successfully created </pre> <h2 id="vg">3. Create volume group</h2> <pre> # vgcreate vg_system /dev/sdb3 Volume group "vg_system" successfully created # vgcreate homevg /dev/sdb4 Volume group "homevg" successfully created # </pre> <h3>3.1. Search Volume Groups</h3> <pre> # vgscan Reading all physical volumes. This may take a while... Found volume group "homevg" using metadata type lvm2 Found volume group "vg_system" using metadata type lvm2 # </pre> <h2 id="lv">4. Create logical volume</h2> <pre> # lvcreate -L 15G -n distfileslv vg_system Logical volume "distfileslv" created. # lvcreate -L 8G -n packageslv vg_system Logical volume "packageslv" created. # lvcreate -L 4G -n swaplv vg_system Logical volume "swaplv" created. # lvcreate -L 80G -n homelv homevg Logical volume "homelv" created. # </pre> <pre> # mkfs.ext4 /dev/vg_system/distfileslv # mkfs.ext4 /dev/vg_system/packageslv # mkswap /dev/vg_system/swaplv # mkfs.ext4 /dev/homevg/homelv </pre> <h3>4.1. Activate Deactivate</h3> <p>Deactivate logical volumes;</p> <pre> # lvchange -a -n /dev/vg_system/packageslv # lvchange -a -n /dev/vg_system/distfileslv # swapoff /dev/vg_system/sawplv # lvchange -a -n /dev/vg_system/swaplv </pre> <p>Deactivate volume group;</p> <pre> # vgchange -a n vg_system 0 logical volume(s) in volume group "vg_system" now active # </pre> <p>Activate volume group;</p> <pre> # vgchange -a y vg_system 3 logical volume(s) in volume group "vg_system" now active # </pre> <h2 id="maint">5. Maintenance</h2> <h2 id="encrypt">7. Encryption</h2> <a href="index.html">Tools Index</a> <p> This is part of the c9-doc Manual. Copyright (C) 2016 c9 team. See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a> for copying conditions.</p> </body> </html>