Zentyal Forum, Linux Small Business Server
International => Magyar => Topic started by: hobbim on June 27, 2013, 07:52:18 pm
-
Sziasztok!
A zentyal oktató videók segítségével kialakítottam egy RAID 1 tömböt, azon logikai lemez kezeléssel.
2 db 1 Tb -os HDD lett párba állítva. Szeretném a System, Home, és Swap partíciókon kívüli ~990 Gb területet is felhasználni.
A felcsatolását azonban nem tudom hogyan kell megtennem, hogy azután a grafikus felületen is látszódjon, és tudjak rajta megosztásokat létrehozni, lehetőleg méretkorlátozás nélkül.
Hálás köszönet a segítségetekért!
-
kellene a következő parancs eredménye, hogy segíteni tudjak:
nyiss terminált és futtasd le a következő parancsot:
df -h
-
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg01-system 4,6G 2,4G 2,1G 54% /
udev 985M 4,0K 985M 1% /dev
tmpfs 398M 448K 397M 1% /run
none 50M 0 50M 0% /run/lock
none 993M 4,0K 993M 1% /run/shm
/dev/mapper/vg01-home 9,2G 7,4G 1,4G 85% /home
/dev/md0 938M 91M 800M 11% /boot
-
kellene még a:
sudo fdisk -l
-
Szia Julio!
sudo fdisk -l
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00088f96
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 1953791 975872 fd Linux raid autodetect
/dev/sda2 1953792 1953523711 975784960 fd Linux raid autodetect
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0003e376
Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 1953791 975872 fd Linux raid autodetect
/dev/sdb2 1953792 1953523711 975784960 fd Linux raid autodetect
Disk /dev/md1: 999.1 GB, 999069384704 bytes
2 heads, 4 sectors/track, 243913424 cylinders, total 1951307392 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/md1 doesn't contain a valid partition table
Disk /dev/md0: 998 MB, 998703104 bytes
2 heads, 4 sectors/track, 243824 cylinders, total 1950592 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/md0 doesn't contain a valid partition table
Disk /dev/mapper/vg01-system: 4999 MB, 4999610368 bytes
255 heads, 63 sectors/track, 607 cylinders, total 9764864 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg01-system doesn't contain a valid partition table
Disk /dev/mapper/vg01-swap: 3997 MB, 3997171712 bytes
255 heads, 63 sectors/track, 485 cylinders, total 7806976 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg01-swap doesn't contain a valid partition table
Disk /dev/mapper/vg01-home: 976.4 GB, 976366862336 bytes
255 heads, 63 sectors/track, 118703 cylinders, total 1906966528 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg01-home doesn't contain a valid partition table
De időközben sikerült haladni és megnöveltem a HOME könyvtár méretét 900Gb-al.
lvresize -L +900GB /dev/vg01/home
és a
resize2fs /dev/vg01/home
parancsokkal.
Ez volt előtte:
lvm> vgdisplay
--- Volume group ---
VG Name vg01
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 4
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 3
Max PV 0
Cur PV 1
Act PV 1
VG Size 930,45 GiB
PE Size 4,00 MiB
Total PE 238196
Alloc PE / Size 4529 / 17,69 GiB
Free PE / Size 233667 / 912,76 GiB
VG UUID g9Qqkd-M3YT-1IHX-ToUn-ZML6-ZaK5-YX3fLl
fdisk -l részlet:
Disk /dev/mapper/vg01-home: 9999 MB, 9999220736 bytes
255 heads, 63 sectors/track, 1215 cylinders, total 19529728 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
lvm> lvresize -L +900GB /dev/vg01/home
Extending logical volume home to 909,31 GiB
Logical volume home successfully resized
lvm> lvdisplay
--- Logical volume ---
LV Name /dev/vg01/home
VG Name vg01
LV UUID 5xBDQ5-B1Nq-lGUc-mTwH-rHnq-P12t-AATceV
LV Write Access read/write
LV Status available
# open 1
LV Size 909,31 GiB
Current LE 232784
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:2
De a könyvtár továbbra is 10 Gb-osnak látszott.
# df -kh
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg01-system 4,6G 2,4G 2,1G 54% /
udev 985M 4,0K 985M 1% /dev
tmpfs 398M 448K 397M 1% /run
none 50M 0 50M 0% /run/lock
none 993M 4,0K 993M 1% /run/shm
/dev/mapper/vg01-home 9,2G 7,4G 1,4G 85% /home
/dev/md0 938M 91M 800M 11% /boot
Amíg le nem formatáltam...
# resize2fs /dev/vg01/home
resize2fs 1.42 (29-Nov-2011)
Filesystem at /dev/vg01/home is mounted on /home; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 57
The filesystem on /dev/vg01/home is now 238370816 blocks long.
root@diadatsrv01:/home/rendszergazda# df -kh
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg01-system 4,6G 2,4G 2,1G 54% /
udev 985M 4,0K 985M 1% /dev
tmpfs 398M 448K 397M 1% /run
none 50M 0 50M 0% /run/lock
none 993M 4,0K 993M 1% /run/shm
/dev/mapper/vg01-home 896G 7,5G 852G 1% /home
/dev/md0 938M 91M 800M 11% /boot
Ez az oldal segített:
http://wiki.proarcok.com/index.php/Lemezkezel%C3%A9s#Grafikus_eszk.C3.B6zzel (http://wiki.proarcok.com/index.php/Lemezkezel%C3%A9s#Grafikus_eszk.C3.B6zzel)
A kérdés hogy hogyan tudok csinálni rá egy méretkorlát nélküli megosztást?
-
Létrehozol egy user-t 0-ás quota-val,
majd a fájlmegosztásnál új megosztás,
a user-t pedig hozzáadod rw jogkörrel.
-
SZia Julio!
Köszönöm a segítségedet sikerült megcsinálni... :)