Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

CentOS 6.6.How to mount iSCSI storage larger than 2TB

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Today, I will talk to you about how CentOS 6.6 mounts iSCSI storage larger than 2TB. Many people may not know much about it. In order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.

In order to solve the company backup and log problems, specially set up a backup server, and prepare 8T of storage space to use, now mount iSCSI storage on the client.

The Linux system is: CentOS 6.6

1. The client installs the relevant installation package for iscsi and starts

[root@usvr119 ~] # yum-y install binutils iscsi-initiator-utils kmod-xfs xfsprogs / / kmod-xfs xfsprogs is a component of the xfs file system

[root@usvr119 ~] # service iscsi start

two。 Configure initiatiorname

Add the name of target to initiatorname.iscsi

[root@usvr119 ~] # vim / etc/iscsi/initiatorname.iscsi

InitiatorName=iqn.1994-05.com.RedHat:677b9f2936f8

3. Discover target

[root@usvr119 data] # iscsiadm-m discovery-t sendtargets-p 192.168.3.16

192.168.3.16 3260 iqn.1994-05.com.RedHat:677b9f2936f8

4. Log in to target

[root@usvr119] # iscsiadm-m node-T iqn.1994-05.com.RedHat:677b9f2936f8-p 192.168.3.16 node 3260-- login

5. Check to see if the storage is mounted

[root@usvr119 data] # fdisk-l

Disk / dev/sdb: 8796.1 GB, 8796100362240 bytes

255 heads, 63 sectors/track, 1069398 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

6. Partition with parted

[root@usvr119 ~] # parted / dev/sdb

Mklabel gpt / / set partition to gpt

Mkpart primary 0% / / divides the space into one zone

Print

Quit

Note: fdisk supports disks smaller than 2TB, while disks larger than 2TB need parted.

7. Format Partition

[root@usvr119] # mkfs.ext4-T largefile / dev/sdb1

Note: t largefile is much faster for formatting large files.

View the uuid of the disk

[root@usvr119 ~] # blkid / dev/sdb1

/ dev/sdb1: UUID= "27f0ec37-d7ab-4c93-b9e3-cd09ddd9e340" TYPE= "ext4"

8. Mount the hard disk

[root@usvr119 ~] # mkdir / data

[root@usvr119] # mount-t ext4 / dev/sdb1 / data

9. Power on and mount automatically

Log in at / etc/rc.local first

[root@usvr119 ~] # vim / etc/rc.lcoal

Iscsiadm-m node-T iqn.1994-05.com.RedHat:677b9f2936f8-p 192.168.3.16purl 3260-- login

[root@usvr119 ~] # vim / etc/fstab

UUID=27f0ec37-d7ab-4c93-b9e3-cd09ddd9e340 / data ext4 defaults,_netdev 0 0

Note: it is important to note that the first 0 is whether to perform dump, and the second 0 asks whether fsck is supported, which will fsck / dev/sdb1 after startup, and no mount at this time leads to startup failure.

After reading the above, do you have any further understanding of how CentOS 6.6 mounts iSCSI storage larger than 2TB? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report