报价
HOME
报价
正文内容
9500 nand write start 小白运维之LVM
发布时间 : 2024-11-24
作者 : 小编
访问数量 : 23
扫码分享至微信

小白运维之LVM

服务器新添加了一块5G的硬盘

一.查看新添加的磁盘

[root@localhost ~]# lsblk -l

如若不显示新加磁盘,执行下面命令刷新出来(0,1,2往后来)

[root@localhost ~]# echo "- - -" > /sys/class/scsi_host/host0/scan

[root@localhost ~]# echo "- - -" > /sys/class/scsi_host/host1/scan

[root@localhost ~]# echo "- - -" > /sys/class/scsi_host/host2/scan

二.给新磁盘分区(由于新磁盘只有5G,所以只打算分一个区)

[root@localhost ~]# 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 tableBuilding a new DOS disklabel with disk identifier 0x5639500b.

Command (m for help):nPartition type: p primary (0 primary, 0 extended, 4 free) e extendedSelect (default p): pPartition number (1-4, default 1): 1First sector (2048-10485759, default 2048):Using default value 2048Last sector, +sectors or +size{K,M,G} (2048-10485759, default 10485759):Using default value 10485759Partition 1 of type Linux and of size 5 GiB is set

Command (m for help): tSelected partition 1Hex code (type L to list all codes): 8eChanged type of partition 'Linux' to 'Linux LVM'

Command (m for help):p

Disk /dev/sdb: 5368 MB, 5368709120 bytes, 10485760 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk label type: dosDisk identifier: 0x5639500b

Device Boot Start End Blocks Id System/dev/sdb1 2048 10485759 5241856 8e Linux LVM

Command (m for help):wThe partition table has been altered!

Calling ioctl() to re-read partition table.Syncing disks.

为加深认识,再加一块硬盘

与上面同样的方法,对新磁盘分区,4G的盘我们分两块分区(步骤同上)

新磁盘分区分别为一个1G,一个2G

三.创建物理卷

[root@localhost ~]# pvcreate /dev/sdb1

Physical volume "/dev/sdb1" successfully created.

[root@localhost ~]# pvcreate /dev/sdc1

Physical volume "/dev/sdc1" successfully created.

[root@localhost ~]# pvcreate /dev/sdc2

Physical volume "/dev/sdc2" successfully created.

查看创建的三个物理卷

[root@localhost ~]# pvs

四.创建卷组

将新创建的三个物理卷组合成一个卷组

[root@localhost ~]# vgcreate juanzu /dev/sdb1 /dev/sdc1 /dev/sdc2

使用vgs即可看到由三个物理卷组成的卷组

五.创建逻辑卷

[root@localhost ~]# lvcreate -L 6G -n luojijuan1 juanzu

使用lvs即可看到从卷组中新建的逻辑卷

六.逻辑卷格式化并创建文件系统

[root@localhost ~]# mkfs.ext4 /dev/juanzu/luojijuan1

七.挂载逻辑卷

[root@localhost /]# mount /dev/juanzu/luojijuan1 /luojijuan1/

八.逻辑卷扩容(我们刚建的卷组共8G,从中只用了6G建了逻辑卷,下面扩容至7G)

首先将挂载解除

[root@localhost /]# umount /luojijuan1

[root@localhost /]# lvextend -L 7G /dev/juanzu/luojijuan1

检查文件系统

[root@localhost /]# e2fsck -f /dev/juanzu/luojijuan1

执行调整

[root@localhost /]# resize2fs /dev/juanzu/luojijuan1

挂载后查看(扩容并挂载)

比格尔英语询问薪资期望

我可以问问薪酬的问题吗?

May I ask about the remuneration?

I want like to know something about the salary? 

For example:

A: May I ask about the remuneration?我可以问问薪酬的问题吗?

B: Of Course. The Salary is 1500 yuan.当然。工资是 1500 元。

你现在的薪水是多少?

What is your salary now?

How about your present pay?

How much money do you get now?

What's your monthly (yearly) salary?

我目前的薪水是每年10万元。

My present pay is 100000 yuan per year.

At present I get 100000 yuan per year.

My present yearly salary is 100000 yuan.

Now I receive a yearly remuneration of 100000 yuan.

你期望的薪水是多少?

What are your salary expectations?

What are your income expectations?

What are your pay expectations?

What's your expected salary?

How much do you hope to get a month?

What's your required monthly(yearly) salary?

What remuneration would you like to call for?

What remuneration would you like to ask for?

For example:

A: What are your salary expectations?你期望的薪水是多少?

B: I like to be paid more than that. Hopefully ,120000 yuan per year. 我希望能比原来的多些,希望是每年12万元。

就这个工作而言你希望你的薪水是多少?

How much money are you looking for in this job? 

For example:

A: How much money are you looking for in this job?

就这个工作而言你希望你的薪水是多少?

B: I'd like to have a yearly salary of 30000 yuan, plus 1% commission on all sales.

我想要求年薪为30万元D另加销售额1%的佣金。

凭我的经验,我希望开始时每个月能拿到4000元。

With my experience,I'd like to start at RMB 4000 per month. Because of my experience,I'd like to start at RMB 4000 per month. Based on my experience,I'd like to start at RMB 4000 per month.

工资是多少?

What's the pay?

For example:

A: What's the pay?工资是多少?

B: I can give you 4 dollars an hour.我每小时可以给你 4 美元。

我的试用期多长?

How long is my probation?

For example:

A: How long is my probation?我的试用期多长?

B: Generally it is 6 months and during this period you are half-paid.

一般来说是6个月,这段期间你只能拿到工资的一半。

•probation(n.)试用,见习

你希望我们这里的起薪是多少?

What starting salary would you expect here?

What starting salary would you like to begin with?

What commencing salary would you expect here?

我希望起薪是每月9500元。

I require 9500 yuan per month as a start.

I'd require a commencing salary of 9500 yuan a month.

The salary I should require would be RMB 9500 per month as a start.

I'd like to commence at 9500 yuan a month.

I'd like to start at about 9500 yuan a month.

The salary at which I should like to commence is 9500 yuan per month.

我愿意接受。

I can accept it.

For example:

A: Would you consider a starting salary at RMB 3000?

你认为起薪每月3000元怎么样?

B: I think it is reasonable,! can accept it.我认为这很合理,我愿意接收。

我相信你会给我提供一个合理的数目。

I am sure whatever you offer will be a fair amount.

对我来说,薪水不是最重要的。

Salary is not the most important factor to me

相关问答

三星S4 I 9500 刷机总是出现 NAND Write Start !!-ZOL问答

我换了个odin就好了……当时折腾了好久!!!换了好几个!!!会用cmd不?网上找找教程吧这个帮不了你啊那你现在还能进入线刷那个模式么?是一点反应...

 奥马尔阿萨尔  张凯峰 
王经理: 180-0000-0000(微信同号)
10086@qq.com
北京海淀区西三旗街道国际大厦08A座
©2024  上海羊羽卓进出口贸易有限公司  版权所有.All Rights Reserved.  |  程序由Z-BlogPHP强力驱动
网站首页
电话咨询
微信号

QQ

在线咨询真诚为您提供专业解答服务

热线

188-0000-0000
专属服务热线

微信

二维码扫一扫微信交流
顶部