Editing
Adaugare Disk
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Adaugare HDD === Procedam la introducerea noului disk virtual in hypervisor (ex Proxmox VM): <gallery> File:Pve01.png File:Pve02.png File:Pve03b.png </gallery> Fara a restarta masina virtuala si fara a fi nevoie de rescanarea interfetelor scsi, noul disk apare in OS: <code class="mw-code mw-highlight plainlinks" style="display:block"><!-- --># lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS ...... sda 8:0 0 20G 0 disk ├─sda1 8:1 0 1M 0 part ├─sda2 8:2 0 1.8G 0 part /boot └─sda3 8:3 0 18.2G 0 part   └─ubuntu--vg-ubuntu--lv 253:0 0 18.2G 0 lvm / '''sdb 8:16 0 10G 0 disk''' ...... </code> ==== Partitionare si Formatare cu fisk==== Pentru partitionarea si formatarea sdb vom folosi in ceea ce urmeaza utilitarul fDisk. Comenzile introduse for fi marcate in <span style="color:#f00">'''bold'''</span>: <blockquote> Atentie !!!<br> Pentru partitioanarea si formatarea disk-urilor mai mari de 2TB se va folosii utilitarul Parted </blockquote> <code class="mw-code mw-highlight plainlinks" style="display:block"><!-- --># <span style="color:#f00">'''fdisk /dev/sdb'''</span>   Welcome to fdisk (util-linux 2.37.2). Changes will remain in memory only, until you decide to write them. Be careful before using the write command.   Device does not contain a recognized partition table. Created a new DOS disklabel with disk identifier 0x94288925.   Command (m for help): <span style="color:#f00">'''n'''</span> Partition type   p primary (0 primary, 0 extended, 4 free)   e extended (container for logical partitions) Select (default p): <span style="color:#f00">'''p'''</span> Partition number (1-4, default 1): <span style="color:#f00">'''1'''</span> First sector (2048-20971519, default 2048): <span style="color:#f00"><--ENTER</span> Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-20971519, default 20971519): <span style="color:#f00"><--ENTER</span>   Created a new partition 1 of type 'Linux' and of size 10 GiB.   Command (m for help): <span style="color:#f00">'''t'''</span> Selected partition 1 Hex code or alias (type L to list all): <span style="color:#f00">'''8e'''</span> Changed type of partition 'Linux' to 'Linux LVM'.   Command (m for help): <span style="color:#f00">'''w'''</span> The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks. </code> ==== Partitionare si Formatare cu parted ==== <code class="mw-code mw-highlight plainlinks" style="display:block"><!-- --> to be added </code> ==== Adaugare disk la nivel de OS ==== Dupa partitionarea la nivel de disk, creem partitia la nivel de OS: <code class="mw-code mw-highlight plainlinks" style="display:block"><!-- --># pvcreate /dev/sdb1   Physical volume "/dev/sdb1" successfully created. </code> Facem o noua listare pentru a fi siguri ca partitia a fost adaugata: <code class="mw-code mw-highlight plainlinks" style="display:block"><!-- --># lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS ...... sda 8:0 0 20G 0 disk ├─sda1 8:1 0 1M 0 part ├─sda2 8:2 0 1.8G 0 part /boot └─sda3 8:3 0 18.2G 0 part   └─ubuntu--vg-ubuntu--lv 253:0 0 18.2G 0 lvm / sdb 8:16 0 10G 0 disk '''└─sdb1 8:17 0 10G 0 part''' ...... </code>
Summary:
Please note that all contributions to Linux Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Linux Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Navigation
Main page
Aplicatii Linux
UrBackup
rSyslog
KeepAlived
DHCP
BIND DNS
USB over IP
Hardware Linux
Adaugare Disk
Extindere Disk
Docker
Instalare Docker CE
Portainer
Container UrBackup
Container PiHole
Snippets
History Command
Access Control List
Tools
What links here
Related changes
Special pages
Page information