CKB:Configuring Logical Volume Manager (LVM): Unterschied zwischen den Versionen

Aus Cryptshare Documentation
Wechseln zu:Navigation, Suche
K (Move page script verschob die Seite CKB:74384670 nach CKB:Configuring Logical Volume Manager (LVM))
Keine Bearbeitungszusammenfassung
Zeile 9: Zeile 9:


== Solution: ==
== Solution: ==
# log in as '''root''' on your appliance
1. log in as '''root''' on your appliance
# run the command '''yast   
 
'''
2. run the command '''yast  '''
# navigate to '''System → Partitioner''' and press '''Enter'''
 
3. navigate to '''System → Partitioner''' and press '''Enter'''
[[File:74384686.png]]
[[File:74384686.png]]
# press '''Enter''' to agree the Warning   
 
4. press '''Enter''' to agree the Warning   
[[File:74384688.png]]
[[File:74384688.png]]
# navigate to virtual disk which will be used for LVM
 
5. navigate to virtual disk which will be used for LVM
 
[[File:74384692.png]]
[[File:74384692.png]]
# add new partition as '''Raw Volume (unformatted)'''   
 
6. add new partition as '''Raw Volume (unformatted)'''   
[[File:74384695.png]][[File:74384696.png]]
[[File:74384695.png]][[File:74384696.png]]
# do not format device and select '''Linux LVM''' as Partition ID   
 
7. do not format device and select '''Linux LVM''' as Partition ID   
[[File:74384698.png]]
[[File:74384698.png]]
# repeat steps 5, 6 and 7 for all disks which will be used for LVM
 
# navigate to '''Volume Management''' and create new Volume Group
8. repeat steps 5, 6 and 7 for all disks which will be used for LVM
 
9. navigate to '''Volume Management''' and create new Volume Group
 
[[File:74384699.png]]   
[[File:74384699.png]]   
enter the volume name, select and add previously configured disks
10. enter the volume name, select and add previously configured disks
 
[[File:74384700.png]][[File:74384701.png]]
[[File:74384700.png]][[File:74384701.png]]
# create new Logical Volume on the volume group
 
11. create new Logical Volume on the volume group
 
[[File:74384702.png]][[File:74384703.png]][[File:74384704.png]][[File:74384705.png]]   
[[File:74384702.png]][[File:74384703.png]][[File:74384704.png]][[File:74384705.png]]   
format the volume e.g. as EXT4 and add a mount point you prefer, e.g. /var/opt/data
 
12. format the volume e.g. as EXT4 and add a mount point you prefer, e.g. /var/opt/data
 
[[File:74384706.png]][[File:74384707.png]][[File:74384708.png]][[File:74384709.png]]
[[File:74384706.png]][[File:74384707.png]][[File:74384708.png]][[File:74384709.png]]
# new volume will be mounted now
 
13. new volume will be mounted now
 
[[File:74384710.png]]
[[File:74384710.png]]
# create needed folders on the new volume, e.g. uploads, backup and tmp and apply needed permissions
 
14. create needed folders on the new volume, e.g. uploads, backup and tmp and apply needed permissions
  '''mount'''
  '''mount'''
   
   
Zeile 40: Zeile 57:
  cryptshare:~ # mkdir /var/opt/data/tmp
  cryptshare:~ # mkdir /var/opt/data/tmp
  cryptshare:~ # chown -R csuser:csgroup /var/opt/data
  cryptshare:~ # chown -R csuser:csgroup /var/opt/data
# configure corresponding entries on Cryptshare Administration Interface
15. configure corresponding entries on Cryptshare Administration Interface
 
[[File:74384711.png]][[File:74384712.png]]   
[[File:74384711.png]][[File:74384712.png]]   
    
    
for configuring temp folder [https://wiki.cryptshare.com/display/CSM/System+Startup+Configuration visit this page]
for configuring temp folder [https://wiki.cryptshare.com/display/CSM/System+Startup+Configuration visit this page]

Version vom 14. Januar 2022, 15:04 Uhr


Applies to:

All versions of Cryptshare Virtual Appliance

Purpose:

This is an example on configuring LVM on Cryptshare Appliances

Solution:

1. log in as root on your appliance

2. run the command yast

3. navigate to System → Partitioner and press Enter 74384686.png

4. press Enter to agree the Warning 74384688.png

5. navigate to virtual disk which will be used for LVM

74384692.png

6. add new partition as Raw Volume (unformatted) 74384695.png74384696.png

7. do not format device and select Linux LVM as Partition ID 74384698.png

8. repeat steps 5, 6 and 7 for all disks which will be used for LVM

9. navigate to Volume Management and create new Volume Group

74384699.png 10. enter the volume name, select and add previously configured disks

74384700.png74384701.png

11. create new Logical Volume on the volume group

74384702.png74384703.png74384704.png74384705.png

12. format the volume e.g. as EXT4 and add a mount point you prefer, e.g. /var/opt/data

74384706.png74384707.png74384708.png74384709.png

13. new volume will be mounted now

74384710.png

14. create needed folders on the new volume, e.g. uploads, backup and tmp and apply needed permissions

mount

cryptshare:~ # mkdir /var/opt/data/uploads
cryptshare:~ # mkdir /var/opt/data/backup
cryptshare:~ # mkdir /var/opt/data/tmp
cryptshare:~ # chown -R csuser:csgroup /var/opt/data

15. configure corresponding entries on Cryptshare Administration Interface

74384711.png74384712.png

for configuring temp folder visit this page