سلام آقایان.
من یک سرور دارم که میخوام روش آپلود سنتر داشته باشم.
این سرور من ۲ تا هارد ۲ تراپایت داره. می خوام طوری تنظیم کنم که فایل های کاربران روی همین ۲ تا هارد آپلود بشه.
سرور من centos 6 , Directadmin است.
نتیجه دستور fdisk -l را همینجا میذارم.
کد:[root@server ~]# fdisk -l WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted. Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00000000 Disk /dev/sda: 120.0 GB, 120034123776 bytes 255 heads, 63 sectors/track, 14593 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00022bbe Device Boot Start End Blocks Id System /dev/sda1 * 1 66 523264 fd Linux raid autodetect Partition 1 does not end on cylinder boundary. /dev/sda2 66 1086 8190976 82 Linux swap / Solaris /dev/sda3 1086 14593 108499968 fd Linux raid autodetect WARNING: GPT (GUID Partition Table) detected on '/dev/sdd'! The util fdisk doesn't support GPT. Use GNU Parted. Disk /dev/sdd: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00000000 Disk /dev/sdb: 120.0 GB, 120034123776 bytes 255 heads, 63 sectors/track, 14593 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0002e770 Device Boot Start End Blocks Id System /dev/sdb1 * 1 66 523264 fd Linux raid autodetect Partition 1 does not end on cylinder boundary. /dev/sdb2 66 1086 8190976 82 Linux swap / Solaris /dev/sdb3 1086 14593 108499968 fd Linux raid autodetect Disk /dev/md3: 111.1 GB, 111103901696 bytes 2 heads, 4 sectors/track, 27124976 cylinders Units = cylinders of 8 * 512 = 4096 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/md1: 535 MB, 535756800 bytes 2 heads, 4 sectors/track, 130800 cylinders Units = cylinders of 8 * 512 = 4096 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000کد:داخل fstab هم این نوشته ها هست.من چطوری می تونم این کارو انجام بدم که فایل ها روی یکی از این ۲ ترابایت آپلود بشه ؟
کد:cat /etc/fstab # <file system> <mount point> <type> <options> <dump> <pass> /dev/md3 / ext4 errors=remount-ro 0 1 /dev/md1 /boot ext3 errors=remount-ro 0 1 /dev/sda2 swap swap defaults 0 0 /dev/sdb2 swap swap defaults 0 0 proc /proc proc defaults 0 0 sysfs /sys sysfs defaults 0 0 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts defaults 0 0
چطوری باید پارتیشن بندی کنم ؟
در ضمن همان طوری که در نتیجه fdsik می بینید سرور دارای رید است.
سایت بر روی /home که بر روی /dev/md3 هست هاست شده و فایل های کنونی بر روی این پارتیشن است.





پاسخ با نقل قول