How to add a new disk?
-
Hello, I've added a second disk but I don't know how to diagnose it. I'm afraid of doing something wrong, please help me.
Fdisk info:
Disk /dev/ram0: 4 MB, 4194304 bytes, 8192 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram1: 4 MB, 4194304 bytes, 8192 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram2: 4 MB, 4194304 bytes, 8192 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram3: 4 MB, 4194304 bytes, 8192 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram4: 4 MB, 4194304 bytes, 8192 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram5: 4 MB, 4194304 bytes, 8192 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram6: 4 MB, 4194304 bytes, 8192 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram7: 4 MB, 4194304 bytes, 8192 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram8: 4 MB, 4194304 bytes, 8192 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram9: 4 MB, 4194304 bytes, 8192 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram10: 4 MB, 4194304 bytes, 8192 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram11: 4 MB, 4194304 bytes, 8192 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram12: 4 MB, 4194304 bytes, 8192 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram13: 4 MB, 4194304 bytes, 8192 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram14: 4 MB, 4194304 bytes, 8192 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram15: 4 MB, 4194304 bytes, 8192 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/sda: 2000.4 GB, 2000398934016 bytes, 3907029168 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 label type: gpt Disk identifier: D04F96ED-6FDE-4717-822B-0BC56ACC408B # Start End Size Type Name 1 40 2048 1004.5K BIOS boot bios_grub-sda 2 4096 3905976319 1.8T Linux RAID primary 3 3905976320 3907022847 511M Linux swap primary Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes, 3907029168 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 label type: gpt Disk identifier: 797878CA-F544-49DD-8550-B53FDC1A1BB3 # Start End Size Type Name 1 40 2048 1004.5K BIOS boot bios_grub-sdb 2 4096 3905976319 1.8T Linux RAID primary 3 3905976320 3907022847 511M Linux swap primary Disk /dev/md2: 1999.9 GB, 1999857713152 bytes, 3905972096 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
Software RAID:
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath] [faulty] md2 : active raid1 sdb2[1] sda2[0] 1952986048 blocks [2/2] [UU] bitmap: 1/15 pages [4KB], 65536KB chunk unused devices:
Partition info:
Filesystem Size Used Avail Use% Mounted on devtmpfs 7.9G 0 7.9G 0% /dev tmpfs 7.9G 0 7.9G 0% /dev/shm tmpfs 7.9G 827M 7.1G 11% /run tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup /dev/md2 1.8T 1.6T 183G 90% / tmpfs 1.6G 0 1.6G 0% /run/user/1001 tmpfs 1.6G 0 1.6G 0% /run/user/0
-
Hello
i think you're looking for solution upon how to add second disk as /home ? -
@sandeep said in How to add a new disk?:
Hello
i think you're looking for solution upon how to add second disk as /home ?Hello
Yes, I want to use the second disk for backup under /home. -
@bmask
you can do it like thismount /dev/sdb /home
before that you need to ensure it have formated and filesystem is created i.e. ext4 or xfs.
then
you need to edit/etc/fstab
and add the entry there to mount disk on boot at
/home
. -
[root@smtp ~]# mount /dev/sdb /home mount: /dev/sdb is already mounted or /home busy
[root@smtp ~]# cat /etc/fstab /dev/md2 / ext4 rw,relatime,quota,usrquota,grpquota,errors=remount-ro 0 0 /dev/md2 / ext4 rw,relatime,quota,usrquota,grpquota,errors=remount-ro 0 0 /dev/md2 / ext4 rw,relatime,quota,usrquota,grpquota,errors=remount-ro 0 0 /dev/md2 / ext4 rw,relatime,quota,usrquota,grpquota,errors=remount-ro 0 0 /dev/md2 / ext4 rw,relatime,quota,usrquota,grpquota,errors=remount-ro 0 0 /dev/md2 / ext4 rw,relatime,quota,usrquota,grpquota,errors=remount-ro 0 0 /dev/md2 / ext4 rw,relatime,quota,usrquota,grpquota,errors=remount-ro 0 0 /dev/md2 / ext4 rw,relatime,quota,usrquota,grpquota,errors=remount-ro 0 0
I guess I did something wrong
-
@bmask probably restart the server and try again.
-
@sandeep
I restarted server and tried again but the result did not change.
It gives the same mistakes. -
@bmask you can pm me the server details for the checks,
-
@sandeep Thank you, I sent the information
-
well you've raid1 mirroring and that is why you're seeing half of the disk space
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sdb 8:16 0 1.8T 0 disk ├─sdb2 8:18 0 1.8T 0 part │ └─md2 9:2 0 1.8T 0 raid1 / ├─sdb3 8:19 0 511M 0 part └─sdb1 8:17 0 1004.5K 0 part sda 8:0 0 1.8T 0 disk ├─sda2 8:2 0 1.8T 0 part │ └─md2 9:2 0 1.8T 0 raid1 / ├─sda3 8:3 0 511M 0 part └─sda1 8:1 0 1004.5K 0 part
you can't mount second disk or use it, as it is being mirrored/used by raid1.
-
@sandeep Thank you I guess I'll need to discuss this with the server administrator
-
@bmask yep server provider will help but in this case i highly doubt they can help as there are data.