login as: root root@192.168.0.57's password: Last login: Tue Jun 11 15:48:03 2019 from 192.168.0.203 ************ Welcome to NethServer ************ This is a NethServer installation. Before editing configuration files, be aware of the automatic events and templates system. http://docs.nethserver.org *********************************************** [root@localhost ~]# cat /etc/fstab #------------------------------------------------------------ # BE CAREFUL WHEN MODIFYING THIS FILE! It is updated automatically # by the NethServer software. A few entries are updated during # the template processing of the file and white space is removed, # but otherwise changes to the file are preserved. #------------------------------------------------------------ /dev/mapper/VolGroup-lv_root / ext4 defaults,acl,user_xattr 1 1 UUID=82416343-93a0-44e5-ba6b-5dc0791b5e62 /boot ext3 defaults 1 2 /dev/mapper/VolGroup-lv_swap swap swap defaults 0 0 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 [root@localhost ~]# fdisk -l Disk /dev/sda: 53.7 GB, 53687091200 bytes 255 heads, 63 sectors/track, 6527 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: 0x000d06c4 Device Boot Start End Blocks Id System /dev/sda1 * 1 66 524288 fd Linux raid autodetect Partition 1 does not end on cylinder boundary. /dev/sda2 66 6528 51903488 fd Linux raid autodetect Disk /dev/sdb: 53.7 GB, 53687091200 bytes 255 heads, 63 sectors/track, 6527 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: 0x000f1f56 Device Boot Start End Blocks Id System /dev/sdb1 * 1 66 524288 fd Linux raid autodetect Partition 1 does not end on cylinder boundary. /dev/sdb2 66 6528 51903488 fd Linux raid autodetect Disk /dev/sdc: 107.4 GB, 107374182400 bytes 255 heads, 63 sectors/track, 13054 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: 0x00000000 Disk /dev/sdd: 107.4 GB, 107374182400 bytes 255 heads, 63 sectors/track, 13054 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: 0x00000000 Disk /dev/md2: 53.1 GB, 53115617280 bytes 2 heads, 4 sectors/track, 12967680 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/mapper/VolGroup-lv_swap: 2113 MB, 2113929216 bytes 255 heads, 63 sectors/track, 257 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: 0x00000000 Disk /dev/mapper/VolGroup-lv_root: 51.0 GB, 50969182208 bytes 255 heads, 63 sectors/track, 6196 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: 0x00000000 Disk /dev/md1: 536 MB, 536805376 bytes 2 heads, 4 sectors/track, 131056 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 [root@localhost ~]# cat /proc/mdstat Personalities : [raid1] md1 : active raid1 sda1[0] sdb1[1] 524224 blocks super 1.0 [2/2] [UU] md2 : active raid1 sdb2[1] sda2[0] 51870720 blocks super 1.1 [2/2] [UU] bitmap: 1/1 pages [4KB], 65536KB chunk unused devices: [root@localhost ~]# cat /etc/mdadm.conf # mdadm.conf written out by anaconda MAILADDR root AUTO +imsm +1.x -all ARRAY /dev/md1 level=raid1 num-devices=2 UUID=44110dab:705d1842:07064f76:702a2c72 ARRAY /dev/md2 level=raid1 num-devices=2 UUID=2f878ec9:7b884fd2:ae073b96:6953a0c5 [root@localhost ~]# pvdisplay --- Physical volume --- PV Name /dev/md2 VG Name VolGroup PV Size 49.47 GiB / not usable 31.00 MiB Allocatable yes (but full) PE Size 32.00 MiB Total PE 1582 Free PE 0 Allocated PE 1582 PV UUID xFPeSP-FoYO-e2ye-JKh0-NxlN-4Se9-f6QJvV [root@localhost ~]# vgdisplay --- Volume group --- VG Name VolGroup System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 3 VG Access read/write VG Status resizable MAX LV 0 Cur LV 2 Open LV 2 Max PV 0 Cur PV 1 Act PV 1 VG Size 49.44 GiB PE Size 32.00 MiB Total PE 1582 Alloc PE / Size 1582 / 49.44 GiB Free PE / Size 0 / 0 VG UUID Boeaty-XVQQ-ftjU-PrK8-p8QL-Nnn6-2IthZ2 [root@localhost ~]# lvdisplay --- Logical volume --- LV Path /dev/VolGroup/lv_swap LV Name lv_swap VG Name VolGroup LV UUID 8fbo72-lQdo-UsTK-m86t-qJaT-mxmN-B9kmXG LV Write Access read/write LV Creation host, time localhost.localdomain, 2019-06-11 11:03:20 +0200 LV Status available # open 1 LV Size 1.97 GiB Current LE 63 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:0 --- Logical volume --- LV Path /dev/VolGroup/lv_root LV Name lv_root VG Name VolGroup LV UUID 3vudZ4-HN9L-WFcf-80g1-Y3cC-dB1x-V1AVlD LV Write Access read/write LV Creation host, time localhost.localdomain, 2019-06-11 11:03:21 +0200 LV Status available # open 1 LV Size 47.47 GiB Current LE 1519 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:1 [root@localhost ~]# yum -y install parted Loaded plugins: changelog, fastestmirror, nethserver_events, presto Setting up Install Process Loading mirror speeds from cached hostfile * centos-base: mirror.crazynetwork.it * centos-updates: mirror.crazynetwork.it * nethforge: mirror.alpix.eu * nethserver-base: mirror.alpix.eu * nethserver-updates: mirror.alpix.eu Resolving Dependencies --> Running transaction check ---> Package parted.x86_64 0:2.1-29.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================= Package Arch Version Repository Size ================================================================================= Installing: parted x86_64 2.1-29.el6 centos-base 608 k Transaction Summary ================================================================================= Install 1 Package(s) Total download size: 608 k Installed size: 2.2 M Downloading Packages: Setting up and reading Presto delta metadata Processing delta metadata Package(s) data still to download: 608 k parted-2.1-29.el6.x86_64.rpm | 608 kB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : parted-2.1-29.el6.x86_64 1/1 Verifying : parted-2.1-29.el6.x86_64 1/1 Installed: parted.x86_64 0:2.1-29.el6 Complete! [root@localhost ~]# parted -s -a optimal /dev/sdc mklabel msdos [root@localhost ~]# parted -s -a optimal /dev/sdc mkpart primary 1 100% [root@localhost ~]# parted -s -a optimal /dev/sdd mklabel msdos [root@localhost ~]# parted -s -a optimal /dev/sdd mkpart primary 1 100% [root@localhost ~]# mdadm --create --verbose /dev/md3 --level=1 --raid-devices=2 /dev/sdc1 /dev/sdd1 mdadm: Note: this array has metadata at the start and may not be suitable as a boot device. If you plan to store '/boot' on this device please ensure that your boot-loader understands md/v1.x metadata, or use --metadata=0.90 mdadm: size set to 104791040K Continue creating array? y mdadm: Defaulting to version 1.2 metadata mdadm: array /dev/md3 started. [root@localhost ~]# cp /etc/mdadm.conf /etc/mdadm.conf.bak [root@localhost ~]# cat << EOF > /etc/mdadm.conf > MAILADDR root > AUTO +imsm +1.x -all > EOF [root@localhost ~]# mdadm --detail --scan >> /etc/mdadm.conf [root@localhost ~]# pvcreate /dev/md3 Physical volume "/dev/md3" successfully created [root@localhost ~]# vgcreate VolGroup01 /dev/md3 Volume group "VolGroup01" successfully created [root@localhost ~]# lvcreate -l 100%FREE -n lv_ibay VolGroup01 Logical volume "lv_ibay" created. [root@localhost ~]# mkfs.ext4 /dev/VolGroup01/lv_ibay mke2fs 1.41.12 (17-May-2010) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 6553600 inodes, 26196992 blocks 1309849 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=4294967296 800 block groups 32768 blocks per group, 32768 fragments per group 8192 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 20480000, 23887872 Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 25 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. [root@localhost ~]# mkdir /var/lib/nethserver/ibay.TEMP [root@localhost ~]# chown --reference=/var/lib/nethserver/ibay /var/lib/nethserver/ibay.TEMP [root@localhost ~]# chmod --reference=/var/lib/nethserver/ibay /var/lib/nethserver/ibay.TEMP [root@localhost ~]# mount /dev/VolGroup01/lv_ibay /var/lib/nethserver/ibay.TEMP [root@localhost ~]# rsync -avz /var/lib/nethserver/ibay/ /var/lib/nethserver/ibay.TEMP/ sending incremental file list ./ test/ test/DOS/ test/DOS/FD12CD.iso test/Linux/ test/Linux/64-bit/ test/Linux/64-bit/linuxmint-19-mate-64bit-v2.iso.md5 test/Linux/64-bit/nethserver-6.10-x86_64.iso test/Linux/64-bit/nethserver-6.10-x86_64.iso.md5 test/Linux/64-bit/nethserver-7.6.1810-x86_64.iso test/Linux/64-bit/nethserver-7.6.1810-x86_64.iso.md5 test/Linux/64-bit/ubuntu-mate-18.04.1-desktop-amd64.iso.md5 test/Utility/ test/Utility/EaseUS Todo Backup 6.5 Linux ISO.iso test/Utility/EaseUS Todo Backup 6.5 Linux ISO.iso.md5 test/Utility/EaseUs_Todo_Backup_3.5_WINPE_32bit.iso test/Utility/EaseUs_Todo_Backup_3.5_WINPE_32bit.iso.md5 test/Utility/Paragon Backup and Recovery 2014 Free - RM Linux (x386).iso test/Utility/Paragon Backup and Recovery 2014 Free - RM Linux (x386).iso.md5 test/Utility/Paragon Backup and Recovery 2014 Free - RM Linux (x64 BIOS).iso test/Utility/Paragon Backup and Recovery 2014 Free - RM Linux (x64 BIOS).iso.md5 test/Utility/Paragon Backup and Recovery 2014 Free - RM Linux (x64 EFI).iso test/Utility/Paragon Backup and Recovery 2014 Free - RM Linux (x64 EFI).iso.md5 test/Utility/Paragon Backup and Recovery 2014 Free - RM Microsoft Windows PE (x64).iso test/Utility/Paragon Backup and Recovery 2014 Free - RM Microsoft Windows PE (x64).iso.md5 test/Utility/Windows PE 3.1 (amd64).iso test/Utility/Windows PE 3.1 (amd64).iso.md5 test/Utility/Windows PE 3.1 (x86).iso test/Utility/Windows PE 3.1 (x86).iso.md5 test/Utility/trinity-rescue-kit.3.4-build-372.iso test/Utility/trinity-rescue-kit.3.4-build-372.iso.md5 test/Utility/Temp/ test/Utility/Temp/Acronis_True_Image_Acronis.Backup.&.Recovery.Workstation.&.Server.v10.0.12703.with.Universal.Restore.en.zip test/Utility/Temp/Acronis_True_Image_Acronis.Backup.&.Recovery.Workstation.&.Server.v10.0.12703.with.Universal.Restore.en.zip.md5 test/Utility/Temp/FLOPPY_POWER.iso test/Utility/Temp/FLOPPY_POWER.iso.md5 test/Utility/Temp/Hiren_s.BootCD.15.2.iso test/Utility/Temp/Hiren_s.BootCD.15.2.iso.md5 sent 4503681379 bytes received 628 bytes 9572119.04 bytes/sec total size is 4502167033 speedup is 1.00 [root@localhost ~]# umount /var/lib/nethserver/ibay.TEMP [root@localhost ~]# mv /var/lib/nethserver/ibay /var/lib/nethserver/ibay.OLD [root@localhost ~]# mv /var/lib/nethserver/ibay.TEMP /var/lib/nethserver/ibay [root@localhost ~]# cp /etc/fstab /etc/fstab.bak [root@localhost ~]# echo /dev/mapper/VolGroup01-lv_ibay /var/lib/nethserver/ibay/ ext4 defaults,acl,user_xattr 1 1>> /etc/fstab [root@localhost ~]# ll /var/lib/nethserver/ibay total 0 [root@localhost ~]# mount -a [root@localhost ~]# ll /var/lib/nethserver/ibay total 20 drwx------ 2 root root 16384 Jun 11 16:11 lost+found drwxrws--- 5 admin locals 4096 Jun 11 15:48 test [root@localhost ~]# cat /etc/fstab #------------------------------------------------------------ # BE CAREFUL WHEN MODIFYING THIS FILE! It is updated automatically # by the NethServer software. A few entries are updated during # the template processing of the file and white space is removed, # but otherwise changes to the file are preserved. #------------------------------------------------------------ /dev/mapper/VolGroup-lv_root / ext4 defaults,acl,user_xattr 1 1 UUID=82416343-93a0-44e5-ba6b-5dc0791b5e62 /boot ext3 defaults 1 2 /dev/mapper/VolGroup-lv_swap swap swap defaults 0 0 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 /dev/mapper/VolGroup01-lv_ibay /var/lib/nethserver/ibay/ ext4 defaults,acl,user_xattr 1 [root@localhost ~]# fdisk -l Disk /dev/sda: 53.7 GB, 53687091200 bytes 255 heads, 63 sectors/track, 6527 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: 0x000d06c4 Device Boot Start End Blocks Id System /dev/sda1 * 1 66 524288 fd Linux raid autodetect Partition 1 does not end on cylinder boundary. /dev/sda2 66 6528 51903488 fd Linux raid autodetect Disk /dev/sdb: 53.7 GB, 53687091200 bytes 255 heads, 63 sectors/track, 6527 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: 0x000f1f56 Device Boot Start End Blocks Id System /dev/sdb1 * 1 66 524288 fd Linux raid autodetect Partition 1 does not end on cylinder boundary. /dev/sdb2 66 6528 51903488 fd Linux raid autodetect Disk /dev/sdc: 107.4 GB, 107374182400 bytes 255 heads, 63 sectors/track, 13054 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: 0x0001cbf2 Device Boot Start End Blocks Id System /dev/sdc1 1 13055 104856576 83 Linux Disk /dev/sdd: 107.4 GB, 107374182400 bytes 255 heads, 63 sectors/track, 13054 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: 0x0008446a Device Boot Start End Blocks Id System /dev/sdd1 1 13055 104856576 83 Linux Disk /dev/md2: 53.1 GB, 53115617280 bytes 2 heads, 4 sectors/track, 12967680 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/mapper/VolGroup-lv_swap: 2113 MB, 2113929216 bytes 255 heads, 63 sectors/track, 257 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: 0x00000000 Disk /dev/mapper/VolGroup-lv_root: 51.0 GB, 50969182208 bytes 255 heads, 63 sectors/track, 6196 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: 0x00000000 Disk /dev/md1: 536 MB, 536805376 bytes 2 heads, 4 sectors/track, 131056 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/md3: 107.3 GB, 107306024960 bytes 2 heads, 4 sectors/track, 26197760 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/mapper/VolGroup01-lv_ibay: 107.3 GB, 107302879232 bytes 255 heads, 63 sectors/track, 13045 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: 0x00000000 [root@localhost ~]# cat /proc/mdstat Personalities : [raid1] md3 : active raid1 sdd1[1] sdc1[0] 104791040 blocks super 1.2 [2/2] [UU] md1 : active raid1 sda1[0] sdb1[1] 524224 blocks super 1.0 [2/2] [UU] md2 : active raid1 sdb2[1] sda2[0] 51870720 blocks super 1.1 [2/2] [UU] bitmap: 1/1 pages [4KB], 65536KB chunk unused devices: [root@localhost ~]# cat /etc/mdadm.conf MAILADDR root AUTO +imsm +1.x -all ARRAY /dev/md2 metadata=1.1 name=localhost.localdomain:2 UUID=2f878ec9:7b884fd2:ae073b96:6953a0c5 ARRAY /dev/md1 metadata=1.0 name=localhost.localdomain:1 UUID=44110dab:705d1842:07064f76:702a2c72 ARRAY /dev/md3 metadata=1.2 name=localhost.localdomain:3 UUID=ecc8ed5f:716cdcde:807fcbc2:5201ec10 [root@localhost ~]# pvdisplay --- Physical volume --- PV Name /dev/md3 VG Name VolGroup01 PV Size 99.94 GiB / not usable 3.00 MiB Allocatable yes (but full) PE Size 4.00 MiB Total PE 25583 Free PE 0 Allocated PE 25583 PV UUID YRiPlq-x6wu-YLAt-6NGc-RNmW-NdNL-3RxdjX --- Physical volume --- PV Name /dev/md2 VG Name VolGroup PV Size 49.47 GiB / not usable 31.00 MiB Allocatable yes (but full) PE Size 32.00 MiB Total PE 1582 Free PE 0 Allocated PE 1582 PV UUID xFPeSP-FoYO-e2ye-JKh0-NxlN-4Se9-f6QJvV [root@localhost ~]# vgdisplay --- Volume group --- VG Name VolGroup01 System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 2 VG Access read/write VG Status resizable MAX LV 0 Cur LV 1 Open LV 1 Max PV 0 Cur PV 1 Act PV 1 VG Size 99.93 GiB PE Size 4.00 MiB Total PE 25583 Alloc PE / Size 25583 / 99.93 GiB Free PE / Size 0 / 0 VG UUID K80sMY-YsAh-aPXd-NTnA-yLjW-mp5N-xAvob7 --- Volume group --- VG Name VolGroup System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 3 VG Access read/write VG Status resizable MAX LV 0 Cur LV 2 Open LV 2 Max PV 0 Cur PV 1 Act PV 1 VG Size 49.44 GiB PE Size 32.00 MiB Total PE 1582 Alloc PE / Size 1582 / 49.44 GiB Free PE / Size 0 / 0 VG UUID Boeaty-XVQQ-ftjU-PrK8-p8QL-Nnn6-2IthZ2 [root@localhost ~]# lvdisplay --- Logical volume --- LV Path /dev/VolGroup01/lv_ibay LV Name lv_ibay VG Name VolGroup01 LV UUID MHDSkY-yMQC-hdRr-q6r4-QpX0-qHx9-eOciO3 LV Write Access read/write LV Creation host, time localhost.localdomain, 2019-06-11 16:11:26 +0200 LV Status available # open 1 LV Size 99.93 GiB Current LE 25583 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:2 --- Logical volume --- LV Path /dev/VolGroup/lv_swap LV Name lv_swap VG Name VolGroup LV UUID 8fbo72-lQdo-UsTK-m86t-qJaT-mxmN-B9kmXG LV Write Access read/write LV Creation host, time localhost.localdomain, 2019-06-11 11:03:20 +0200 LV Status available # open 1 LV Size 1.97 GiB Current LE 63 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:0 --- Logical volume --- LV Path /dev/VolGroup/lv_root LV Name lv_root VG Name VolGroup LV UUID 3vudZ4-HN9L-WFcf-80g1-Y3cC-dB1x-V1AVlD LV Write Access read/write LV Creation host, time localhost.localdomain, 2019-06-11 11:03:21 +0200 LV Status available # open 1 LV Size 47.47 GiB Current LE 1519 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:1 [root@localhost ~]#