XFS

NFS文件系统

杀马特。学长 韩版系。学妹 提交于 2019-12-25 22:02:36
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> NFS文件系统 NFS服务 NFS:Network File System 网络文件系统,基于内核的文件系统。Sun公司开发,通过使用NFS,用户和程序可以像访问本地文件一样访问远端系统上的文件,基于RPC(Remote Procedure Call Protocol远程过程调用)实现 RPC采用C/S模式,客户机请求程序调用进程发送一个有进程参数的调用信息到服务进程,然后等待应答信息。在服务器端,进程保持睡眠状态直到调用信息到达为止。当一个调用信息到达,服务器获得进程参数,计算结果,发送答复信息,然后等待下一个调用信息,最后,客户端调用进程接收答复信息,获得进程结果,然后调用执行继续进行 NFS优势:节省本地存储空间,将常用的数据,如home目录,存放在NFS服务器上且可以通过网络访问,本地终端将可减少自身存储空间的使用 NFS文件系统 locate nfs.ko locate xfs.ko 内核级的性能更好 可以多个客户端挂载 每个客户端看到的是同样的内容,都是来自于 nfs 服务器 NFS的工作作原理 nfs 很特殊,用的端口号不是一个,也不是固定端口,它的端口很多,而且每次重启会发生变化 客户端想去连 nfs 服务器就比较困难了,找一个代理人RPC(portmap) nfs

How to find Logical Name for PinPad XFS if it is not mentioned in Manual

醉酒当歌 提交于 2019-12-23 02:17:13
问题 I have started XFS implementation of SZZT Pinpad .I am facing an issue with the WFSOpen command Its giving an error “ – 14 “which is mentioned as WFS_ERR_HARDWARE_ERROR in the Manual. Please let us know if we are missing out on any parameter Value for the same . Also we are unable to find the logical Name for SZZT Pinpad in the Manual . As of now we are using the same name which is been mentioned in the Registry 回答1: I've had recently this problem. In my case, it was due to the service

Intel NVMe drive Performance degradation with xfs filesystem with sector size other than 4096

孤者浪人 提交于 2019-12-23 01:11:08
问题 I am working with NVMe card on linux(Ubuntu 14.04). I am finding some performance degradation for Intel NVMe card when formatted with xfs file system with its default sector size(512). or any other sector size less than 4096. In the experiment I formatted the card with xfs filesystem with default options. I tried running fio with 64k block size on an arm64 platform with 64k page size. This is the command used fio --rw=randread --bs=64k --ioengine=libaio --iodepth=8 --direct=1 --group

Centos 7 LVM硬盘动态扩容要点

感情迁移 提交于 2019-12-21 19:10:15
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> LVM硬盘扩容方法要点: 1、如果采用VMWARE,可以直接动态添加硬盘。 2、通过echo "scsi add-single-device 0 0 1 0" >/proc/scsi/scsi 动态添加。 3、fdisk -l 显示后,通过fdisk 里创建分区,定义分区类型为Linux LVM 4、通过lvm命令界面操作卷,次序是pv,vg,lv。分别代表物理卷,卷组,逻辑卷。 5、通过pvdisplay pvcreate,vgdisplay,vgextend,lvdisplay lvextend。控制显示和扩展。 6、通过help pvdisplay。。。可以查看相应帮助。 7、lvextend 后,再改变分区大小。centos 7是采用xfs,所以,重建分区大小命令是,xfs_growfs。如果ext3,4之类分区类型,用resize2fs重建。 来源: oschina 链接: https://my.oschina.net/u/2503743/blog/625538

day16: swap及lvm使用

不羁的心 提交于 2019-12-21 18:59:51
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 1 、手动创建一个 swap 空间: 比如有时候服务要求的 swap 空间比较大,总不至于重新安装系统了; 在文件系统里模拟出一个虚拟磁盘出来; dd if=/dev/zero of=/tmp/newdisk bs=1M count=100 [root@localhost_002 ~]# dd if=/dev/zero of=/tmp/newdisk bs=1M count=100 记录了100+0 的读入 记录了100+0 的写出 104857600字节(105 MB)已复制,4.25342 秒,24.7 MB/秒 [root@localhost_002 ~]# ls -ld /tmp/newdisk -rw-r--r-- 1 root root 104857600 2月 23 21:22 /tmp/newdisk if 表示从哪里读 /dev/zero 是linux内核一个造零器, of 表示写入到哪里去; bs=1M 指定每个块的大小 1M ; count=100 表示多少个块; 2、还需要格式化一下: mkswap /tmp/newdisk [root@localhost_002 ~]# mkswap -f /tmp/newdisk 正在设置交换空间版本 1,大小 = 102396 KiB 无标签

Day16 LVM(逻辑卷管理)与磁盘故障小案例

隐身守侯 提交于 2019-12-21 18:59:11
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> lvm详解 简述 LVM的产生是因为传统的分区一旦分区好后就无法在线扩充空间,也存在一些工具能实现在线扩充空间但是还是会面临数据损坏的风险;传统的分区当分区空间不足时,一般的解决办法是再创建一个更大的分区将原分区卸载然后将数据拷贝到新分区,但是在企业的生产系统往往不允许停机或者允许停机的时间很短,LVM就能很好的解决在线扩充空间的问题,而且不会对数据造成影响,LVM还能通过快照在备份的过程中保证日志文件和表空间文件在同一时间点的一致性;本篇文章不会对概念知识做太详细的介绍,主要讲述LVM的扩容、收缩、移除的方法。 创建lvm 1.准备磁盘分区 fdisk /dev/sdb , n创建3个新分区 分别1G , t改变分区类型为8e 示例: [root@centos001 ~]# fdisk /dev/sdb 欢迎使用 fdisk (util-linux 2.23.2)。 更改将停留在内存中,直到您决定将更改写入磁盘。 使用写入命令前请三思。 Device does not contain a recognized partition table 使用磁盘标识符 0xee32a29c 创建新的 DOS 磁盘标签。 命令(输入 m 获取帮助):n Partition type: p primary (0

Storing & accessing up to 10 million files in Linux

偶尔善良 提交于 2019-12-20 08:59:28
问题 I'm writing an app that needs to store lots of files up to approx 10 million. They are presently named with a UUID and are going to be around 4MB each but always the same size. Reading and writing from/to these files will always be sequential. 2 main questions I am seeking answers for: 1) Which filesystem would be best for this. XFS or ext4? 2) Would it be necessary to store the files beneath subdirectories in order to reduce the numbers of files within a single directory? For question 2, I

RHEL 8中的文件挂载

£可爱£侵袭症+ 提交于 2019-12-19 12:06:45
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> Red Hat Enterprise Linux 8中,要挂载磁盘分区,当然要在/etc/fstab,这一点没有变。其中的6个挂载参数,跟RHEL 7及以前的版本相比,却有一点点变化。 RHEL 8的用户手册中说,这第5个参数,是用来决定,是否要用dump程序来备份(注1)。还说,使用man 8 dump可以查询详细说明。我没有查到。于是到网上搜索。有几个网站说,dump程序只能备份ext2/ext3格式的文件系统(注2、3)。不过,我使用yum搜索到的结果却说,dump支持ext2 / ext3 /ext4文件系统。 # yum search dump 结果如下,看第一行: 那它肯定不能备份xfs文件系统。如果要挂载xfs文件系统,第5个参数肯定要写成0。 第6个参数将决定,启动时是否使用fsck检查这个设备。但RHEL 8的用户手册上说,这个参数将决定使用fsck检查的顺序。我的理解是,这个参数将强制执行,不存在选择不选择的问题。RHCE 8 培训教材截图如下: 0,如果是xfs,因为它不用这玩意儿检查磁盘 1,如果是ext4,且是根目录 2,如果是ext4,且不是根目录 参考资料: 1、 https://access.redhat.com/documentation/en-us/red_hat

How to dynamically fill the structure which is a pointer to pointer of arrays in C++ implementing xfs

最后都变了- 提交于 2019-12-18 09:07:05
问题 Structure 1: typedef struct _wfs_cdm_cu_info { USHORT usTellerID; USHORT usCount; LPWFSCDMCASHUNIT * lppList; } WFSCDMCUINFO, * LPWFSCDMCUINFO; Structure 2: typedef struct _wfs_cdm_cashunit { USHORT usNumber; USHORT usType; LPSTR lpszCashUnitName; CHAR cUnitID[5]; CHAR cCurrencyID[3]; ULONG ulValues; ULONG ulInitialCount; ULONG ulCount; ULONG ulRejectCount; ULONG ulMinimum; ULONG ulMaximum; BOOL bAppLock; USHORT usStatus; USHORT usNumPhysicalCUs; LPWFSCDMPHCU * lppPhysical; } WFSCDMCASHUNIT,

Frame onkeydown feedback

允我心安 提交于 2019-12-13 06:26:38
问题 I'm trying to do a PoC for a Cross Frame Scripting attack (https://www.owasp.org/index.php/Cross_Frame_Scripting) to show in my job how dangerous can be this attack for any version of IE browser. This attack can be easily prevent by using X-FRAME-OPTIONS: deny header on IE8 or newer versions. But it would be nice if every develop include such header on all web server responses. Using the code below I can see the alert window with the keycode but in case of forms on the target page I can not