Commit 308fe960 authored by Bernhard Landauer's avatar Bernhard Landauer
Browse files

lvm_create()

parent ddc10d58
......@@ -112,7 +112,7 @@ _LvmPvConfBody2="ved anvendelse af partioner(ne):"
_LvmPvActBody1="Opretter og aktiverer Volume Group"
_LvmPvDoneBody1="Volume Group"
_LvmPvDoneBody2="er nu oprettet"
_LvmLvNumBody1="Brug [Mellemrun] for at vælge antallet af Logical Volumes (LVs) der skal oprettes på"
_LvmLvNumBody1="Enter the number of Logical Volumes (LVs) to create in" # translate me !
_LvmLvNumBody2="Den sidste (eller eneste) LV vil automatisk bruge den tilgængelige plads på Volume Group."
_LvmLvNameBody1="Indtast navn for det Logical Volume (LV) der skal oprettes.\n\nDette svarer til navnet/mærkaten på en partition."
_LvmLvNameBody2="BEMÆRK: Dette LV vil automatisk optage resten af den ledige plads på Volume Group"
......
......@@ -111,7 +111,7 @@ _LvmPvConfBody2="met de volgende partities:"
_LvmPvActBody1="Aanmaak en activering van Volume Groep"
_LvmPvDoneBody1="Volume Groep"
_LvmPvDoneBody2="werd aangemaakt"
_LvmLvNumBody1="Gebruik [spatie] om het aantal logische volumes (LVM) te selecteren die moeten worden aangemaakt"
_LvmLvNumBody1="Enter the number of Logical Volumes (LVs) to create in" # translate me !
_LvmLvNumBody2="De laatste (of enige) LV zal automatisch 100% van de overblijvende ruimte innemen in de Volume Groep."
_LvmLvNameBody1="Om een Logisch Volume (LV) aan te maken geef je een naam in.\n\nDit is zoals het geven van een naam/label aan een partitie."
_LvmLvNameBody2="NOTE: Deze LV zal alle overgebleven ruimte van de Volume Groep innemen"
......
......@@ -111,7 +111,7 @@ _LvmPvConfBody2="with the following partitions:"
_LvmPvActBody1="Creating and activating Volume Group"
_LvmPvDoneBody1="Volume Group"
_LvmPvDoneBody2="has been created"
_LvmLvNumBody1="Use [Spacebar] to select the number of Logical Volumes (LVs) to create in"
_LvmLvNumBody1="Enter the number of Logical Volumes (LVs) to create in"
_LvmLvNumBody2="The last (or only) LV will automatically use 100% of the remaining space in the Volume Group."
_LvmLvNameBody1="Enter the name of the Logical Volume (LV) to create.\n\nThis is like setting a name / label for a partition."
_LvmLvNameBody2="NOTE: This LV will automatically use up all space remaining on the Volume Group"
......
......@@ -112,7 +112,7 @@ _LvmPvConfBody2="avec les partitions suivantes :"
_LvmPvActBody1="Création et activation du groupe de volume"
_LvmPvDoneBody1="Le groupe de volume"
_LvmPvDoneBody2="a été créé"
_LvmLvNumBody1="Utiliser [barre espace] pour sélectionner le nombre de volumes logiques (LVs) à créer dans"
_LvmLvNumBody1="Enter the number of Logical Volumes (LVs) to create in" # translate me !
_LvmLvNumBody2="Le dernier (ou seul) LV utilisera automatiquement 100% de l'espace restant dans le groupe de volume."
_LvmLvNameBody1="Entrer le nom du volume logique (LV) à créer.\n\nCeci ressemble à une configuration de nom / d'étiquette pour une partition."
_LvmLvNameBody2="NOTE : Ce LV utilisera automatiquement tout l'espace restant dans le groupe de volume"
......
......@@ -110,8 +110,8 @@ _LvmPvConfBody2="bestehend aus folgenden Partitionen:"
_LvmPvActBody1="Erzeuge und aktiviere Volume Group"
_LvmPvDoneBody1="Volume Group"
_LvmPvDoneBody2="wurde erzeugt."
_LvmLvNumBody1="Mit [Leerzeichen] die Anzahl der zu erstellenden Logical Volumes (LVs) wählen."
_LvmLvNumBody2="Das letzte (oder das einzige) LV wird automatisch 100% des verblieben Speicherplatzes verwenden."
_LvmLvNumBody1="Geben Sie die Anzahl von Logical Volumes (LVs) an für Volume Group"
_LvmLvNumBody2="Das letzte (oder das einzige) LV wird automatisch 100% des verbleibenden Speicherplatzes verwenden."
_LvmLvNameBody1="Geben Sie den Namen des zu erstellenden LV.\n\n Dies is der Namenvergabe für eine Partition ähnlich."
_LvmLvNameBody2="HINWEIS: Dieses LV wird automatisch den gesamten verfügbaren Speicherplatz auf der Volume Group einnehmen."
_LvmLvNameErrBody="Ungültiger Name eingegeben. Der Name eines LV muss alpha-numerisch sein, darf jedoch keine Leerzeichen einthalten oder mit '/' beginenn."
......
......@@ -110,7 +110,7 @@ _LvmPvConfBody2="a következő partíciókkal:"
_LvmPvActBody1="Kötetcsoport elkészítése és aktiválása"
_LvmPvDoneBody1="A"
_LvmPvDoneBody2="kötetcsoport létrehozva"
_LvmLvNumBody1="Használd a [Szóköz] billentyűt a következőhöz létrehozandó logikai kötet\(ek\) \(LV\) számának kiválasztásához"
_LvmLvNumBody1="Enter the number of Logical Volumes (LVs) to create in" # translate me !
_LvmLvNumBody2="Az utolsó \(vagy egyetlen\) logikai kötet automatikusan felhasználja a kötetcsoportban fennmaradó összes helyet."
_LvmLvNameBody1="Írd be a létrehozandó logikai kötet \(LV\) nevét.\n\nEz olyan, mint mikor egy partíciónak nevet / címkét adunk."
_LvmLvNameBody2="MEGJEGYZÉS: Ez a logikai kötet \(LV\) automatikusan használatba veszi az összes fennmaradó helyet a kötetcsoportban."
......
......@@ -111,7 +111,7 @@ _LvmPvConfBody2="con le seguenti partizioni:"
_LvmPvActBody1="Creazione ed attivazione del Gruppo di Volumi in corso"
_LvmPvDoneBody1="Il Gruppo di Volumi"
_LvmPvDoneBody2="è stato creato"
_LvmLvNumBody1="Usaro [Spazio] per selezionare il numero di Volumi Logici da creare(LVs) in"
_LvmLvNumBody1="Enter the number of Logical Volumes (LVs) to create in" # translate me !
_LvmLvNumBody2="L'ultimo (o l'unico) LV userà il 100% dello spazio disponibile nel Volume Group"
_LvmLvNameBody1="Inserisci un nome per il nuovo Volume Logico (LV).\n\nQuesta operazione equivale ad assegnare un nome / una etichetta ad una partizione."
_LvmLvNameBody2="ATTENZIONE: Questo LV utilizzerà automaticamente tutto lo spazio rimanente nel Gruppo di Volumi"
......
......@@ -111,7 +111,7 @@ _LvmPvConfBody2="com as seguintes partições:"
_LvmPvActBody1="Criando e activando Grupo de Volume"
_LvmPvDoneBody1="Grupo de Volume"
_LvmPvDoneBody2="foi criado"
_LvmLvNumBody1="Utilize a [barra de espaço] para seleccionar o número de volumes lógicos (LV) para criá-los"
_LvmLvNumBody1="Enter the number of Logical Volumes (LVs) to create in" # translate me !
_LvmLvNumBody2="O último (ou único) LV irá automaticamente utilizar 100% do espaço restante no Grupo de Volume (VG)."
_LvmLvNameBody1="Insira o nome do Volume Lógico (LV) para criar.\n\nIsto é como criar o nome '/' do rótulo para uma partição."
_LvmLvNameBody2="NOTA: Este Volume Lógico (LV) irá automaticamente usar todo o espaço restante no Grupo de Volume (Volume Group)"
......
......@@ -111,7 +111,7 @@ _LvmPvConfBody2="com as seguintes partições:"
_LvmPvActBody1="Criando e ativando o Grupo de Volume"
_LvmPvDoneBody1="O Grupo de Volume"
_LvmPvDoneBody2="foi criado"
_LvmLvNumBody1="Utilize a [barra de espaço] para selecionar o número de volumes lógicos (LV) para criá-los"
_LvmLvNumBody1="Enter the number of Logical Volumes (LVs) to create in" # translate me !
_LvmLvNumBody2="O último (ou único) LV irá automaticamente utilizar 100% do espaço restante no Grupo de Volume (VG)."
_LvmLvNameBody1="Insira o nome do Volume Lógico (LV) para criar.\n\nIsto é como criar o nome '/' do rótulo para uma partição."
_LvmLvNameBody2="NOTA: Este Volume Lógico (LV) irá automaticamente usar todo o espaço restante no Grupo de Volume (Volume Group)"
......
......@@ -111,7 +111,7 @@ _LvmPvConfBody2="со следующими разделами:"
_LvmPvActBody1="Создание и активация Группы Томов"
_LvmPvDoneBody1="Группа Томов"
_LvmPvDoneBody2="успешно создана"
_LvmLvNumBody1="Используйте [Пробел] для выбора числа создаваемых Логических Томов (LVs)"
_LvmLvNumBody1="Enter the number of Logical Volumes (LVs) to create in" # translate me !
_LvmLvNumBody2="Последний (или единственный) Логический Том (LV) автоматически использует 100% оставшегося места в Группе Томов."
_LvmLvNameBody1="Введите название создаваемого Логического Тома (LV).\n\nЭто похоже на именование раздела или задание ему метки."
_LvmLvNameBody2="ПРИМЕЧАНИЕ: Этот Логический Том (LV) автоматически использует все отавшееся место в Группе Томов"
......
......@@ -111,7 +111,7 @@ _LvmPvConfBody2="con las siguientes particiones:"
_LvmPvActBody1="Creando y activando grupo de volúmenes"
_LvmPvDoneBody1="El grupo de volúmenes"
_LvmPvDoneBody2="se ha creado"
_LvmLvNumBody1="Utilice [BarraEspaciadora] para elegir el número de volúmenes lógicos (VLs) que crear"
_LvmLvNumBody1="Enter the number of Logical Volumes (LVs) to create in" # translate me !
_LvmLvNumBody2="El último (o único) VL usará de forma automática el 100% del espacio restante en el grupo de volúmenes."
_LvmLvNameBody1="Introduzca el nombre del volumen lógico (VL) a crear.\n\nEs como asignar un nombre o una etiqueta a una partición."
_LvmLvNameBody2="ATENCIÓN: Este volumen lógico utilizará automáticamente todo el espacio restante del grupo de volúmenes"
......
......@@ -619,10 +619,10 @@ lvm_create() {
# Once all the partitions have been selected, show user. On confirmation, use it/them in 'vgcreate' command.
# Also determine the size of the VG, to use for creating LVs for it.
DIALOG " $_LvmCreateVG " --yesno "\n$_LvmPvConfBody1${LVM_VG} $_LvmPvConfBody2${VG_PARTS}\n " 0 0
DIALOG " $_LvmCreateVG " --yesno "\n$_LvmPvConfBody1 [${LVM_VG}] $_LvmPvConfBody2\n${VG_PARTS}\n " 0 0
if [[ $? -eq 0 ]]; then
DIALOG " $_LvmCreateVG " --infobox "\n$_LvmPvActBody1${LVM_VG}.$_PlsWaitBody\n " 0 0
DIALOG " $_LvmCreateVG " --infobox "\n$_LvmPvActBody1 [${LVM_VG}].\n$_PlsWaitBody\n " 0 0
sleep 1
vgcreate -f ${LVM_VG} ${VG_PARTS} >/dev/null 2>$ERR
check_for_error "vgcreate -f ${LVM_VG} ${VG_PARTS}" "$?"
......@@ -634,18 +634,18 @@ lvm_create() {
# Convert the VG size into GB and MB. These variables are used to keep tabs on space available and remaining
[[ ${VG_SIZE_TYPE:0:1} == "G" ]] && LVM_VG_MB=$(( VG_SIZE * 1000 )) || LVM_VG_MB=$VG_SIZE
DIALOG " $_LvmCreateVG " --msgbox "\n$_LvmPvDoneBody1 '${LVM_VG}' $_LvmPvDoneBody2 (${VG_SIZE} ${VG_SIZE_TYPE}).\n " 0 0 || return 0
DIALOG " $_LvmCreateVG " --msgbox "\n$_LvmPvDoneBody1 '${LVM_VG}' (${VG_SIZE} ${VG_SIZE_TYPE}) $_LvmPvDoneBody2.\n " 0 0 || return 0
fi
#
# Once VG created, create Logical Volumes
#
# Specify number of Logical volumes to create.
DIALOG " $_LvmCreateVG " --radiolist "\n$_LvmLvNumBody1 ${LVM_VG}. $_LvmLvNumBody2\n " 0 0 9 \
"1" "-" off "2" "-" off "3" "-" off "4" "-" off "5" "-" off "6" "-" off "7" "-" off "8" "-" off "9" "-" off 2>${ANSWER}
[[ $(cat ${ANSWER}) == "" ]] && return 1 || NUMBER_LOGICAL_VOLUMES=$(cat ${ANSWER})
while [[ ! $NUMBER_LOGICAL_VOLUMES == "" ]]; do
# Specify number of Logical volumes to create.
DIALOG " $_LvmCreateVG " --inputbox "\n$_LvmLvNumBody1 [${LVM_VG}]. $_LvmLvNumBody2\n " 0 0 2>${ANSWER}
NUMBER_LOGICAL_VOLUMES=$(cat ${ANSWER})
done
# Loop while the number of LVs is greater than 1. This is because the size of the last LV is automatic.
while [[ $NUMBER_LOGICAL_VOLUMES -gt 1 ]]; do
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment