Mount Boot volume to MT servers:
[root@ abcd_server ~]# fdisk
-l
WARNING: fdisk GPT
support is currently new, and therefore in an experimental phase. Use at your
own discretion.
Disk /dev/sda: 50.0 GB,
50010783744 bytes, 97677312 sectors
Units = sectors of 1 *
512 = 512 bytes
Sector size
(logical/physical): 512 bytes / 4096 bytes
I/O size
(minimum/optimal): 4096 bytes / 1048576 bytes
Disk label type: gpt
Disk identifier:
1CF41588-2780-4C06-B618-1A5772638B84
# Start End
Size Type Name
1
2048 411647 200M
EFI System EFI System
Partition
2
411648 17188863 8G
Linux swap
3
17188864 97675263 38.4G
Microsoft basic
Disk /dev/sdb: 536.9 GB,
536870912000 bytes, 1048576000 sectors
Units = sectors of 1 *
512 = 512 bytes
Sector size
(logical/physical): 512 bytes / 4096 bytes
I/O size
(minimum/optimal): 4096 bytes / 1048576 bytes
[root@ abcd_server ~]# lsblk
NAME MAJ:MIN RM
SIZE RO TYPE MOUNTPOINT
sdb 8:16
0 500G 0 disk
sda 8:0
0 46.6G 0 disk
├─sda2 8:2
0 8G 0 part [SWAP]
├─sda3 8:3
0 38.4G 0 part /
└─sda1 8:1
0 200M 0 part /boot/efi
[root@ abcd_server ~]# sudo
fdisk /dev/sdb
Welcome to fdisk
(util-linux 2.23.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
Building a new DOS
disklabel with disk identifier 0x8ed32b38.
The device presents a
logical sector size that is smaller than
the physical sector size.
Aligning to a physical sector (or optimal
I/O) size boundary is
recommended, or performance may be impacted.
Command (m for help): n
Partition type:
p
primary (0 primary, 0 extended, 4 free)
e
extended
Select (default p): p
Partition number (1-4,
default 1):
First sector
(2048-1048575999, default 2048):
Using default value 2048
Last sector, +sectors or
+size{K,M,G} (2048-1048575999, default 1048575999):
Using default value
1048575999
Partition 1 of type Linux
and of size 500 GiB is set
Command (m for help): w
The partition table has
been altered!
Calling ioctl() to
re-read partition table.
Syncing disks.
[root@ abcd_server ~]# sudo
lsblk
NAME MAJ:MIN RM
SIZE RO TYPE MOUNTPOINT
sdb 8:16 0
500G 0 disk
└─sdb1 8:17 0
500G 0 part
sda 8:0
0 46.6G 0 disk
├─sda2 8:2
0 8G 0 part [SWAP]
├─sda3 8:3
0 38.4G 0 part /
└─sda1 8:1
0 200M 0 part /boot/efi
[root@abcd ~]# sudo mkfs -t ext4 /dev/sdb1
mkfs.etx4: No such file
or directory
[root@cabcd ~]# sudo mkfs -t ext4 /dev/sdb1
mke2fs 1.45.4
(23-Sep-2019)
Discarding device blocks:
done
Creating filesystem with
131071744 4k blocks and 32768000 inodes
Filesystem UUID:
db1f5f38-191a-4f06-8d62-e6b23ae84a36
Superblock backups stored
on blocks:
32768, 98304, 163840, 229376, 294912,
819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000,
23887872, 71663616, 78675968,
102400000
Allocating group tables:
done
Writing inode tables:
done
Creating journal (262144
blocks): done
Writing superblocks and
filesystem accounting information: done
[root@ abcd_server ~]#
[root@abcd_server ~]# sudo
mkdir -p /u01 or sudo mkdir -p /u01/app/oracle/product
[root@cabcd ~]# sudo mount -t auto /dev/sdb1 /u01
[root@abcd ~]# df -h /u01
Filesystem Size
Used Avail Use% Mounted on
/dev/sdb1 492G
70M 467G 1% /u01
[root@ abcd_server ~]#
[root@abcd_server ~]# df
-h /u01
Filesystem Size
Used Avail Use% Mounted on
/dev/sdb1 492G
70M 467G 1% /u01
[root@abcd ~]# df -h /u01
Filesystem Size
Used Avail Use% Mounted on
/dev/sdb1 492G
70M 467G 1% /u01
[root@ abcd_server ~]#
Enter
in FSTAB :
[root@abcd product]# blkid /dev/sda1
/dev/sda1:
SEC_TYPE="msdos" UUID="EFB2-4487"
BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI System
Partition" PARTUUID="2eebe4f6-9f34-48d4-bd49-3b1a623ce754"
[root@abcd
product]# sudo blkid
/dev/sda1:
SEC_TYPE="msdos" UUID="EFB2-4487"
BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI System
Partition" PARTUUID="2eebe4f6-9f34-48d4-bd49-3b1a623ce754"
/dev/sda2:
UUID="02a8feb2-328b-4743-8178-c163b8b72aa8"
BLOCK_SIZE="4096" TYPE="xfs"
PARTUUID="120f20b7-e293-4162-971e-95b0f453e0ff"
/dev/sda3:
UUID="fumyz7-ctCu-cwdM-v2k2-mfNu-3ub5-jTcRwM"
TYPE="LVM2_member"
PARTUUID="e04cd91c-072e-4e01-bec7-1bade0a68d91"
/dev/mapper/ocivolume-root:
UUID="72dab0b3-9086-4f6f-8541-3543181e3905"
BLOCK_SIZE="4096" TYPE="xfs"
/dev/mapper/ocivolume-oled:
UUID="dbc003da-8dec-4f68-9021-8edd13659f58"
BLOCK_SIZE="4096" TYPE="xfs"
/dev/sdb1:
UUID="0b46646f-881f-4878-8a41-6b834bf17571"
BLOCK_SIZE="4096" TYPE="ext4"
PARTUUID="1926e87a-01"
[root@sbcd product]# vi
/etc/fstab
[root@abcd product]#
Reboot the fstab services :
systemctl
daemon-reload
No comments:
Post a Comment